Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bake/solar-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbake <bake@192k.pw>2019-05-20 16:19:20 +0300
committerbake <bake@192k.pw>2019-05-20 16:19:20 +0300
commit40549b0f68c70f0a3d38f8c78d7717812bc53367 (patch)
tree563c1c182561654e6e749de743d7118e8e7c3d5b
parent43ee7592f43d6f878ba18f27b36e3ae62085c376 (diff)
Add partials to inject into header and footer
-rw-r--r--layouts/partials/foot.html0
-rw-r--r--layouts/partials/footer.html7
-rw-r--r--layouts/partials/head.html0
-rw-r--r--layouts/partials/header.html10
4 files changed, 10 insertions, 7 deletions
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/foot.html
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index b0de64a..bd46bf8 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -3,7 +3,7 @@
<footer id="footer">
<p class="copyright">Powered by
<a href="http://ghost.org">Hugo</a> and the
- <a href="https://github.com/BakeRolls/solar-theme-hugo">Solar</a>-theme.</p>
+ <a href="https://github.com/bake/solar-theme-hugo">Solar</a>-theme.</p>
</footer>
</div>
@@ -12,9 +12,8 @@
<script>
hljs.initHighlightingOnLoad()
</script>
-<script>
- var _paq = _paq || []; _paq.push(["trackPageView"]), _paq.push(["enableLinkTracking"]), function () { var e = "//analytics.192k.pw/"; _paq.push(["setTrackerUrl", e + "piwik.php"]), _paq.push(["setSiteId", "1"]); var a = document, p = a.createElement("script"), t = a.getElementsByTagName("script")[0]; p.type = "text/javascript", p.async = !0, p.defer = !0, p.src = e + "piwik.js", t.parentNode.insertBefore(p, t) }();
-</script>
+
+{{ partial "foot.html" . }}
</body>
</html> \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/head.html
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 2649c1c..dafa8fd 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,12 +4,16 @@
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
- <meta name="viewport" content="width=device-width"> {{ if .RSSLink }}
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
- <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }}
+ <meta name="viewport" content="width=device-width">
+ {{ with .OutputFormats.Get "RSS" }}
+ <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
+ <link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
+ {{ end }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hybrid.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/colors-dark.css">
+
+ {{ partial "head.html" . }}
</head>
<body>