aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-07-26 21:58:01 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-07-26 21:58:01 -0700
commite68048797483a3e5cc5e1dc114a80a7af8fecbb9 (patch)
treeaa475a8405fafdf553c97082a31592570a3ba3ca /templates
parentbab5532377fec7cf2679b94701908225c1b6cc56 (diff)
downloadmy_new_personal_website-e68048797483a3e5cc5e1dc114a80a7af8fecbb9.tar.xz
my_new_personal_website-e68048797483a3e5cc5e1dc114a80a7af8fecbb9.zip
tons of logic and performance improvements
The main aim is a more logical DOM structure and more performant CSS.
Diffstat (limited to '')
-rw-r--r--templates/template.html33
1 files changed, 14 insertions, 19 deletions
diff --git a/templates/template.html b/templates/template.html
index 6d28a581..0805c3b8 100644
--- a/templates/template.html
+++ b/templates/template.html
@@ -48,34 +48,30 @@ ga('send', 'pageview');
</script>
</head>
<body>
-<nav>
-<div><a class="blog-icon" href="/">blog icon</a></div>
-<div class="title"><a href="/">dl? cmplnts?</a></div>
-<div class="author">by <a href="https://github.com/zmwangx" target="_blank">Zhiming Wang</a></div>
+<nav class="nav">
+<a class="nav-icon" href="/">blog icon</a>
+<div class="nav-title"><a href="/" class="nav-link">dl? cmplnts?</a></div>
+<div class="nav-author">by <a href="https://github.com/zmwangx" class="nav-link" target="_blank">Zhiming Wang</a></div>
</nav>
-<article>
+<article class="content">
$if(title)$
-<header>
-<h1 class="title">$title$</h1>
+<header class="article-header">
+<h1 class="article-title">$title$</h1>
$if(subtitle)$
-<h1 class="subtitle">$subtitle$</h1>
+<h1 class="article-subtitle">$subtitle$</h1>
$endif$
-<h2 class="meta">
+<h2 class="article-metadata">
$if(date-display)$
-<time class="timestamp" $if(date)$datetime="$date$"$endif$>$date-display$,</time>
+<time class="article-timestamp" $if(date)$datetime="$date$"$endif$>$date-display$,</time>
$endif$
-by <span class="author">Zhiming Wang</span>
+by <span class="article-author">Zhiming Wang</span>
</h2>
</header>
$endif$
-$if(toc)$
-<div id="$idprefix$TOC">
-$toc$
-</div>
-$endif$
$body$
-<footer>
-<hr/>
+</article>
+<hr class="content-separator"/>
+<footer class="footer">
$if(updated)$
<span class="lfooter">
<time class="updated" datetime="$updated$"><code>$updated$</code></time>
@@ -86,6 +82,5 @@ $endif$
<a href="https://github.com/zmwangx" target="_blank">Zhiming Wang</a>
</span>
</footer>
-</article>
</body>
</html>