Replace section tags with div
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ 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>
|
||||
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
|
||||
<div id="comment-section"></div>
|
||||
@@ -15,5 +15,5 @@
|
||||
})
|
||||
</script>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ with $page.Param "paige.comments.commento" }}
|
||||
<section class="mb-3">
|
||||
<div class="mb-3">
|
||||
<div id="commento"></div>
|
||||
<script defer src="{{ .script_url }}"></script>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ if $page.Param "paige.comments.graphcomment" }}
|
||||
<section class="mb-3">
|
||||
<div class="mb-3">
|
||||
<div id="graphcomment"></div>
|
||||
<script type="text/javascript">
|
||||
var __semio__params = {
|
||||
@@ -20,5 +20,5 @@
|
||||
})();
|
||||
</script>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ if $page.Param "paige.comments.hyvor" }}
|
||||
<section class="mb-3">
|
||||
<div class="mb-3">
|
||||
<div id="hyvor-talk-view"></div>
|
||||
<script type="text/javascript">
|
||||
var HYVOR_TALK_WEBSITE = "{{ $page.Param "paige.comments.hyvor.account_id" | safeJS }}";
|
||||
@@ -12,5 +12,5 @@
|
||||
</script>
|
||||
<script async type="text/javascript" src="//talk.hyvor.com/web-api/embed"></script>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ if $page.Param "paige.comments.intensedebate" }}
|
||||
<section class="mb-3">
|
||||
<div class="mb-3">
|
||||
<script>
|
||||
var idcomments_acct = "{{ $page.Param "paige.comments.intensedebate.account_id" | safeJS }}";
|
||||
var idcomments_post_id = "{{ $page.RelPermalink | safeJS }}";
|
||||
@@ -10,5 +10,5 @@
|
||||
<span id="IDCommentsPostTitle" style="display:none"></span>
|
||||
<script type="text/javascript" src="http://www.intensedebate.com/js/genericCommentWrapperV2.js"></script>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,10 +1,10 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ with $page.Param "paige.comments.isso" }}
|
||||
<section class="mb-3">
|
||||
<div class="mb-3">
|
||||
<script src="{{ .script_url }}"></script>
|
||||
<section id="isso-thread">
|
||||
<div id="isso-thread">
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ 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>
|
||||
<script src="https://cdn.muut.com/1/moot.min.js"></script>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ if $page.Param "paige.comments.remark42" }}
|
||||
<section class="mb-3">
|
||||
<div class="mb-3">
|
||||
<div id="remark42"></div>
|
||||
<script>
|
||||
var remark_config = {
|
||||
@@ -11,5 +11,5 @@
|
||||
</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>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ if $page.Param "paige.comments.replybox" }}
|
||||
<section class="mb-3">
|
||||
<div class="mb-3">
|
||||
<div id="replybox"></div>
|
||||
<script>
|
||||
window.replybox = {
|
||||
@@ -11,5 +11,5 @@
|
||||
</script>
|
||||
<script src="https://cdn.getreplybox.com/js/embed.js"></script>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,8 +1,8 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ 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>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
</div>
|
||||
{{ 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 }}
|
||||
|
||||
{{ with $content }}
|
||||
<section class="mw-100 overflow-x-auto paige-content">{{ . }}</section>
|
||||
<div class="mw-100 overflow-x-auto paige-content">{{ . }}</div>
|
||||
{{ end }}
|
||||
|
@@ -25,7 +25,7 @@
|
||||
{{ $commiturl = print ($page.Param "paige.git.commit_url_prefix") $page.GitInfo.Hash }}
|
||||
{{ end }}
|
||||
|
||||
<section class="paige-metadata w-100">
|
||||
<div class="paige-metadata w-100">
|
||||
{{ 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>
|
||||
{{ end }}
|
||||
@@ -77,4 +77,4 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
|
@@ -3,21 +3,21 @@
|
||||
{{ if $page.Pages }}
|
||||
{{ if $page.Param "paige.section_pages.full_pages" }}
|
||||
{{ $p := $page.Paginate $page.Pages }}
|
||||
<section id="paige-pages">
|
||||
<div id="paige-pages">
|
||||
{{ range $p.Pages }}
|
||||
{{ partial "paige/article.html" (dict "fullpages" true "page" .) }}
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ if or $p.HasPrev $p.HasNext }}
|
||||
<section id="paige-pagination">
|
||||
<div id="paige-pagination">
|
||||
<div class="d-flex justify-content-center">
|
||||
{{ partial "paige/pagination.html" $page }}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $p := $page.Paginate ($page.Pages.ByPublishDate.Reverse.GroupByPublishDate "January 2006") }}
|
||||
<section id="paige-pages">
|
||||
<div id="paige-pages">
|
||||
{{ range $p.PageGroups }}
|
||||
<p class="h5 paige-date-header text-center">{{ .Key }}</p>
|
||||
{{ range .Pages }}
|
||||
@@ -65,7 +65,7 @@
|
||||
{{ $flags = delimit ($flags | uniq) " " }}
|
||||
{{ $class := delimit (slice "mb-3" "paige-page" "w-100" | append $flags | uniq | sort) " " }}
|
||||
|
||||
<section class="{{ $class }}">
|
||||
<div class="{{ $class }}">
|
||||
{{ with $title }}
|
||||
<p class="mb-0 paige-title text-center"><a href="{{ $titlelink }}">{{ . }}</a></p>
|
||||
{{ end }}
|
||||
@@ -117,16 +117,16 @@
|
||||
{{ with $readingtime }}
|
||||
<p class="mb-0 paige-reading-time text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ if or $p.HasPrev $p.HasNext }}
|
||||
<section id="paige-pagination">
|
||||
<div id="paige-pagination">
|
||||
<div class="d-flex justify-content-center">
|
||||
{{ partial "paige/pagination.html" $page }}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{{ $page := . }}
|
||||
|
||||
<section>
|
||||
<div>
|
||||
<div class="container-fluid">
|
||||
<form action="{{ .Page.RelPermalink }}" dir="auto" method="get">
|
||||
<div class="justify-content-center mb-3 row">
|
||||
@@ -43,7 +43,7 @@
|
||||
</i>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<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>
|
||||
|
@@ -9,7 +9,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ with index $page.Params $key }}
|
||||
<section>
|
||||
<div>
|
||||
<nav>
|
||||
<div class="mb-3 text-center">
|
||||
{{ range $k, $v := . }}
|
||||
@@ -21,5 +21,5 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
</nav>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -9,9 +9,9 @@
|
||||
{{ end }}
|
||||
|
||||
{{ 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">
|
||||
{{ $page.TableOfContents }}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user