diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2016-07-10 10:19:40 +0800 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2016-07-10 10:21:45 +0800 |
commit | 57cb851cb769b1ce90d8311b2846dd7eaed17b74 (patch) | |
tree | faae540bab05c9e6e79df44b3d3ec40e141ddd91 /source/template.html | |
parent | 42094cb6de818b8ae141abaa33895b9ed07f3709 (diff) | |
download | my_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.html | 7 |
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$ |