File tree Expand file tree Collapse file tree 7 files changed +43
-42
lines changed Expand file tree Collapse file tree 7 files changed +43
-42
lines changed Original file line number Diff line number Diff line change 33
33
appearance = " auto"
34
34
back_home_text = " .."
35
35
date_format = " 2006-01-02"
36
- isListGroupByDate = false
36
+ isListGroupByDate = true
37
+
38
+ [outputs ]
39
+ home = [" HTML" , " RSS" ]
40
+ page = [" HTML" , " RSS" ]
41
+
42
+ [outputFormats ]
43
+ [outputFormats .RSS ]
44
+ mediatype = " application/rss+xml"
45
+ baseName = " atom"
Original file line number Diff line number Diff line change @@ -3,4 +3,3 @@ title = ""
3
3
date = 2022-08-25T21:30:04+08:00
4
4
draft = false
5
5
+++
6
- To edit this find file nostyleplease/content/_ index.md
Original file line number Diff line number Diff line change 1
1
[[entries ]]
2
- title = " info"
3
-
4
- [[entries .entries ]]
5
- title = " a (nearly) no-CSS, fast, minimalist Hugo theme ported from <a href='https://github.com/riggraz/no-style-please'>riggraz/no-style-please</a>."
6
-
7
- [[entries .entries ]]
8
- title = " github repo"
9
- url = " https://github.com/hanwenguo/hugo-theme-nostyleplease"
10
-
11
-
12
- [[entries ]]
13
- title = " all posts"
2
+ title = " thoughts"
14
3
15
4
[entries .post_list ]
16
- limit = 5
5
+ limit = 8
17
6
show_more = true
18
- show_more_text = " See archive. .."
7
+ show_more_text = " more .."
19
8
show_more_url = " posts"
20
9
21
10
[[entries ]]
22
- title = " posts by category "
11
+ title = " categories "
23
12
24
- [entries .post_list ]
25
- section = " posts"
26
- show_more = true
27
- show_more_text = " See more posts..."
28
- show_more_url = " posts"
13
+ [[entries .entries ]]
14
+ title = '''
15
+ <a href="/categories/SRE/" target="_blank">SRE</a> /
16
+ <a href="/categories/PYTHON/" target="_blank">PYTHON</a> /
17
+ <a href="/categories/JAVA/" target="_blank">JAVA</a> /
18
+ <a href="/categories/智能家居/" target="_blank">智能家居</a> /
19
+ <a href="/categories/个人相关/" target="_blank">个人相关</a>
20
+ '''
29
21
30
22
[[entries ]]
31
- title = " rss"
32
- url = " index.xml"
23
+ title = " info"
24
+
25
+ [[entries .entries ]]
26
+ title = " github"
27
+ url = " https://github.com/daya0576/"
28
+ [[entries .entries ]]
29
+ title = " rss"
30
+ url = " atom.xml"
33
31
34
32
[[entries ]]
35
- title = " another list "
33
+ title = " friends "
36
34
37
35
[[entries .entries ]]
38
36
title = " with subitems"
39
37
40
- [[entries .entries .entries ]]
41
- title = " with subsubitems"
42
-
43
- [[entries .entries .entries ]]
44
- title = " example page"
45
- url = " about"
46
-
47
38
[[entries ]]
48
39
title = " PRO TIP"
49
40
entries = [
Original file line number Diff line number Diff line change 1
- This is footer.
2
- You can edit this in ../nostyleplease/layouts/footer.md
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ <h1>{{ $.Site.Title }}</h1>
9
9
{{ .Content }}
10
10
{{ partial "menu_item.html" (dict "context" . "collection" $.Site.Data.menu.entries) }}
11
11
12
- {{ end }}
12
+ {{ end }}
Original file line number Diff line number Diff line change 19
19
{{ $style := $sass | css.Sass $options | resources.Fingerprint "sha512" }}
20
20
< link rel ="stylesheet " href ="{{ $style.Permalink | relURL }} " integrity ="{{ $style.Data.Integrity }} " />
21
21
{{ if .Params.mathjax }} {{ partial "mathjax.html" . }} {{ end }}
22
+
22
23
</ head >
Original file line number Diff line number Diff line change @@ -7,16 +7,19 @@ <h1>{{ .Title }}</h1>
7
7
8
8
<!-- divide post list by year -->
9
9
{{ if .Site.Params.theme_config.isListGroupByDate }}
10
- {{ range .Pages.GroupByDate "2006 Year" }}
11
- < p > {{ .Key }}</ p >
12
- < ul >
13
- {{ range .Pages }}
14
- < li > < a href ="{{ .RelPermalink }} "> {{ .Title }}</ a > </ li >
10
+ {{ range .Pages.GroupByDate "2006" }}
11
+ {{ $year := .Key }}
12
+ {{ if ge $year 2000 }}
13
+ < h2 > {{ .Key }}</ h2 >
14
+ < ul >
15
+ {{ range .Pages }}
16
+ < li > < a href ="{{ .RelPermalink }} "> {{ .Title }}</ a > </ li >
17
+ {{ end }}
18
+ </ ul >
15
19
{{ end }}
16
- </ ul >
17
20
{{ end }}
18
21
{{ else }}
19
22
{{ partial "post_list.html" (dict "context" . "section" .Section)}}
20
23
{{ end }}
21
24
22
- {{ end }}
25
+ {{ end }}
You can’t perform that action at this time.
0 commit comments