diff options
| author | 2024-08-02 13:23:35 +0800 | |
|---|---|---|
| committer | 2024-08-02 13:23:35 +0800 | |
| commit | e03422873a1788137f120d9c8f34b2be079f0aee (patch) | |
| tree | f52775951aed0c594a6b1ca4c9432f3bba74ecac /themes/hugo-xmag/layouts/_default/single.html | |
| parent | 2b8db24f956ad99305860c2f8f4cd3a331a76dc6 (diff) | |
| download | journal-e03422873a1788137f120d9c8f34b2be079f0aee.tar.gz journal-e03422873a1788137f120d9c8f34b2be079f0aee.zip | |
docs: build with hugo
Diffstat (limited to 'themes/hugo-xmag/layouts/_default/single.html')
| -rw-r--r-- | themes/hugo-xmag/layouts/_default/single.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/themes/hugo-xmag/layouts/_default/single.html b/themes/hugo-xmag/layouts/_default/single.html new file mode 100644 index 0000000..173ec3b --- /dev/null +++ b/themes/hugo-xmag/layouts/_default/single.html @@ -0,0 +1,41 @@ +{{ partial "header.html" . }} +<div class="container"> +<article> +<div class="article-meta"> + + <div class="categories"> + {{ range $i, $e := .Params.categories }} + {{ if $i }} ⊹ {{ end }}<a href="{{ relURL (print "/categories/" $e | urlize) }}">{{ $e }}</a> + {{ end }} + </div> + + <h1><span class="title">{{ .Title }}</span></h1> + + {{ if .Params.author }} + <h3 class="author">{{ partial "author_names.html" . }}</h3> + {{ end }} + + {{ with .Params.tags }} + <p>{{ default "Tags: " (index $.Site.Params.text "tags") }}{{ range $i, $e := . }}{{ if $i }}; {{ end }}<a href="{{ relURL (print "/tags/" $e | urlize) }}">{{ $e }}</a>{{ end }} + </p> + {{ end }} + {{ partial "meta.html" . }} + +</div> + +{{ if .Params.toc }} +{{ .TableOfContents }} +{{ end }} + +<main> +{{ .Content }} +</main> + +{{ partial "author.html" . }} +{{ partial "info.html" . }} +{{ partial "prev_next.html" . }} +{{ partial "comments.html" . }} +</article> +</div> + +{{ partial "footer.html" . }} |
