diff options
author | Fabian Tamp <fabian.tamp@gmail.com> | 2020-01-27 04:00:45 +0300 |
---|---|---|
committer | Fabian Tamp <fabian.tamp@gmail.com> | 2020-01-27 04:00:45 +0300 |
commit | e238f70c1897e8ac2ed05791c8f9b7a6817a90ca (patch) | |
tree | b7ae45ea7078849de8cd4e1f9f91885b48e51135 /layouts | |
parent | de3eae439847ac6b4ea00cade2e4bb6393f36d81 (diff) |
Add sitewide margin notes disable, make README actually nice, disable droplists by default
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/posts/single.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f2bfbc2..f21924c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -17,7 +17,7 @@ </nav> </div> - <section id="main" class="content-container look-sheet article-pad-v"> + <section id="main" class="content-container look-sheet article-pad-v {{ if (or .Params.disableMarginNotes .Site.Params.disableMarginNotes) }}no-floating-footnotes{{ end }}" itemprop="mainEntityOfPage"> <h1 itemprop="name" id="title">{{ .Title }}</h1> <article itemprop="articleBody" id="content" class="article-body"> {{ .Content }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 652361a..0dec9c5 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -17,7 +17,7 @@ {{ partial "right-links" . }} </nav> </div> - <section id="main" class="content-container look-sheet article-pad-v {{ if .Params.disableFloatingFootnotes }}no-floating-footnotes{{ end }}" itemprop="mainEntityOfPage"> + <section id="main" class="content-container look-sheet article-pad-v {{ if (or .Params.disableMarginNotes .Site.Params.disableMarginNotes) }}no-floating-footnotes{{ end }}" itemprop="mainEntityOfPage"> <h1 itemprop="name" id="title">{{ .Title }}</h1> <meta itemprop="headline" content="{{ .Title }}" /> {{ if .Params.tags }} |