Skip to content

Commit

Permalink
2023-10-29 19:04:54
Browse files Browse the repository at this point in the history
  • Loading branch information
uidHUB committed Oct 29, 2023
1 parent 9440f68 commit b9d313c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-codeblock-terminal.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{{ $inner := (.Inner) }}
{{ $ordinal := (.Ordinal) }}

{{ $cp := (printf "clipboard-%s" (delimit (shuffle (seq 999)) "" | md5)) }}
{{ $cp := (printf "clipboard-%s" ((delimit (shuffle (seq 11 99)) "") | md5)) }}

<div class="shortcode shortcode-codeblock shortcode-codeblock-{{ ($ordinal) }} shortcode-codeblock-{{ ($type) }}
{{ with ($attr.os) }}shortcode-codeblock-{{ ($type) }}-{{ . }}{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-codeblock.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ $inner := (.Inner) }}
{{ $ordinal := (.Ordinal) }}

{{ $cp := (printf "clipboard-%s" (delimit (shuffle (seq 999)) "" | md5)) }}
{{ $cp := (printf "clipboard-%s" ((delimit (shuffle (seq 11 99)) "") | md5)) }}

{{ if (or ($attr.title) ($attr.file)) }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/function/alert.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $id := ((.id) | default (printf "alert-%s" (delimit (shuffle (seq 999)) "" | md5))) }}
{{ $id := ((.id) | default (printf "alert-%s" ((delimit (shuffle (seq 11 99)) "") | md5))) }}
{{ $type := ((.type) | default "primary") }}
{{ $icon := ((.icon) | default "fas fa-info") }}
{{ $msg := (((.msg) | markdownify) | default "") }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/module/node/tabs/info/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h5 class="card-title">{{ (i18n "meta") }}</h5>
<div class="row row-cols-1 row-cols-sm-2 g-2 align-items-center">
{{ with (.Params.license) }}
{{ $id := (printf "modal-%s" (delimit (shuffle (seq 999)) "" | md5)) }}
{{ $id := (printf "modal-%s" ((delimit (shuffle (seq 11 99)) "") | md5)) }}
<div class="col">{{ (i18n "license") }}</div>
<div class="col">
<div class="input-group">
Expand Down
2 changes: 1 addition & 1 deletion layouts/taxonomy/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ with (site.GetPage (printf "/%s/%s" ($type) ($name))) }}
{{ $cfg := (index (site.Params.taxonomy) ($type)) }}
{{ $size := ($cfg.cover.size) }}
{{ $email := ((.Params.email) | default (delimit (shuffle (seq 999)) "")) }}
{{ $email := ((.Params.email) | default ((delimit (shuffle (seq 11 99)) "") | md5)) }}
{{ $icon_id := ((.Params.icon) | default ($cfg.cover.icon.name)) }}
{{ $icon_size := ($cfg.cover.icon.size) }}
{{ $avatar_id := (($email) | md5) }}
Expand Down

0 comments on commit b9d313c

Please sign in to comment.