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:
Diffstat (limited to 'layouts/partials/author.html')
-rw-r--r--layouts/partials/author.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/author.html b/layouts/partials/author.html
new file mode 100644
index 0000000..c5ed53d
--- /dev/null
+++ b/layouts/partials/author.html
@@ -0,0 +1,10 @@
+{{ with .Params.author }}
+{{ if $.Site.Data.authors }}
+{{ with (index $.Site.Data.authors .) }}
+<section class="article-meta article-footer">
+ <h3>{{ default "About the Author" $.Site.Params.text.about_author }}</h3>
+ <p>{{ . | markdownify }}</p>
+</section>
+{{ end }}
+{{ end }}
+{{ end }}