aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-09-25 21:10:51 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-09-25 21:10:51 -0700
commit94a9ef9972f06f1cd0f30921012f3dc93571eb7a (patch)
tree9e337c6d8150e54e601a7abefab3b16e101d4bca
parent571b1a78a678a55cbb4e41dc4ce2a03765ea2f52 (diff)
downloadmy_new_personal_website-94a9ef9972f06f1cd0f30921012f3dc93571eb7a.tar.xz
my_new_personal_website-94a9ef9972f06f1cd0f30921012f3dc93571eb7a.zip
template: put article-metadata in div tag instead of h2
Date and author shouldn't be in the document outline.
-rw-r--r--source/css/theme.css1
-rw-r--r--templates/template.html4
2 files changed, 3 insertions, 2 deletions
diff --git a/source/css/theme.css b/source/css/theme.css
index 1a3fee0e..db3f6ba0 100644
--- a/source/css/theme.css
+++ b/source/css/theme.css
@@ -90,6 +90,7 @@ h2 {
}
.article-metadata {
+ text-align: center;
font-size: 1em;
font-weight: normal;
font-style: italic;
diff --git a/templates/template.html b/templates/template.html
index 21d27504..2b0115d7 100644
--- a/templates/template.html
+++ b/templates/template.html
@@ -40,12 +40,12 @@ $if(title)$
$if(subtitle)$
<h1 class="article-subtitle">$subtitle$</h1>
$endif$
- <h2 class="article-metadata">
+ <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>
- </h2>
+ </div>
</header>
$endif$
$body$