3
3
title = "anatole-zola"
4
4
description = "A port of farbox-theme-Anatole for zola"
5
5
template = "theme.html"
6
- date = 2022-01-17T03:13:30+08 :00
6
+ date = 2022-01-23T23:20:14+01 :00
7
7
8
8
[ extra]
9
- created = 2022-01-17T03:13:30+08 :00
10
- updated = 2022-01-17T03:13:30+08 :00
9
+ created = 2022-01-23T23:20:14+01 :00
10
+ updated = 2022-01-23T23:20:14+01 :00
11
11
repository = "https://github.com/longfangsong/anatole-zola.git "
12
12
homepage = "https://github.com/longfangsong/anatole-zola "
13
13
minimum_version = "0.4.0"
@@ -21,14 +21,14 @@ homepage = "https://github.com/longfangsong"
21
21
22
22
# Anatole Theme for Zola
23
23
24
- Port [ Anatole theme for farbox] ( https://github.com/hi-caicai/farbox-theme-Anatole ) to Zola.
25
-
24
+ * [ Anatole theme for Farbox] ( https://github.com/hi-caicai/farbox-theme-Anatole ) ported to Zola*
25
+ ___
26
+ [ Zola Homepage] ( https://www.getzola.org/themes/anatole-zola/ ) | [ Demo with customizations] ( https://longfangsong.github.io/ )
27
+ ___
26
28
![ screenshot] ( ./screenshot.png )
27
29
28
30
![ screenshot-mobile] ( ./screenshot-mobile.png )
29
31
30
- You can view my blog for an example configuation, with customizations.
31
-
32
32
## Installation
33
33
34
34
First download this theme to your ` themes ` directory:
@@ -59,17 +59,17 @@ base_url = "https://example.com"
59
59
60
60
### Language
61
61
62
- Currently, we have English and Chinese translation , set the ` default_language ` if necessary:
62
+ Currently, we have English, Chinese and German translations , set the ` default_language ` if necessary:
63
63
64
64
``` toml
65
65
# 如果你想要中文
66
66
default_language = " zh"
67
67
```
68
68
69
- It's sad that transations in themes are not working , you can copy these to your ` config.toml ` :
69
+ If there are complications , you can copy this snippet to your ` config.toml ` :
70
70
71
71
``` toml
72
- [translations .en ]
72
+ [languages .en . translations ]
73
73
about = " About"
74
74
home = " Home"
75
75
tags = " Tags"
@@ -78,17 +78,27 @@ links = "Links"
78
78
next_page = " Next Page"
79
79
last_page = " Last Page"
80
80
81
- [translations .zh ]
81
+ [languages .zh . translations ]
82
82
home = " 首页"
83
83
about = " 关于"
84
84
tags = " 标签"
85
85
archive = " 归档"
86
86
links = " 友链"
87
87
next_page = " 下一页"
88
88
last_page = " 上一页"
89
+
90
+ [languages .de .translations ]
91
+ about = " Info"
92
+ home = " Home"
93
+ tags = " Kategorien"
94
+ archive = " Archiv"
95
+ links = " Links"
96
+ date_format = " %d-%m-%Y"
97
+ next_page = " Nächste Seite"
98
+ last_page = " Vorherige Seite"
89
99
```
90
100
91
- Feel free to create a pull request if you want to translate the promotes into other languages!
101
+ Feel free to create a pull request if you want to translate the theme into other languages!
92
102
93
103
### Sections
94
104
@@ -112,7 +122,7 @@ Tags and links sections are optional.
112
122
links = true
113
123
```
114
124
115
- and copy ` content/links ` to your own ` content ` library. And edit the ` _index.md ` in it to edit its content.
125
+ and copy ` content/links ` to your own ` content ` library. And edit the ` _index.md ` in it to modify its content.
116
126
117
127
- If you want to add the author's name on each page, add:
118
128
@@ -123,11 +133,12 @@ Tags and links sections are optional.
123
133
124
134
### Sidebar menu
125
135
126
- We support a bunch of social links, they are :
136
+ We support a bunch of social links:
127
137
128
138
``` toml
129
139
[extra .social ]
130
140
github = " "
141
+ stackoverflow = " " # use user_id
131
142
twitter = " "
132
143
facebook = " "
133
144
instagram = " "
@@ -143,7 +154,9 @@ Fill in your username if you want! And the logo won't appear if you leave it emp
143
154
144
155
### Comment system
145
156
146
- We currently support [ valine] ( https://valine.js.org/quickstart.html ) :
157
+ We currently support...
158
+
159
+ - [ Valine] ( https://valine.js.org/quickstart.html ) :
147
160
148
161
``` toml
149
162
[extra .comment .valine ]
@@ -155,14 +168,14 @@ avatar = "mm" # avatar style https://github.com/xCss/Valine/wiki/avatar-setting-
155
168
placeholder = " Say something here"
156
169
```
157
170
158
- [ disqus ] ( https://disqus.com/admin/create/ ) , note disqus does not work in Mainland China:
171
+ - [ Disqus ] ( https://disqus.com/admin/create/ ) , note that Disqus does not work in Mainland China:
159
172
160
173
``` toml
161
174
[extra .comment .disqus ]
162
175
name = " longfangsong"
163
176
```
164
177
165
- And [ utterances ] ( https://utteranc.es/ ) :
178
+ - [ Utterances ] ( https://utteranc.es/ ) :
166
179
167
180
``` toml
168
181
[extra .comment .utterances ]
@@ -174,7 +187,7 @@ theme = "github-light"
174
187
175
188
## Customize
176
189
177
- There are several points I left in the origin templates for you to customize your site.
190
+ There are several options I left in the origin templates for you to customize your site.
178
191
179
192
### More style
180
193
@@ -198,6 +211,6 @@ You can add more social links by adding a `templates.html` with some content add
198
211
{%/* endblock */%}
199
212
```
200
213
201
- If you want to use some awsome logos, [ font awsome icons] ( https://fontawesome.com/icons?d=gallery ) are already available.
214
+ If you want to use some awesome logos, [ FontAwesome icons] ( https://fontawesome.com/icons?d=gallery ) are already available.
202
215
203
216
0 commit comments