From 5ec5a5828d2b8a24ee047fdc464e71da36e58a6e Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 2 May 2016 17:26:19 +0200 Subject: [PATCH] Add automatic anchor symbols using anchorjs --- layouts/page/single.html | 1 + layouts/partials/head.html | 2 ++ layouts/post/single.html | 1 + static/css/main.css | 4 ++++ 4 files changed, 8 insertions(+) diff --git a/layouts/page/single.html b/layouts/page/single.html index 7b867ec0..a091108c 100644 --- a/layouts/page/single.html +++ b/layouts/page/single.html @@ -6,4 +6,5 @@ {{ .Content }} +{{ partial "anchorjs.html" . }} {{ partial "footer.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 66ac30e4..6856076e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -28,6 +28,8 @@ {{ end }} + + {{ partial "analytics.html" . }} diff --git a/layouts/post/single.html b/layouts/post/single.html index a13a67e8..d8e2c7a8 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -24,4 +24,5 @@
{{ partial "disqus.html" . }} +{{ partial "anchorjs.html" . }} {{ partial "footer.html" . }} diff --git a/static/css/main.css b/static/css/main.css index b47e6490..06d8681d 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -102,3 +102,7 @@ footer.footer { sup, sub { line-height: 0; } + +a.anchorjs-link:hover { + text-decoration: none; +}