Fix footnotes and anchor href

This commit is contained in:
Alexis Tacnet
2017-02-24 14:50:45 +01:00
parent 74ac69fb6a
commit b89ca391a6
4 changed files with 13 additions and 4 deletions

View File

@@ -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.**

View File

@@ -1,6 +1,5 @@
<head>
{{ partial "meta.html" . }}
<base href="{{ .Site.BaseURL }}">
<title>
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if eq $url "" }}

View File

@@ -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 }}

View File

@@ -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;
}