Skip to content

Commit e867572

Browse files
committed
style modified: move tags above the title
1 parent 1c03039 commit e867572

File tree

9 files changed

+100
-11
lines changed

9 files changed

+100
-11
lines changed

assets/icons/lastmod.svg

+6
Loading

config/_default/frontmatter.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
lastmod = ["lastmod", ":git", ":fileModTime", "date", "publishDate"]
1+
lastmod = [":git", "lastmod", ":fileModTime", "date", "publishDate"]
22
license = "CC BY-NC-SA 4.0"

config/_default/params.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ customText = ""
1010

1111
[dateFormat]
1212
published = "2006-01-02"
13-
lastUpdated = "2006-01-02 15:04"
13+
lastUpdated = "2006-01-02"
1414

1515
[sidebar]
1616
emoji = "🀄"
@@ -70,7 +70,7 @@ repoID = "R_kgDOKZBzLw"
7070
category = "General"
7171
categoryID = "DIC_kwDOKZBzL84CdRUX"
7272
mapping = "pathname"
73-
lightTheme = "light"
74-
darkTheme = "noborder_gray"
73+
lightTheme = ""
74+
darkTheme = ""
7575
reactionsEnabled = 1
7676
emitMetadata = 0

content/about/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
date: false
3+
slug: a
34
menu:
45
main:
56
name: About

content/page/links/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ links:
44
- title: Ohdmire
55
description: 超高性能的中医药学者(迫真
66
website: http://ohdmire.github.io/
7-
image: https://ohdmire.github.io/img/logo_hu42046039cb7bc2da82e3b9d1e96c2c30_372244_288x288_fill_box_center_3.png
8-
slug: lk
7+
image: https://ohdmire.github.io/img/logo.png
8+
slug: l
99
menu:
1010
main:
1111
name: Links

content/page/archives/index.md content/page/posts/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Archives"
2+
title: "Posts"
33
layout: "archives"
44
slug: "p"
55
menu:

content/page/search/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Search"
3-
slug: "s"
43
layout: "search"
4+
slug: "s"
55
outputs:
66
- html
77
- json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<div class="article-details">
2+
{{ if .Params.categories }}
3+
<header class="article-category">
4+
{{ range (.GetTerms "categories") }}
5+
<a href="{{ .RelPermalink }}" {{ with .Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}>
6+
{{ .LinkTitle }}
7+
</a>
8+
{{ end }}
9+
</header>
10+
{{ end }}
11+
12+
{{ if .Params.tags }}
13+
<div class="article-tags">
14+
{{ range (.GetTerms "tags") }}
15+
<a href="{{ .RelPermalink }}">
16+
{{ .LinkTitle }}
17+
</a>
18+
{{ end }}
19+
</div>
20+
{{ end }}
21+
22+
<div class="article-title-wrapper">
23+
<h2 class="article-title">
24+
<a href="{{ .RelPermalink }}">
25+
{{- .Title -}}
26+
</a>
27+
</h2>
28+
29+
{{ with .Params.description }}
30+
<h3 class="article-subtitle">
31+
{{ . }}
32+
</h3>
33+
{{ end }}
34+
</div>
35+
36+
{{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }}
37+
{{ $showDate := not .Date.IsZero }}
38+
{{ $showFooter := or $showDate $showReadingTime }}
39+
{{ if $showFooter }}
40+
<footer class="article-time">
41+
{{ if $showDate }}
42+
<div>
43+
{{ partial "helper/icon" "date" }}
44+
<time class="article-time--published">
45+
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
46+
</time>
47+
</div>
48+
{{ end }}
49+
50+
{{ if $showReadingTime }}
51+
<div>
52+
{{ partial "helper/icon" "clock" }}
53+
<time class="article-time--reading">
54+
{{ T "article.readingTime" .ReadingTime }}
55+
</time>
56+
</div>
57+
{{ end }}
58+
59+
<br>
60+
61+
{{- if ne .Lastmod .Date -}}
62+
<div>
63+
<time class="article-time">
64+
{{ partial "helper/icon" "lastmod" }}
65+
{{ T "article.lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04" ) }}
66+
</time>
67+
</div>
68+
{{- end -}}
69+
</footer>
70+
{{ end }}
71+
72+
{{ if .IsTranslated }}
73+
<footer class="article-translations">
74+
{{ partial "helper/icon" "language" }}
75+
<div>
76+
{{ range .Translations }}
77+
<a href="{{ .Permalink }}" class="link">{{ .Language.LanguageName }}</a>
78+
{{ end }}
79+
</div>
80+
</footer>
81+
{{ end }}
82+
</div>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<footer class="article-footer">
2-
{{ partial "article/components/tags" . }}
2+
<!-- {{ partial "article/components/tags" . }} -->
33

44
{{ if and (.Site.Params.article.license.enabled) (not (eq .Params.license false)) }}
55
<section class="article-copyright">
@@ -8,12 +8,12 @@
88
</section>
99
{{ end }}
1010

11-
{{- if ne .Lastmod .Date -}}
11+
<!-- {{- if ne .Lastmod .Date -}}
1212
<section class="article-lastmod">
1313
{{ partial "helper/icon" "clock" }}
1414
<span>
1515
{{ T "article.lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04" ) }}
1616
</span>
1717
</section>
18-
{{- end -}}
18+
{{- end -}} -->
1919
</footer>

0 commit comments

Comments
 (0)