Try doing a wee cleanup

This commit is contained in:
Nikolai Rodionov
2023-05-08 14:48:02 +02:00
parent ae45b107eb
commit aa788f30bc
212 changed files with 4923 additions and 15 deletions

View 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>

View 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>

View 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>

View File

@ -0,0 +1 @@
{{ partial "remark42.html" . }}

View File

@ -0,0 +1,4 @@
<details>
<summary>{{ (.Get 0) | markdownify }}</summary>
{{ .Inner | markdownify }}
</details>

View File

@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}

View 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>

View File

@ -0,0 +1,8 @@
<ul>
{{ range .Data.Pages }}
<li>
<a href="{{.RelPermalink}}">{{ .Title }}</a>
</li>
{{ end }}
</ul>