Limit max width for page items

master
Will Faught 1 year ago
parent 4a80de906e
commit 5ed00500db

@ -3,5 +3,5 @@
{{ $content := $page.Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` (printf `${1} <a aria-label="%v" class="paige-header-link text-decoration-none" href="#${2}">#</a>${3}` (i18n "paige_aria_section_link")) | safeHTML }} {{ $content := $page.Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` (printf `${1} <a aria-label="%v" class="paige-header-link text-decoration-none" href="#${2}">#</a>${3}` (i18n "paige_aria_section_link")) | safeHTML }}
{{ with $content }} {{ with $content }}
<div id="paige-content">{{ . }}</div> <div class="mw-100" id="paige-content">{{ . }}</div>
{{ end }} {{ end }}

@ -16,7 +16,7 @@
{{ $commiturl = printf ($page.Param "paige.git.commit_url") $page.GitInfo.Hash }} {{ $commiturl = printf ($page.Param "paige.git.commit_url") $page.GitInfo.Hash }}
{{ end }} {{ end }}
<div id="paige-metadata"> <div class="mw-100" id="paige-metadata">
{{ with $title }} {{ with $title }}
<h1 class="fw-bold text-center" id="paige-title">{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1> <h1 class="fw-bold text-center" id="paige-title">{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1>
{{ end }} {{ end }}

@ -1,7 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ if and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }} {{ if and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
<div id="paige-toc"> <div class="mw-100" id="paige-toc">
<div class="border mb-3 pe-3 ps-3 pt-3 rounded"> <div class="border mb-3 pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }} {{ $page.TableOfContents }}
</div> </div>

Loading…
Cancel
Save