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

github.com/wd/hugo-fabric.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.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/partials/author.html b/layouts/partials/author.html
new file mode 100644
index 0000000..5d04424
--- /dev/null
+++ b/layouts/partials/author.html
@@ -0,0 +1,8 @@
+<% if post.author %>
+ <% assign author = post.author %>
+<% elsif page.author %>
+ <% assign author = page.author %>
+<% else %>
+ <% assign author = theme.author %>
+<% } %>
+<% if author %><span class="byline author vcard">Posted by <span class="fn"><%= author %></span></span><% } %>