aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--source/css/theme.css2
-rw-r--r--source/template.html7
2 files changed, 7 insertions, 2 deletions
diff --git a/source/css/theme.css b/source/css/theme.css
index e8384da9..b81f989d 100644
--- a/source/css/theme.css
+++ b/source/css/theme.css
@@ -104,7 +104,7 @@ h2 {
text-align: center;
font-size: 100%;
font-weight: normal;
- font-style: italic;
+ margin: 1em 0;
}
a {
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$