about summary refs log tree commit diff stats
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/disqus.html14
-rw-r--r--layouts/partials/head.html9
-rw-r--r--layouts/partials/head_fonts.html1
-rw-r--r--layouts/partials/hook_head_end.html0
-rw-r--r--layouts/partials/sidebar.html13
5 files changed, 13 insertions, 24 deletions
diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html
deleted file mode 100644
index 323ae04..0000000
--- a/layouts/partials/disqus.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<div id="disqus_thread"></div>
-<script type="text/javascript">
-    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
-    var disqus_shortname = '{{ .Site.Params.disqusShortname }}'; // Required - Replace '<example>' with your forum shortname
-
-    /* * * DON'T EDIT BELOW THIS LINE * * */
-    (function() {
-        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
-        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
-        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
-    })();
-</script>
-<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
-</div>
\ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 59304c2..c92ea95 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -4,15 +4,16 @@
 		<meta charset="UTF-8">
 		<meta name="viewport" content="width=device-width,initial-scale=1">
 
-		{{ if .IsHome }}
+		{{ if .IsHome -}}
 		<title>{{ .Site.Title }}</title>
-		{{ else }}
+		{{- else -}}
 		<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
-		{{ end }}
+		{{- end }}
 
+		<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
 		<link rel="stylesheet" href="/css/poole.css">
 		<link rel="stylesheet" href="/css/syntax.css">
 		<link rel="stylesheet" href="/css/hyde.css">
 		<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
-		<link href="{{ if .IsPage }}{{ .Permalink | replaceRE "/$" "" }}{{ else }}{{ .Permalink }}{{ end }}" rel="canonical">
+		{{ partial "hook_head_end.html" . }}
 	</head>
diff --git a/layouts/partials/head_fonts.html b/layouts/partials/head_fonts.html
new file mode 100644
index 0000000..4729eb2
--- /dev/null
+++ b/layouts/partials/head_fonts.html
@@ -0,0 +1 @@
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface|PT+Sans:400,400i,700">
diff --git a/layouts/partials/hook_head_end.html b/layouts/partials/hook_head_end.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/hook_head_end.html
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index a076070..e6aadac 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,29 +1,30 @@
 		<aside class="sidebar container">
 			<header class="sidebar-about h-card vcard p-author">
-				{{ if (isset .Site.Author "image") }}
+				{{ if (isset .Site.Author "image") -}}
 				<a class="u-url u-uid" rel="me" href="{{ .Site.BaseURL }}">
 					<img class="u-photo" src="{{ .Site.Author.image }}" width=128 height=128 />
 				</a>
-				{{ end }}
+				{{ end -}}
 
-				{{ if eq .Title .Site.Title }}
+        {{ if eq .Title .Site.Title -}}
 				<h1 class="site-title u-name fn">{{ .Site.Title }}</h1>
-				{{ else }}
+				{{ else -}}
 				<span class="site-title u-name fn">{{ .Site.Title }}</span>
-				{{ end }}
+				{{ end -}}
 
 				<p class="lead p-note">
 					{{ with .Site.Params.Description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
 				</p>
+			</header>
 
 				<nav>
 					<ul class="sidebar-nav">
+            <li><a href="{{ .Site.BaseURL }}">Home</a></li>
 						{{ range .Site.Menus.main }}
 						<li><a href="{{.URL}}"> {{ .Name }} </a></li>
 						{{end}}
 					</ul>
 				</nav>
-			</header>
 
 			<footer>
 				Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.