aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html41
1 files changed, 17 insertions, 24 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3006c56..407702a 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,40 +1,33 @@
{{ define "main" }}
-
-<header class="post-header">
- <span class="site-title"><a href="{{ "" | relURL }}">{{ .Site.Title }}</a></span>
- <nav>{{- partial "nav.html" . -}}</nav>
+<header>
+ <span class=site-title><a href={{ "" | relURL }}>{{ .Site.Title }}</a></span>
+ <nav>{{ partial "nav.html" . }}</nav>
</header>
-
<hr>
-<article class="h-entry">
- <header class="entry-meta">
- <h1 class="p-name post-title">{{ .Title }}</h1>
- <div class="meta-line">
- <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
- {{ .Date.Format "2006-01-02" }}
- </time>
-
+<article>
+ <header>
+ <h1>{{ .Title }}</h1>
+ <div class=meta>
+ <time datetime={{ .Date.Format "2006-01-02T15:04:05Z07:00" }}>{{ .Date.Format "2006-01-02" }}</time>
{{ with .Params.categories }}
- <span class="meta-categories">
- [{{ range $index, $cat := . }}{{ if $index }} · {{ end }}<a href="/categories/{{ $cat | urlize }}/" class="p-category">{{ $cat }}</a>{{ end }}]
- </span>
+ <span class=cats>[
+ {{- range $index, $cat := . -}}
+ {{- if $index }} · {{ end -}}<a href=/categories/{{ $cat | urlize }}/>{{ $cat }}</a>
+ {{- end -}}
+ ]</span>
{{ end }}
</div>
</header>
- <div class="e-content entry-body">
+ <div class=body>
{{ .Content }}
</div>
</article>
-
<hr>
-<footer class="post-footer">
- <div class="post-declaration">
- <p>条目共享:遵循 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="license noopener">CC BY-NC-SA 4.0</a> 协议。</p>
- <p>交流通道:向 <a href="mailto:im@verdant.ee?subject=回复《{{ .Title }}》">im@verdant.ee</a> 发送一封 <a href="https://useplaintext.email/">纯文本邮件</a>。</p>
- </div>
+<footer>
+ <p>条目共享:遵循 <a href=https://creativecommons.org/licenses/by-nc-sa/4.0/ rel="license noopener">CC BY-NC-SA 4.0</a> 协议。</p>
+ <p>交流通道:向 <a href="mailto:im@verdant.ee?subject=回复《{{ .Title }}》">im@verdant.ee</a> 发送一封 <a href=https://useplaintext.email/>纯文本邮件</a>。</p>
</footer>
-
{{ end }}