Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2017-07-15 00:12:33 +0300
committerYihui Xie <xie@yihui.name>2017-07-15 00:12:33 +0300
commit3b7bf7bfc21f8c270bdec3d3d5289794a143d7ed (patch)
treee2ef4c2f5177c3e301fb7ac35cbdaa73a92c3413
parent30a4255ec19a8e3451f1ded40b44d40d30a0b282 (diff)
add a partial template meta.html so that we can add more information to the article meta area
-rw-r--r--layouts/_default/single.html1
-rw-r--r--layouts/partials/meta.html0
2 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7731147..6c1d86b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -18,6 +18,7 @@
{{ with .Params.tags }}
<div>{{ default "Tags: " (index $.Site.Params.text "tags") }} {{ range $i, $e := . }}{{ if $i }}; {{ end }}<a href="{{ relURL (print "/tags/" $e | urlize) }}">{{ $e }}</a>{{ end }}
</div>
+ {{ partial "meta.html" . }}
{{ end }}
</div>
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/meta.html