Remove invalid HTML, CSS in some shortcodes

This commit is contained in:
Joshua Goins 2023-08-10 10:49:09 -04:00
parent 81b8d5c309
commit 32584e26ce
4 changed files with 4 additions and 19 deletions

View file

@ -6,9 +6,9 @@
data-isso-vote="false"
src="//{{ $.Site.Params.isso_url }}/js/embed.min.js" crossorigin async></script>
<section id="isso-thread" data-title="Guestbook" data-isso-id="/guestbook">
<div id="isso-thread" data-title="Guestbook" data-isso-id="/guestbook">
<noscript>Javascript needs to be activated to view comments.</noscript>
</section>
</div>
{{ else }}
Guestbook is disabled in development mode.
{{ end }}

View file

@ -51,11 +51,6 @@
{{ range $media_attachments := . }}
{{ if eq $media_attachments.type "image" }}
{{ $mediaMD5 = md5 $media_attachments.url }}
<style>
.img-{{ $mediaMD5 }} {
aspect-ratio: {{ $media_attachments.meta.original.width }} / {{ $media_attachments.meta.original.height }};
}
</style>
<img
src="{{ $media_attachments.url }}"
alt="Image {{ $media_attachments.id }} from toot {{ $id }} on {{ $masIns }}"
@ -84,11 +79,6 @@
{{ range $media_attachments := . }}
{{ if eq $media_attachments.type "video" }}
{{ $mediaMD5 = md5 $media_attachments.url }}
<style>
.img-{{ $mediaMD5 }} {
aspect-ratio: {{ $media_attachments.meta.original.width }} / {{ $media_attachments.meta.original.height }};
}
</style>
<div class="ctr toot-video-wrapper">
<video muted playsinline controls class="ctr toot-media-img img-{{ $mediaMD5 }}{{ if $json.sensitive }} toot-sens-blur{{ end }}"{{- if $json.sensitive }}onclick="this.classList.toggle('toot-sens-blur-no')"{{- end }}>
<source src="{{ $media_attachments.url }}">
@ -104,11 +94,6 @@
{{ end }}
{{ if eq $media_attachments.type "gifv" }}
{{ $mediaMD5 = md5 $media_attachments.url }}
<style>
.img-{{ $mediaMD5 }} {
aspect-ratio: {{ $media_attachments.meta.original.width }} / {{ $media_attachments.meta.original.height }};
}
</style>
<div class="ctr toot-video-wrapper">
<video loop autoplay muted playsinline controls controlslist="nofullscreen" class="ctr toot-media-img img-{{ $mediaMD5 }}{{ if $json.sensitive }} toot-sens-blur{{ end }}" {{- if $json.sensitive }}onclick="this.classList.toggle('toot-sens-blur-no')"{{- end }}>
<source src="{{ $media_attachments.url }}">

View file

@ -1 +1 @@
<iframe title="csg level walkthrough" src="{{ .Get 0 }}" allowfullscreen="" sandbox="allow-same-origin allow-scripts allow-popups" width="560" height="315" frameborder="0"></iframe>
<iframe title="csg level walkthrough" src="{{ .Get 0 }}" allowfullscreen="" sandbox="allow-scripts allow-popups" width="560" height="315"></iframe>

View file

@ -1,3 +1,3 @@
<video width=100% controls>
<video controls>
<source src="{{ .Get 0 }}">
</video>