Skip to content

Commit f62966b

Browse files
authored
Merge pull request #2 from manics/theme-subtree
Replace blist satre theme submodule with subtree
2 parents 4f2536e + 81787cc commit f62966b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+7689
-8
lines changed

.gitmodules

-3
This file was deleted.

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ repos:
33
rev: v3.1.0
44
hooks:
55
- id: prettier
6+
7+
exclude: "^themes/blist-satre/(assets/css/site.css|assets/js/fuse\\.min\\.js|assets/js/search\\.js|exampleSite|i18n|CHANGELOG\\.md|README\\.md)"

hugo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ baseurl = "https://blist.vercel.app"
22
metaDataFormat = "yaml"
33
title = "Standard Architecture for Trusted Research Environments"
44

5-
# https://github.com/apvarun/blist-hugo-theme
6-
theme = "blist"
5+
# Modified version of https://github.com/apvarun/blist-hugo-theme/tree/25febab1a29af2f5e445e92e41715ff632133519
6+
theme = "blist-satre"
77

88
DefaultContentLanguage = "en"
99
DefaultContentLanguageInSubdir = true

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
themes/blist/package.json
1+
themes/blist-satre/package.json

themes/blist

-1
This file was deleted.

themes/blist-satre/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.idea
2+
/node_modules
3+
/exampleSite/public
4+
/exampleSite/hugo_stats.json
5+
.DS_Store

themes/blist-satre/CHANGELOG.md

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Changelog
2+
3+
All the changes made to Blist theme for Hugo.
4+
5+
## v2.1.0 - 2023-01-09
6+
7+
### Added
8+
9+
- Support multiple comment systems #64
10+
11+
## v2.0.1 - 2022-12-27
12+
13+
### Fixed
14+
15+
- Page metadata layout in mobile #94
16+
17+
## v2.0.0 - 2022-12-25
18+
19+
### Added
20+
21+
- BREAKING: Ability to specify social icons order #91
22+
- Table of contents support #84
23+
- Search customization #79
24+
- Option to skip showing thumbnail in post page #93
25+
- Added more social icons
26+
- Mastodon #92
27+
- XDA #83
28+
- Telegram #83
29+
- Buy me a coffee #83
30+
- Google Scholar #85
31+
- Facebook #90
32+
- Behance #66
33+
- Tiktok #77
34+
- Stackoverflow #71
35+
36+
### Fixed
37+
38+
- Inline code block #78
39+
40+
## v1.5.0 - 2022-08-11
41+
42+
### Added
43+
44+
- Ability to hide metadata via param hideMeta #37
45+
- Hide other languages option via param hideOtherLanguages
46+
- Add French support #53 #54 #55
47+
48+
### Fixed
49+
50+
- Fix broken Multilingual search
51+
52+
## v1.4.0 - 2022-01-08
53+
54+
### Added
55+
56+
- Hamburger menu for mobile UI #23
57+
- Image logo support #24
58+
59+
## v1.3.1 - 2021-11-28
60+
61+
### Added
62+
63+
- Adding xing support to social icons - #15
64+
- Fix: Adding missing whitespace between label and language in single page - #16
65+
- Fix: Readable Lastmod - #17
66+
67+
## v1.3.0 - 2021-10-27
68+
69+
### Added
70+
71+
- Add YouTube & Instagram social icons - #9
72+
- Add i18n support - #11
73+
- Add 404 page - #13
74+
75+
## v1.2.0 - 2021-07-18
76+
77+
### Added
78+
79+
- Add color customization for Intro and Social links blocks
80+
81+
## v1.1.0 - 2021-07-17
82+
83+
### Added
84+
85+
- Add support for text search
86+
87+
## v1.0.0 - 2021-07-16
88+
89+
- Initial Release

themes/blist-satre/LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2021 Varun A P
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

themes/blist-satre/README.md

+207
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
# Blist theme for Hugo
2+
3+
![Latest Release](https://img.shields.io/github/tag/apvarun/blist-hugo-theme.svg)
4+
![Blist hugo theme](https://img.shields.io/github/license/apvarun/blist-hugo-theme)
5+
![Hugo generator](https://img.shields.io/badge/generator-hugo-brightgreen)
6+
7+
Blist is a clean and fast blog theme for your Hugo site.
8+
9+
![Blist Icon](https://github.com/apvarun/blist-hugo-theme/raw/main/images/blist-logo.png)
10+
11+
**Features:**
12+
13+
- Responsive content / Mobile-optimized
14+
- Blog pagination
15+
- Customizable Text Search
16+
- Table of contents
17+
- Social links
18+
- Code highlighting
19+
- Color customization
20+
- Dark mode
21+
- Fast performance
22+
- SEO optimized
23+
- i18n support
24+
- Support comments systems
25+
- Disqus (hugo native)
26+
- giscus
27+
- utterances
28+
29+
## Preview
30+
31+
![Preview](https://github.com/apvarun/blist-hugo-theme/raw/main/images/screenshot.png)
32+
33+
➡️ [DEMO](https://blist.vercel.app/)
34+
35+
## Get the theme
36+
37+
Minimum Hugo Version: **0.110.0**
38+
39+
Run from the root of your Hugo site:
40+
41+
```sh
42+
git clone https://github.com/apvarun/blist-hugo-theme.git themes/blist
43+
```
44+
45+
Alternatively, you can include this repository as a [git submodule](https://git-scm.com/docs/gitsubmodules). This makes it easier to update this theme if you have your Hugo site in git as well:
46+
47+
```sh
48+
git submodule add https://github.com/apvarun/blist-hugo-theme.git themes/blist
49+
```
50+
51+
## Preview the theme with example content
52+
53+
Blist theme ships with an fully configured example site. For a quick preview:
54+
55+
Copy the `package.json` file from `themes/blist` folder to your hugo website root folder, and run `npm install`.
56+
57+
```sh
58+
cd themes/blist/exampleSite/
59+
hugo serve --themesDir ../..
60+
```
61+
62+
Then visit `http://localhost:1313/` in your browser to view the example site.
63+
64+
## Configuring theme to a hugo website
65+
66+
1. Copy `package.json` and `package-lock.json` to the root folder of your website
67+
2. Run `npm install` to install required packages for theme
68+
3. Run `npm i -g postcss-cli` to use PostCSS with Hugo build
69+
4. Set `theme = 'blist'` in config.toml
70+
5. Run `npm start` to start your local server
71+
72+
Make sure to commit the above changes to your repository.
73+
74+
## Publish your website
75+
76+
When deploying to services like Netlify or Vercel, use the following command for building your site:
77+
78+
```sh
79+
npm i && HUGO_ENVIRONMENT=production hugo --gc
80+
```
81+
The parameter `HUGO_ENVIRONMENT=production` enables the execution of css purging.
82+
83+
## Add content
84+
85+
The following explains how to add content to your Hugo site. You can find sample content in the `exampleSite/` folder.
86+
87+
### Structure:
88+
89+
.
90+
├── ...
91+
├── blog # Blog Section
92+
│ ├── post1 # Post 1
93+
│ ├── post2 # Post 2
94+
│ └── _index
95+
└── ...
96+
97+
## Configure your site
98+
99+
From `exampleSite/`, copy `config.toml` to the root folder of your Hugo site and change the fields as you like. Helpful comments are provided.
100+
101+
### Menu
102+
103+
Menu in Blist theme is pre-set to have all section names. You can include custom links in header using the `menu.main` option config.toml.
104+
105+
### Logo
106+
107+
`logo` param in the site config will allow to use an image as the logo instead of the website name. It is localizable and so can have different logo for different languages
108+
109+
### Darkmode
110+
111+
`[params.darkModeToggle]` enables the dark mode toggle in header. The preference is then saved so that the mode is automatically chosen for return visits.
112+
113+
### Customize Ascent Color
114+
115+
Use `[params.ascentColor]` to change the default `pink` color to any supported color from the [list of default colors](https://tailwindcss.com/docs/customizing-colors) from Tailwind CSS.
116+
117+
Some example values: bg-blue-200, bg-yellow-300
118+
119+
### Search
120+
121+
`[params.enableSearch]` option is used to enable search option in the theme.
122+
123+
- Adds the search icon in header
124+
- Generates the search index
125+
- Uses fuse.js to enable searching through content
126+
127+
In order to search, you can either click on the search icon from header or press `Ctrl/Cmd + /` key combination.
128+
129+
**Note:**
130+
131+
Make sure to enable JSON in outputs array.
132+
133+
```
134+
[outputs]
135+
home = ["HTML", "RSS", "JSON"]
136+
```
137+
138+
### LaTeX
139+
140+
Enable mathematical options: set `math: true` in your markdown frontmatter
141+
142+
### Google Analytics
143+
144+
Set `googleAnalytics` in `config.toml` to activate Hugo's [internal Google Analytics template](https://gohugo.io/templates/internal/#google-analytics).
145+
146+
## Performance
147+
148+
[![Pagespeed Insights Performance](https://github.com/apvarun/blist-hugo-theme/raw/main/images/pagespeed-performance.png)](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fblist.vercel.app&tab=mobile)
149+
150+
## Issues
151+
152+
If you have a question, please [open an issue](https://github.com/apvarun/blist-hugo-theme/issues) for help and to help those who come after you. The more information you can provide, the better!
153+
154+
## Contributing
155+
156+
Contributions, issues, and feature requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
157+
158+
<table>
159+
<tr>
160+
<td align="center"><a href="https://github.com/apvarun"><img alt="apvarun"
161+
src="https://avatars.githubusercontent.com/u/8411309?v=4" width="117" /><br />apvarun</a></td>
162+
<td align="center"><a href="https://github.com/Ravinou"><img alt="Ravinou"
163+
src="https://avatars.githubusercontent.com/u/39600829?v=4" width="117" /><br />Ravinou</a></td>
164+
<td align="center"><a href="https://github.com/engel-b"><img alt="engel-b"
165+
src="https://avatars.githubusercontent.com/u/5812810?v=4" width="117" /><br />engel-b</a></td>
166+
<td align="center"><a href="https://github.com/chris-gillatt"><img alt="chris-gillatt"
167+
src="https://avatars.githubusercontent.com/u/9963006?v=4" width="117" /><br />chris-gillatt</a></td>
168+
<td align="center"><a href="https://github.com/apps/dependabot"><img alt="dependabot[bot]"
169+
src="https://avatars.githubusercontent.com/in/29110?v=4" width="117" /><br />dependabot[bot]</a></td>
170+
<td align="center"><a href="https://github.com/xLexip"><img alt="xLexip"
171+
src="https://avatars.githubusercontent.com/u/46321162?v=4" width="117" /><br />xLexip</a></td>
172+
</tr>
173+
<tr>
174+
<td align="center"><a href="https://github.com/AntoineSoetewey"><img alt="AntoineSoetewey"
175+
src="https://avatars.githubusercontent.com/u/17910063?v=4" width="117" /><br />AntoineSoetewey</a></td>
176+
<td align="center"><a href="https://github.com/chiragksharma"><img alt="chiragksharma"
177+
src="https://avatars.githubusercontent.com/u/74889769?v=4" width="117" /><br />chiragksharma</a></td>
178+
<td align="center"><a href="https://github.com/dlecan"><img alt="dlecan"
179+
src="https://avatars.githubusercontent.com/u/586631?v=4" width="117" /><br />dlecan</a></td>
180+
<td align="center"><a href="https://github.com/jpiaskowski"><img alt="jpiaskowski"
181+
src="https://avatars.githubusercontent.com/u/8420943?v=4" width="117" /><br />jpiaskowski</a></td>
182+
<td align="center"><a href="https://github.com/lucab85"><img alt="lucab85"
183+
src="https://avatars.githubusercontent.com/u/24267107?v=4" width="117" /><br />lucab85</a></td>
184+
<td align="center"><a href="https://github.com/Marty"><img alt="Marty"
185+
src="https://avatars.githubusercontent.com/u/100658?v=4" width="117" /><br />Marty</a></td>
186+
</tr>
187+
<tr>
188+
<td align="center"><a href="https://github.com/ernavdeepkr"><img alt="ernavdeepkr"
189+
src="https://avatars.githubusercontent.com/u/50796185?v=4" width="117" /><br />ernavdeepkr</a></td>
190+
<td align="center"><a href="https://github.com/roypeter"><img alt="roypeter"
191+
src="https://avatars.githubusercontent.com/u/16620459?v=4" width="117" /><br />roypeter</a></td>
192+
<td align="center"><a href="https://github.com/janvanveldhuizen"><img alt="janvanveldhuizen"
193+
src="https://avatars.githubusercontent.com/u/43573150?v=4" width="117" /><br />janvanveldhuizen</a></td>
194+
<td align="center"><a href="https://github.com/jmflaherty"><img alt="jmflaherty"
195+
src="https://avatars.githubusercontent.com/u/12985011?v=4" width="117" /><br />jmflaherty</a></td>
196+
</tr>
197+
</table>
198+
199+
## License
200+
201+
Licensed under [MIT](LICENSE)
202+
203+
## 🤝 Support
204+
205+
Give a ⭐️ if you like this project!
206+
207+
<a href="https://www.buymeacoffee.com/apvarun" target="_blank" rel="noopener"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="40" width="145" alt="Buy Me A Coffee"></a>
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
+++
2+
+++
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.pagination {
2+
@apply inline-flex border rounded px-1 dark:border-gray-600;
3+
}
4+
.page-item {
5+
@apply mx-0.5 my-1 cursor-pointer rounded hover:bg-gray-800 hover:text-white dark:hover:bg-gray-500 dark:hover:text-white;
6+
}
7+
a.page-link {
8+
@apply px-3 py-1 block;
9+
}
10+
.page-item.active {
11+
@apply bg-gray-800 text-white dark:bg-gray-300 dark:text-gray-900;
12+
}
13+
.page-item.disabled {
14+
@apply text-gray-400 hover:bg-transparent hover:text-gray-400 cursor-not-allowed;
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const themeDir = __dirname + "/../../";
2+
3+
module.exports = {
4+
plugins: [
5+
require("postcss-import")({
6+
path: [themeDir],
7+
}),
8+
require("tailwindcss")(themeDir + "assets/css/tailwind.config.js"),
9+
require("autoprefixer")({
10+
path: [themeDir],
11+
}),
12+
],
13+
};

0 commit comments

Comments
 (0)