Skip to content

Commit 82c28d7

Browse files
committed
footnotes, favicons, better headers
1 parent 081b8d8 commit 82c28d7

File tree

3 files changed

+48
-5
lines changed

3 files changed

+48
-5
lines changed

layouts/_default/baseof.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
<link rel="canonical" href="{{ .Site.BaseURL }}">
66
<link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'>
77
<link rel='stylesheet' type='text/css' href='/css/style.css'>
8-
{{ with .Site.Params.favicon }}<link rel="icon" href="{{ . }}">
8+
{{ with .Site.Params.favicon_apple_touch }}<link rel="apple-touch-icon" sizes="180x180" href="{{ . }}">
9+
{{ end -}}
10+
{{ with .Site.Params.favicon_32x32 }}<link rel="icon" type="image/png" sizes="32x32" href="{{ . }}">
11+
{{ end -}}
12+
{{ with .Site.Params.favicon_16x16 }}<link rel="icon" type="image/png" sizes="16x16" href="{{ . }}">
913
{{ end -}}
1014
<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
1115
<!-- <meta name="keywords" content=""> -->

layouts/_default/single.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,33 @@
77
{{ end }}
88
<article>
99
<h1>{{ .Title }}</h1>
10+
{{ $displayHR := false }}
1011
{{ if .Date }}
12+
{{ $displayHR = true }}
1113
<p>
1214
<i>Published:</i>
1315
<time>{{ .Date.Format (default "2006-01-02" .Site.Params.dateFmt) }}</time>
1416
</p>
1517
{{ end }}
1618
{{ if .Params.series }}
19+
{{ $displayHR = true }}
1720
<p>
1821
<i>Part of a series on:</i>
1922
{{ range .Params.series }}
2023
<a href="{{ "/series/" | relLangURL }}{{ . | urlize }}{{ "/" | relLangURL }}">{{ . }}</a>
2124
{{ end }}
2225
</p>
2326
{{ end }}
27+
{{ if .Params.disclaimer }}
28+
{{ $displayHR = true }}
29+
<p>
30+
<i>Disclaimer:</i>
31+
{{ .Params.disclaimer }}
32+
</p>
33+
{{ end }}
34+
{{ if $displayHR }}
35+
<hr>
36+
{{ end }}
2437
<div>
2538
{{ .Content }}
2639
</div>

static/css/style.css

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,39 @@ h1 {
5656
}
5757

5858
h2 {
59+
margin-top: 40px;
5960
font-size: 28px;
6061
}
6162

6263
h3 {
63-
font-size: 24px;
64+
margin-top: 24px;
65+
font-size: 20px;
6466
}
6567

6668
h4 {
67-
font-size: 20px;
69+
font-size: 18px;
70+
font-style: italic;
71+
color: var(--dim_0);
6872
}
6973

7074
h5 {
71-
font-size: 18px;
75+
font-size: 16px;
76+
font-style: italic;
77+
color: var(--dim_0);
78+
}
79+
80+
h6 {
81+
font-size: 14px;
82+
font-style: italic;
83+
color: var(--dim_0);
7284
}
7385

7486
h1,
7587
h2,
7688
h3,
7789
h4,
78-
h5 {
90+
h5,
91+
h6 {
7992
line-height: 1.2
8093
}
8194

@@ -200,4 +213,17 @@ a.home-link {
200213
.pagination-item a,
201214
.pagination-item p {
202215
margin: 10px;
216+
}
217+
218+
a.footnote-ref,
219+
a.footnote-backref {
220+
text-decoration: none;
221+
}
222+
223+
a.footnote-ref::before {
224+
content: '[';
225+
}
226+
227+
a.footnote-ref::after {
228+
content: ']';
203229
}

0 commit comments

Comments
 (0)