aboutsummaryrefslogtreecommitdiff
path: root/templates/template.html
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-05-05 01:12:44 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-05-05 01:24:44 -0700
commit82371e351a35363a8b493d0063e925dce1d27008 (patch)
tree529e0a656a524a92efa5f8d1fd5751c47bff39d8 /templates/template.html
parent015e3b4716a15c674829034bce56b83b323688df (diff)
downloadmy_new_personal_website-82371e351a35363a8b493d0063e925dce1d27008.tar.xz
my_new_personal_website-82371e351a35363a8b493d0063e925dce1d27008.zip
handle navigation button and favicons
Note that I'm using an <embed> tag with the svg because if wrapped in <img>, the svg won't render on Safari. After using the <embed> tag, the svg renders on all four major browsers on OS X (Chrome, Safari, Firefox, Opera), and it looks nice on all three but Firefox, in which case it's crappy as fuck.
Diffstat (limited to 'templates/template.html')
-rw-r--r--templates/template.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/template.html b/templates/template.html
index ff6c5f5a..ba826be1 100644
--- a/templates/template.html
+++ b/templates/template.html
@@ -8,6 +8,9 @@ $if(date)$
<meta name="date" content="$date$" />
$endif$
<title>$pagetitle$</title>
+<link rel="apple-touch-icon-precomposed" href="/img/favicon-152.png">
+<meta name="msapplication-TileColor" content="#FFFFFF">
+<meta name="msapplication-TileImage" content="/img/favicon-144.png">
<style type="text/css">code{white-space: pre;}</style>
$if(quotes)$
<style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
@@ -31,6 +34,13 @@ $endfor$
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
</head>
<body>
+<nav>
+<div style="height:150px; width:100px; text-align:center;">
+<a href="/"><embed src="/img/icon.svg" type="image/svg+xml" height="100" width="100" style="padding: 2px 0;"></a>
+<div style="padding: 1px 0;"><a href="/"><strong>dl? cmplnts?</strong></a></div>
+<div style="font-size: 9pt;">by <a href="https://github.com/zmwangx" target="_blank">Zhiming Wang</a></div>
+</div>
+</nav>
<article>
$if(title)$
<header>
@@ -55,7 +65,7 @@ $body$
<footer>
<hr>
<a class="cc-icon" href="https://creativecommons.org/licenses/by/4.0/" target="_blank" title="Released under the Creative Commons Attribution 4.0 International license.">
-<a href="https://github.com/zmwangx">Zhiming Wang</a>
+<a href="https://github.com/zmwangx" target="_blank">Zhiming Wang</a>
</footer>
</article>
</body>