forked from Frontend/Homepage
Do not create random ids based on current time
parent
7ca8fa85ba
commit
89a7b884a7
|
@ -3,7 +3,7 @@
|
|||
{{- errorf "missing value for 'image.choices': %s" .Position }}
|
||||
{{- end }}
|
||||
{{- $alt := default "random image" ($.Page.Param "image.alt") }}
|
||||
{{- $id := sha256 now.UnixNano }}
|
||||
{{- $id := sha256 (index (seq 999 | shuffle) 0) }}
|
||||
<p id="{{ $id }}">
|
||||
<img class="centered pad-vertical" >
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue