Replace section tags with div

master
Will Faught 2 years ago
parent 12a356dd0e
commit 1074859c63

@ -8,7 +8,7 @@
{{ partial "paige/metadata.html" $page }} {{ partial "paige/metadata.html" $page }}
{{ if or $page.Params.paige.home.image.url $page.Params.paige.home.greeting $page.Params.paige.home.blurb }} {{ if or $page.Params.paige.home.image.url $page.Params.paige.home.greeting $page.Params.paige.home.blurb }}
<section> <div>
{{ if $page.Params.paige.home.image.url }} {{ if $page.Params.paige.home.image.url }}
{{ $class := cond ($stretch | not) "mw-100 rounded-4 shadow" "rounded-4 shadow w-100" }} {{ $class := cond ($stretch | not) "mw-100 rounded-4 shadow" "rounded-4 shadow w-100" }}
{{ $style := cond ($stretch | not) "height: 20rem; width: auto" "height: 20rem; object-fit: cover; width: 100%" }} {{ $style := cond ($stretch | not) "height: 20rem; width: auto" "height: 20rem; object-fit: cover; width: 100%" }}
@ -40,7 +40,7 @@
</div> </div>
</div> </div>
{{ end }} {{ end }}
</section> </div>
{{ end }} {{ end }}
{{ partial "paige/toc.html" $page }} {{ partial "paige/toc.html" $page }}

@ -4,7 +4,7 @@
{{ partial "paige/article.html" $page }} {{ partial "paige/article.html" $page }}
{{ if $page.Pages }} {{ if $page.Pages }}
<section> <div id="paige-pages">
<ul class="list-inline text-center"> <ul class="list-inline text-center">
{{ range (sort $page.Pages "Title") }} {{ range (sort $page.Pages "Title") }}
<li class="list-inline-item"> <li class="list-inline-item">
@ -12,6 +12,6 @@
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
</section> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}

@ -1,7 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ if $page.Param "paige.comments.cactus" }} {{ if $page.Param "paige.comments.cactus" }}
<section class="mb-3"> <div class="mb-3">
<script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script> <script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script>
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css"> <link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
<div id="comment-section"></div> <div id="comment-section"></div>
@ -15,5 +15,5 @@
}) })
</script> </script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

@ -1,9 +1,9 @@
{{ $page := . }} {{ $page := . }}
{{ with $page.Param "paige.comments.commento" }} {{ with $page.Param "paige.comments.commento" }}
<section class="mb-3"> <div class="mb-3">
<div id="commento"></div> <div id="commento"></div>
<script defer src="{{ .script_url }}"></script> <script defer src="{{ .script_url }}"></script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

@ -1,7 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ if $page.Param "paige.comments.graphcomment" }} {{ if $page.Param "paige.comments.graphcomment" }}
<section class="mb-3"> <div class="mb-3">
<div id="graphcomment"></div> <div id="graphcomment"></div>
<script type="text/javascript"> <script type="text/javascript">
var __semio__params = { var __semio__params = {
@ -20,5 +20,5 @@
})(); })();
</script> </script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

@ -1,7 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ if $page.Param "paige.comments.hyvor" }} {{ if $page.Param "paige.comments.hyvor" }}
<section class="mb-3"> <div class="mb-3">
<div id="hyvor-talk-view"></div> <div id="hyvor-talk-view"></div>
<script type="text/javascript"> <script type="text/javascript">
var HYVOR_TALK_WEBSITE = "{{ $page.Param "paige.comments.hyvor.account_id" | safeJS }}"; var HYVOR_TALK_WEBSITE = "{{ $page.Param "paige.comments.hyvor.account_id" | safeJS }}";
@ -12,5 +12,5 @@
</script> </script>
<script async type="text/javascript" src="//talk.hyvor.com/web-api/embed"></script> <script async type="text/javascript" src="//talk.hyvor.com/web-api/embed"></script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

@ -1,7 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ if $page.Param "paige.comments.intensedebate" }} {{ if $page.Param "paige.comments.intensedebate" }}
<section class="mb-3"> <div class="mb-3">
<script> <script>
var idcomments_acct = "{{ $page.Param "paige.comments.intensedebate.account_id" | safeJS }}"; var idcomments_acct = "{{ $page.Param "paige.comments.intensedebate.account_id" | safeJS }}";
var idcomments_post_id = "{{ $page.RelPermalink | safeJS }}"; var idcomments_post_id = "{{ $page.RelPermalink | safeJS }}";
@ -10,5 +10,5 @@
<span id="IDCommentsPostTitle" style="display:none"></span> <span id="IDCommentsPostTitle" style="display:none"></span>
<script type="text/javascript" src="http://www.intensedebate.com/js/genericCommentWrapperV2.js"></script> <script type="text/javascript" src="http://www.intensedebate.com/js/genericCommentWrapperV2.js"></script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

@ -1,10 +1,10 @@
{{ $page := . }} {{ $page := . }}
{{ with $page.Param "paige.comments.isso" }} {{ with $page.Param "paige.comments.isso" }}
<section class="mb-3"> <div class="mb-3">
<script src="{{ .script_url }}"></script> <script src="{{ .script_url }}"></script>
<section id="isso-thread"> <div id="isso-thread">
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
</section> </div>
{{ end }} {{ end }}

@ -1,9 +1,9 @@
{{ $page := . }} {{ $page := . }}
{{ with $page.Param "paige.comments.muut" }} {{ with $page.Param "paige.comments.muut" }}
<section class="mb-3"> <div class="mb-3">
<a href="https://muut.com/i/{{ .account_id }}/comments" class="muut" type="dynamic">Comments</a> <a href="https://muut.com/i/{{ .account_id }}/comments" class="muut" type="dynamic">Comments</a>
<script src="https://cdn.muut.com/1/moot.min.js"></script> <script src="https://cdn.muut.com/1/moot.min.js"></script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

@ -1,7 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ if $page.Param "paige.comments.remark42" }} {{ if $page.Param "paige.comments.remark42" }}
<section class="mb-3"> <div class="mb-3">
<div id="remark42"></div> <div id="remark42"></div>
<script> <script>
var remark_config = { var remark_config = {
@ -11,5 +11,5 @@
</script> </script>
<script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script> <script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

@ -1,7 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ if $page.Param "paige.comments.replybox" }} {{ if $page.Param "paige.comments.replybox" }}
<section class="mb-3"> <div class="mb-3">
<div id="replybox"></div> <div id="replybox"></div>
<script> <script>
window.replybox = { window.replybox = {
@ -11,5 +11,5 @@
</script> </script>
<script src="https://cdn.getreplybox.com/js/embed.js"></script> <script src="https://cdn.getreplybox.com/js/embed.js"></script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

@ -1,8 +1,8 @@
{{ $page := . }} {{ $page := . }}
{{ with $page.Param "paige.comments.utterances" }} {{ with $page.Param "paige.comments.utterances" }}
<section class="mb-3"> <div class="mb-3">
<script src="https://utteranc.es/client.js" repo="{{ .github_repo }}" issue-term="pathname" theme="preferred-color-scheme" crossorigin="anonymous" async></script> <script src="https://utteranc.es/client.js" repo="{{ .github_repo }}" issue-term="pathname" theme="preferred-color-scheme" crossorigin="anonymous" async></script>
<noscript>{{ i18n "paige_noscript" }}</noscript> <noscript>{{ i18n "paige_noscript" }}</noscript>
</section> </div>
{{ end }} {{ end }}

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

@ -25,7 +25,7 @@
{{ $commiturl = print ($page.Param "paige.git.commit_url_prefix") $page.GitInfo.Hash }} {{ $commiturl = print ($page.Param "paige.git.commit_url_prefix") $page.GitInfo.Hash }}
{{ end }} {{ end }}
<section class="paige-metadata w-100"> <div class="paige-metadata w-100">
{{ with $title }} {{ with $title }}
<h1 class="display-5 fw-bold paige-title text-center">{{ with $titlelink }}<a href="{{ . }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}{{ if $fullpages }}<a aria-label="{{ i18n `paige_aria_page_link` }}" class="paige-header-link" href="{{ $titlepage }}">#</a>{{ end }}</h1> <h1 class="display-5 fw-bold paige-title text-center">{{ with $titlelink }}<a href="{{ . }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}{{ if $fullpages }}<a aria-label="{{ i18n `paige_aria_page_link` }}" class="paige-header-link" href="{{ $titlepage }}">#</a>{{ end }}</h1>
{{ end }} {{ end }}
@ -77,4 +77,4 @@
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
</section> </div>

@ -3,21 +3,21 @@
{{ if $page.Pages }} {{ if $page.Pages }}
{{ if $page.Param "paige.section_pages.full_pages" }} {{ if $page.Param "paige.section_pages.full_pages" }}
{{ $p := $page.Paginate $page.Pages }} {{ $p := $page.Paginate $page.Pages }}
<section id="paige-pages"> <div id="paige-pages">
{{ range $p.Pages }} {{ range $p.Pages }}
{{ partial "paige/article.html" (dict "fullpages" true "page" .) }} {{ partial "paige/article.html" (dict "fullpages" true "page" .) }}
{{ end }} {{ end }}
</section> </div>
{{ if or $p.HasPrev $p.HasNext }} {{ if or $p.HasPrev $p.HasNext }}
<section id="paige-pagination"> <div id="paige-pagination">
<div class="d-flex justify-content-center"> <div class="d-flex justify-content-center">
{{ partial "paige/pagination.html" $page }} {{ partial "paige/pagination.html" $page }}
</div> </div>
</section> </div>
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ $p := $page.Paginate ($page.Pages.ByPublishDate.Reverse.GroupByPublishDate "January 2006") }} {{ $p := $page.Paginate ($page.Pages.ByPublishDate.Reverse.GroupByPublishDate "January 2006") }}
<section id="paige-pages"> <div id="paige-pages">
{{ range $p.PageGroups }} {{ range $p.PageGroups }}
<p class="h5 paige-date-header text-center">{{ .Key }}</p> <p class="h5 paige-date-header text-center">{{ .Key }}</p>
{{ range .Pages }} {{ range .Pages }}
@ -65,7 +65,7 @@
{{ $flags = delimit ($flags | uniq) " " }} {{ $flags = delimit ($flags | uniq) " " }}
{{ $class := delimit (slice "mb-3" "paige-page" "w-100" | append $flags | uniq | sort) " " }} {{ $class := delimit (slice "mb-3" "paige-page" "w-100" | append $flags | uniq | sort) " " }}
<section class="{{ $class }}"> <div class="{{ $class }}">
{{ with $title }} {{ with $title }}
<p class="mb-0 paige-title text-center"><a href="{{ $titlelink }}">{{ . }}</a></p> <p class="mb-0 paige-title text-center"><a href="{{ $titlelink }}">{{ . }}</a></p>
{{ end }} {{ end }}
@ -117,16 +117,16 @@
{{ with $readingtime }} {{ with $readingtime }}
<p class="mb-0 paige-reading-time text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p> <p class="mb-0 paige-reading-time text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }} {{ end }}
</section> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}
</section> </div>
{{ if or $p.HasPrev $p.HasNext }} {{ if or $p.HasPrev $p.HasNext }}
<section id="paige-pagination"> <div id="paige-pagination">
<div class="d-flex justify-content-center"> <div class="d-flex justify-content-center">
{{ partial "paige/pagination.html" $page }} {{ partial "paige/pagination.html" $page }}
</div> </div>
</section> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}

@ -1,6 +1,6 @@
{{ $page := . }} {{ $page := . }}
<section> <div>
<div class="container-fluid"> <div class="container-fluid">
<form action="{{ .Page.RelPermalink }}" dir="auto" method="get"> <form action="{{ .Page.RelPermalink }}" dir="auto" method="get">
<div class="justify-content-center mb-3 row"> <div class="justify-content-center mb-3 row">
@ -43,7 +43,7 @@
</i> </i>
</p> </p>
</div> </div>
</section> </div>
<article id="paige-results" style="display: none"></article> <article id="paige-results" style="display: none"></article>
<script crossorigin="anonymous" defer integrity="sha384-1LalyFI+BycKouEClZE5CoFnlLr+Kx8Wslc45o5NATVo+c2mEh02i8HNaaT7XOdQ" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.7.31/dist/flexsearch.bundle.js"></script> <script crossorigin="anonymous" defer integrity="sha384-1LalyFI+BycKouEClZE5CoFnlLr+Kx8Wslc45o5NATVo+c2mEh02i8HNaaT7XOdQ" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.7.31/dist/flexsearch.bundle.js"></script>
<script> <script>

@ -9,7 +9,7 @@
{{ end }} {{ end }}
{{ with index $page.Params $key }} {{ with index $page.Params $key }}
<section> <div>
<nav> <nav>
<div class="mb-3 text-center"> <div class="mb-3 text-center">
{{ range $k, $v := . }} {{ range $k, $v := . }}
@ -21,5 +21,5 @@
{{ end }} {{ end }}
</div> </div>
</nav> </nav>
</section> </div>
{{ end }} {{ end }}

@ -9,9 +9,9 @@
{{ end }} {{ end }}
{{ if and $page.Content (not $fullpages) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }} {{ if and $page.Content (not $fullpages) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
<section class="paige-toc"> <div class="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>
</section> </div>
{{ end }} {{ end }}

Loading…
Cancel
Save