From 1d7b913a1a5450c5bfd79574024216631a64fc8d Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 17 Jan 2016 15:21:04 +0100 Subject: [PATCH] Add automatic anchor symbols using anchorjs --- _includes/anchorjs.html | 6 ++++++ _includes/head.html | 3 +++ _layouts/page.html | 1 + _layouts/post.html | 1 + _sass/_base.scss | 4 ++++ 5 files changed, 15 insertions(+) create mode 100644 _includes/anchorjs.html diff --git a/_includes/anchorjs.html b/_includes/anchorjs.html new file mode 100644 index 00000000..fb6093e3 --- /dev/null +++ b/_includes/anchorjs.html @@ -0,0 +1,6 @@ + diff --git a/_includes/head.html b/_includes/head.html index 8bccb0d0..cdcd4215 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -22,4 +22,7 @@ + + + diff --git a/_layouts/page.html b/_layouts/page.html index 2641728d..1fb4b9cf 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -8,4 +8,5 @@ layout: default
{% include disqus.html %} + {% include anchorjs.html %} diff --git a/_layouts/post.html b/_layouts/post.html index e063e652..8b1a2be2 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -19,4 +19,5 @@ layout: default
{% include disqus.html %} + {% include anchorjs.html %} diff --git a/_sass/_base.scss b/_sass/_base.scss index 4b0626a2..cf50565b 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -47,6 +47,10 @@ a { } } +a.anchorjs-link:hover { + text-decoration: none; +} + img { display: block; max-width: 100%;