[blog] add article
Mainly for compatibility with Firefox Reader View.
This commit is contained in:
parent
825a375a34
commit
1f7c2d19ad
1 changed files with 20 additions and 22 deletions
|
@ -1,31 +1,29 @@
|
||||||
{{- define "stylesheet" -}}
|
{{- define "stylesheet" -}}
|
||||||
{{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}}
|
{{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}}
|
||||||
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "header" }}
|
{{- define "header" }}
|
||||||
<header id="blog-header">
|
<header id="blog-header">
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<h1 class="title">{{ .Title }}</h1>
|
||||||
<p>
|
<p>
|
||||||
<span
|
<span id="blog-post-published" title="{{ i18n " blog-post-published" }} {{ .Date |
|
||||||
id="blog-post-published"
|
time.Format "2. January 2006, 15:04 MST" }}">
|
||||||
title="{{ i18n "blog-post-published" }} {{ .Date | time.Format "2. January 2006, 15:04 MST" }}"
|
{{ .Date | time.Format "2. January 2006" }}
|
||||||
>
|
</span>
|
||||||
{{ .Date | time.Format "2. January 2006" }}
|
<span id="blog-post-updated" title="{{ i18n " blog-post-updated" }} {{ .Lastmod |
|
||||||
</span>
|
time.Format "2. January 2006, 15:04 MST" }}">
|
||||||
<span
|
{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006" }}
|
||||||
id="blog-post-updated"
|
</span>
|
||||||
title="{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006, 15:04 MST" }}"
|
</p>
|
||||||
>
|
</header>
|
||||||
{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006" }}
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
</header>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- define "main" }}
|
{{- define "main" }}
|
||||||
<main>
|
<main>
|
||||||
|
<article>
|
||||||
{{ .Content -}}
|
{{ .Content -}}
|
||||||
{{ partial "moreposts.html" . }}
|
{{ partial "moreposts.html" . }}
|
||||||
</main>
|
</article>
|
||||||
|
</main>
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in a new issue