forked from Frontend/Homepage
Fix leftover empty 'img' tag from 'random_image' shortcode
This commit is contained in:
parent
17f2012618
commit
9ca7093d0e
|
@ -4,9 +4,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $alt := default "random image" ($.Page.Param "image.alt") }}
|
{{- $alt := default "random image" ($.Page.Param "image.alt") }}
|
||||||
{{- $id := sha256 (index (seq 999 | shuffle) 0) }}
|
{{- $id := sha256 (index (seq 999 | shuffle) 0) }}
|
||||||
<p id="{{ $id }}">
|
<p id="{{ $id }}"></p>
|
||||||
<img class="centered pad-vertical" >
|
|
||||||
</p>
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", function() {
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
const container = document.getElementById("{{ $id }}");
|
const container = document.getElementById("{{ $id }}");
|
||||||
|
|
Reference in New Issue