Try doing a wee cleanup
This commit is contained in:
1
src/layouts/_default/_markup/render-link.html
Normal file
1
src/layouts/_default/_markup/render-link.html
Normal file
@ -0,0 +1 @@
|
||||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
|
13
src/layouts/partials/comments.html
Normal file
13
src/layouts/partials/comments.html
Normal file
@ -0,0 +1,13 @@
|
||||
<hr>
|
||||
<div id="remark42"></div>
|
||||
|
||||
<script>
|
||||
var theme = "light"
|
||||
if (document.body.classList.contains("dark")) theme = "dark";
|
||||
var remark_config = {
|
||||
host: "{{ site.Params.Remark42URL }}",
|
||||
site_id: "{{ site.Params.Remark42ID }}",
|
||||
theme: theme
|
||||
}
|
||||
</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>
|
16
src/layouts/partials/remark42.html
Normal file
16
src/layouts/partials/remark42.html
Normal file
@ -0,0 +1,16 @@
|
||||
<hr>
|
||||
<blockquote>
|
||||
<p> Comments are in the beta testing stage. </p>
|
||||
</blockquote>
|
||||
<div id="remark42"></div>
|
||||
|
||||
<script>
|
||||
var theme = "light"
|
||||
if (document.body.classList.contains("dark")) theme = "dark";
|
||||
var remark_config = {
|
||||
host: "{{ site.Params.Remark42URL }}",
|
||||
site_id: "{{ site.Params.Remark42ID }}",
|
||||
theme: theme
|
||||
}
|
||||
</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>
|
1
src/layouts/shortcodes/comments.html
Normal file
1
src/layouts/shortcodes/comments.html
Normal file
@ -0,0 +1 @@
|
||||
{{ partial "remark42.html" . }}
|
4
src/layouts/shortcodes/details.html
Normal file
4
src/layouts/shortcodes/details.html
Normal file
@ -0,0 +1,4 @@
|
||||
<details>
|
||||
<summary>{{ (.Get 0) | markdownify }}</summary>
|
||||
{{ .Inner | markdownify }}
|
||||
</details>
|
2
src/layouts/shortcodes/rawhtml.html
Normal file
2
src/layouts/shortcodes/rawhtml.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!-- raw html -->
|
||||
{{.Inner}}
|
23
src/layouts/shortcodes/video.html
Normal file
23
src/layouts/shortcodes/video.html
Normal file
@ -0,0 +1,23 @@
|
||||
<div class="container">
|
||||
<div id="{{ .Get 1 }}" class="{{ .Get 1 }}" align=center></div>
|
||||
</div>
|
||||
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="https://s3.badhouseplants.net/badhouseplants-js/clappr/0.5.0/clappr.js"
|
||||
>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var playerElement = document.getElementById("{{ .Get 1 }}");
|
||||
|
||||
var player = new Clappr.Player({
|
||||
source: {{ .Get 0 }},
|
||||
mute: true,
|
||||
height: 360,
|
||||
width: 640
|
||||
});
|
||||
|
||||
player.attachTo(playerElement);
|
||||
</script>
|
||||
|
8
src/layouts/taxonomy/tag.html
Normal file
8
src/layouts/taxonomy/tag.html
Normal file
@ -0,0 +1,8 @@
|
||||
<ul>
|
||||
{{ range .Data.Pages }}
|
||||
<li>
|
||||
<a href="{{.RelPermalink}}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user