From b89ca391a6c290bb2f3c75c906d5c5b379e55296 Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Fri, 24 Feb 2017 14:50:45 +0100 Subject: [PATCH] Fix footnotes and anchor href --- exampleSite/content/blog/example-of-an-article.md | 2 +- layouts/partials/head.html | 1 - layouts/partials/header.html | 2 +- static/css/main.css | 12 +++++++++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/exampleSite/content/blog/example-of-an-article.md b/exampleSite/content/blog/example-of-an-article.md index ad24994..0149b3b 100644 --- a/exampleSite/content/blog/example-of-an-article.md +++ b/exampleSite/content/blog/example-of-an-article.md @@ -13,7 +13,7 @@ best: true **This theme includes a tranparent way to defer images. This can be enabled/disabled in the `config.toml`.** -![image](./img/startup.jpg) +![image](/img/startup.jpg) **You will just have to do two images : the normal, and a low resolution one.** diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3c2d476..8f3b042 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,5 @@ {{ partial "meta.html" . }} - {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if eq $url "" }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5a41601..274534c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -22,7 +22,7 @@ {{ range .Site.Sections }} {{ range first 1 (where .Pages "Section" "ne" "")}} {{ if ne .Section "blog"}} - <a href="{{ .Section | urlize }}"><li>{{ .Section }}</li></a> + <a href="{{ .Section | urlize | absURL }}"><li>{{ .Section }}</li></a> {{ end }} {{ end }} {{ end }} diff --git a/static/css/main.css b/static/css/main.css index bd5471b..e907f19 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -119,7 +119,7 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, +small, strike, strong, sub, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, @@ -871,3 +871,13 @@ section.main .content .markdown tbody tr:nth-child(odd) td, section.main .content .markdown tbody tr:nth-child(odd) th { background-color: #f7f7f7; } +section.main .content .markdown .footnotes ol { + list-style-type: decimal; + margin-left: 16px; +} +section.main .content .markdown .footnotes li { + list-style-type: unset; +} +section.main .content .markdown .footnote-ref { + font-size: 0.7em; +} \ No newline at end of file