From: digitalcraftsman Date: Tue, 25 Jul 2017 17:03:24 +0000 (+0200) Subject: Use .Site.BaseURL to generate sidebar "Home" link X-Git-Url: http://njoseph.me/gitweb/hyde.git/commitdiff_plain/c336c335271c3f40d518eac0e8341340970c3283?hp=e199c3b532f168a2f65e91970544fd7782e133cb Use .Site.BaseURL to generate sidebar "Home" link --- diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7659d47..c362b25 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,15 +1,15 @@ {{ partial "head.html" . }} -{{ partial "sidebar.html" . }} + {{ partial "sidebar.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 96c9f94..26149e7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,19 +1,19 @@ - {{ partial "head.html" . }} - - {{ partial "sidebar.html" . }} +{{ partial "head.html" . }} + + {{ partial "sidebar.html" . }} -
-
-

{{ .Title }}

- - {{ .Content }} -
+
+
+

{{ .Title }}

+ + {{ .Content }} +
- {{ if and (isset .Site.Params "disqusShortname") (ne .Site.Params.disqusShortname "") }} + {{ if .Site.Params.disqusShortname }}

Comments

{{ partial "disqus" . }} {{ end }}
- - + + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 110c99e..447a27c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -15,6 +15,7 @@ {{ end }} + diff --git a/static/css/print.css b/static/css/print.css new file mode 100644 index 0000000..da8f1df --- /dev/null +++ b/static/css/print.css @@ -0,0 +1,19 @@ +.sidebar { + display: none !important; +} + +.content { + margin: 0 auto; + width: 100%; + float: none; + display: initial; +} + +.container { + width: 100%; + float: none; + display: initial; + padding-left: 1rem; + padding-right: 1rem; + margin: 0 auto; +}