diff options
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 14 | ||||
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/content.html | 6 |
4 files changed, 15 insertions, 11 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e3bbf905..d1b34b8b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -31,7 +31,7 @@ {{ if .HasShortcode "mermaid" }} {{ partialCached "mermaid" . }} {{ end }} - {{ partialCached "keyboard-shortcut" . }} + {{ partial "keyboard-shortcut" . }} {{ end }} </body> </html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e06a839e..98302c4c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,11 +1,15 @@ {{ define "main" }} - <div class="columns"> - <div class="column is-8 is-offset-2"> - {{ partial "eyecatch" . }} + <section class="section"> + <div class="columns"> + <div class="column is-8 is-offset-2"> + {{ partial "eyecatch" . }} + </div> </div> - </div> + </section> - {{ partial "content" . }} + <section class="section"> + {{ partial "content" . }} + </section> <section class="section"> {{ template "_internal/disqus.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 6a4183b3..4991c128 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,5 @@ {{ define "main" }} - {{ partial "content" . }} + <section class="section"> + {{ partial "content" . }} + </section> {{ end }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html index d68f34c2..b652192d 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -12,7 +12,5 @@ {{ $content = $content | replaceRE "<ol>\n<li>" "<div class=\"content\"><ol><li>" }} {{ $content = $content | replaceRE "</li>\n</ol>" "</li></ol></div>" }} -<section class="section"> - {{ partial "toc" . }} - {{ $content | safeHTML }} -</section> +{{ partial "toc" . }} +{{ $content | safeHTML }} |