aboutsummaryrefslogtreecommitdiff
path: root/source/template.html
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2016-07-10 10:19:40 +0800
committerZhiming Wang <zmwangx@gmail.com>2016-07-10 10:21:45 +0800
commit57cb851cb769b1ce90d8311b2846dd7eaed17b74 (patch)
treefaae540bab05c9e6e79df44b3d3ec40e141ddd91 /source/template.html
parent42094cb6de818b8ae141abaa33895b9ed07f3709 (diff)
downloadmy_new_personal_website-57cb851cb769b1ce90d8311b2846dd7eaed17b74.tar.xz
my_new_personal_website-57cb851cb769b1ce90d8311b2846dd7eaed17b74.zip
template.html: Put author and date on separate lines, and ...
only display author when explicitly set in Pandoc metadata. Most if not all posts are by me, and there are plenty of occurrences of "Zhiming Wang" on the page. Also make authorship and date info normal instead of italic -- italic doesn't look very nice here.
Diffstat (limited to 'source/template.html')
-rw-r--r--source/template.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/template.html b/source/template.html
index 5d18121b..eac772c4 100644
--- a/source/template.html
+++ b/source/template.html
@@ -37,7 +37,12 @@ $if(subtitle)$
<h1 class="article-subtitle">$subtitle$</h1>
$endif$
<div class="article-metadata">
- $if(date_display)$<time class="article-timestamp" $if(date)$datetime="$date$"$endif$>$date_display$</time>, $endif$by <span class="article-author">Zhiming Wang</span>
+$if(author)$
+ <span class="article-author">$author$</span><br/>
+$endif$
+$if(date_display)$
+ <time class="article-timestamp" $if(date)$datetime="$date$"$endif$>$date_display$</time>
+$endif$
</div>
</header>
$endif$