Skip to content

Commit 681201b

Browse files
authored
Fix four different minor issues (#2275)
1 parent 0e48bf2 commit 681201b

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<a href="{{ .url }}"
22
{{ with .id }}id="{{ . }}"{{ end }}
3-
{{ with .nofollow }}rel="nofollow"{{ end }}
4-
{{ with .sponsored }}rel="sponsored"{{ end }}
3+
{{ $rel := slice }}
4+
{{ with .nofollow }}{{ $rel = $rel | append "nofollow" }}{{ end }}
5+
{{ with .sponsored }}{{ $rel = $rel | append "sponsored" }}{{ end }}
6+
{{ with $rel }}rel="{{ delimit . " " }}"{{ end }}
57
class="border bg-white border-gray-200 rounded-lg p-2 flex items-center h-[70px] justify-center hover:border-gray-300 transition group overflow-hidden">
68
<img src="/images/sponsors/small/{{ .image }}"
79
alt="{{ .name }}"
810
loading="lazy"
9-
class="w- max-w-[80%] max-h-[80%] transition-transform duration-200 ease-in-out group-hover:scale-105 {{ .class }}">
11+
class="max-w-[80%] max-h-[80%] transition-transform duration-200 ease-in-out group-hover:scale-105 {{ .class }}">
1012
</a>

themes/le-2025/layouts/shortcodes/ct_logs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ <h3 id="{{ $category }}">
1919
{{ i18n "certificate_transparency_uri" }}{{ .Site.Params.beforeColon | safeHTML }}: https://{{ .log }}.ct.letsencrypt.org/{{ .shard }}<br>
2020
{{ i18n "certificate_transparency_public_key" }}{{ .Site.Params.beforeColon | safeHTML }}: <code>{{ .publicKey }}</code><br>
2121
{{ i18n "certificate_transparency_log_id" }}{{ .Site.Params.beforeColon | safeHTML }}: <code>{{ .logID }}</code><br>
22-
{{ i18n "certificate_transparency_window_start" }}{{ .Site.Params.beforeColon | safeHTML }}: <code>{{ (time (int .windowStart)).UTC.Format "2006-01-02T04:00Z" }}</code><br>
23-
{{ i18n "certificate_transparency_window_end" }}{{ .Site.Params.beforeColon | safeHTML }}: <code>{{ (time (int .windowEnd)).UTC.Format "2006-01-02T04:00Z" }}</code><br>
22+
{{ i18n "certificate_transparency_window_start" }}{{ .Site.Params.beforeColon | safeHTML }}: <code>{{ (time (int .windowStart)).UTC.Format "2006-01-02T15:04Z" }}</code><br>
23+
{{ i18n "certificate_transparency_window_end" }}{{ .Site.Params.beforeColon | safeHTML }}: <code>{{ (time (int .windowEnd)).UTC.Format "2006-01-02T15:04Z" }}</code><br>
2424

2525
{{/* States are only for production logs. */}}
2626
{{ if .state }}

themes/le-2025/layouts/shortcodes/link.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
{{- if or ( hasPrefix $link "http://" ) ( hasPrefix $link "https://" ) -}}
2727
<a href="{{ $link }}">
28-
{{- with ($scratch.Set "name") -}}
28+
{{- with ($scratch.Get "name") -}}
2929
{{- . | markdownify -}}
3030
{{- else -}}
3131
{{- $link | markdownify -}}

themes/le-2025/layouts/shortcodes/sponsors.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<h2>{{ i18n "diamond" }}</h2>
55
<div class="text-center sponsor-flex">
66
{{ range hugo.Data.sponsors.diamond }}
7-
<a href="{{ .url }}" {{ if .id }}id="{{ .id }}"{{ end }} {{ if .nofollow }}rel="nofollow"{{ end }}{{ if .sponsored }}rel="sponsored"{{ end }}><img src="/images/sponsors/{{ .image }}" alt="{{ .name }}" width="180" height="108" class="sponsor-logo-large"></a>
7+
<a href="{{ .url }}" {{ if .id }}id="{{ .id }}"{{ end }}{{ $rel := slice }}{{ with .nofollow }}{{ $rel = $rel | append "nofollow" }}{{ end }}{{ with .sponsored }}{{ $rel = $rel | append "sponsored" }}{{ end }}{{ with $rel }} rel="{{ delimit . " " }}"{{ end }}><img src="/images/sponsors/{{ .image }}" alt="{{ .name }}" width="180" height="108" class="sponsor-logo-large"></a>
88
{{ end }}
99
</div>
1010
</div>
1111
<div>
1212
<h2>{{ i18n "platinum" }}</h2>
1313
<div class="text-center sponsor-flex">
1414
{{ range hugo.Data.sponsors.platinum }}
15-
<a href="{{ .url }}" {{ if .id }}id="{{ .id }}"{{ end }} {{ if .nofollow }}rel="nofollow"{{ end }}{{ if .sponsored }}rel="sponsored"{{ end }}><img src="/images/sponsors/{{ .image }}" alt="{{ .name }}" width="180" height="108" class="sponsor-logo-large"></a>
15+
<a href="{{ .url }}" {{ if .id }}id="{{ .id }}"{{ end }}{{ $rel := slice }}{{ with .nofollow }}{{ $rel = $rel | append "nofollow" }}{{ end }}{{ with .sponsored }}{{ $rel = $rel | append "sponsored" }}{{ end }}{{ with $rel }} rel="{{ delimit . " " }}"{{ end }}><img src="/images/sponsors/{{ .image }}" alt="{{ .name }}" width="180" height="108" class="sponsor-logo-large"></a>
1616
{{ end }}
1717
</div>
1818
</div>
@@ -21,7 +21,7 @@ <h2>{{ i18n "platinum" }}</h2>
2121
<h2>{{ i18n "gold" }}</h2>
2222
<div class="text-center sponsor-flex">
2323
{{ range hugo.Data.sponsors.gold }}
24-
<a href="{{ .url }}" {{ if .id }}id="{{ .id }}"{{ end }} {{ if .nofollow }}rel="nofollow"{{ end }}{{ if .sponsored }}rel="sponsored"{{ end }}><img src="/images/sponsors/{{ .image }}" alt="{{ .name }}" width="180" height="108" class="sponsor-logo-large"></a>
24+
<a href="{{ .url }}" {{ if .id }}id="{{ .id }}"{{ end }}{{ $rel := slice }}{{ with .nofollow }}{{ $rel = $rel | append "nofollow" }}{{ end }}{{ with .sponsored }}{{ $rel = $rel | append "sponsored" }}{{ end }}{{ with $rel }} rel="{{ delimit . " " }}"{{ end }}><img src="/images/sponsors/{{ .image }}" alt="{{ .name }}" width="180" height="108" class="sponsor-logo-large"></a>
2525
{{ end }}
2626
</div>
2727
</div>
@@ -30,7 +30,7 @@ <h2>{{ i18n "gold" }}</h2>
3030
<h2>{{ i18n "silver" }}</h2>
3131
<div class="text-center sponsor-flex">
3232
{{ range hugo.Data.sponsors.silver }}
33-
<a href="{{ .url }}" {{ if .id }}id="{{ .id }}"{{ end }} {{ if .nofollow }}rel="nofollow"{{ end }}{{ if .sponsored }}rel="sponsored"{{ end }}><img src="/images/sponsors/{{ .image }}" alt="{{ .name }}" width="180" height="108" class="sponsor-logo-large"></a>
33+
<a href="{{ .url }}" {{ if .id }}id="{{ .id }}"{{ end }}{{ $rel := slice }}{{ with .nofollow }}{{ $rel = $rel | append "nofollow" }}{{ end }}{{ with .sponsored }}{{ $rel = $rel | append "sponsored" }}{{ end }}{{ with $rel }} rel="{{ delimit . " " }}"{{ end }}><img src="/images/sponsors/{{ .image }}" alt="{{ .name }}" width="180" height="108" class="sponsor-logo-large"></a>
3434
{{ end }}
3535
</div>
3636
</div>

0 commit comments

Comments
 (0)