Skip to content

Commit 32ecd14

Browse files
committed
Theme: Minor misc cleanup
1 parent e07381d commit 32ecd14

19 files changed

Lines changed: 43 additions & 44 deletions

themes/trigo/assets/css/content.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,16 +442,16 @@ figure .internal-tooltip {
442442
--card-hue: calc(var(--hue) * 3deg);
443443
background: linear-gradient(
444444
135deg,
445-
hsl(var(--card-hue), 50%, 70%) 0%,
446-
hsl(calc(var(--card-hue) + 30deg), 50%, 70%) 100%
445+
hsl(var(--card-hue), 50%, 75%) 0%,
446+
hsl(calc(var(--card-hue) + 30deg), 50%, 75%) 100%
447447
);
448448
}
449449

450450
.dark .card-color {
451451
background: linear-gradient(
452452
135deg,
453-
hsl(var(--card-hue), 50%, 30%) 0%,
454-
hsl(calc(var(--card-hue) + 30deg), 50%, 30%) 100%
453+
hsl(var(--card-hue), 50%, 25%) 0%,
454+
hsl(calc(var(--card-hue) + 30deg), 50%, 25%) 100%
455455
);
456456
}
457457

@@ -481,7 +481,7 @@ figure .internal-tooltip {
481481

482482
.card-title {
483483
display: flex;
484-
gap: var(--gap);
484+
gap: calc(var(--gap) * 0.25);
485485
align-items: center;
486486
text-align: center;
487487
}
@@ -699,7 +699,7 @@ figure .internal-tooltip {
699699
background: var(--primary);
700700
}
701701

702-
.page-item svg {
702+
.page-item svg:not(.icon-external) {
703703
vertical-align: -0.25rem;
704704
}
705705

themes/trigo/assets/css/hero.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ SPDX-FileNotice: Part of the Trigo theme for Hugo.
2121
text-align: center;
2222
position: relative;
2323
--section-hue: calc(var(--hue) * 3deg);
24-
background: radial-gradient(90% 90% at top left, hsl(calc(var(--section-hue)), 50%, 70%), transparent),
25-
radial-gradient(90% 90% at top right, hsl(calc(var(--section-hue) + 30deg), 50%, 70%), transparent),
26-
radial-gradient(90% 90% at bottom right, hsl(calc(var(--section-hue)), 50%, 70%), transparent),
27-
radial-gradient(90% 90% at bottom left, hsl(calc(var(--section-hue) + 30deg), 50%, 70%), transparent);
24+
background: radial-gradient(90% 90% at top left, hsl(calc(var(--section-hue)), 50%, 75%), transparent),
25+
radial-gradient(90% 90% at top right, hsl(calc(var(--section-hue) + 30deg), 50%, 75%), transparent),
26+
radial-gradient(90% 90% at bottom right, hsl(calc(var(--section-hue)), 50%, 75%), transparent),
27+
radial-gradient(90% 90% at bottom left, hsl(calc(var(--section-hue) + 30deg), 50%, 75%), transparent);
2828
transition: var(--transition);
2929
}
3030

@@ -44,10 +44,10 @@ a.hero-column:hover {
4444
}
4545

4646
.dark .hero {
47-
background: radial-gradient(90% 90% at top left, hsl(calc(var(--section-hue)), 50%, 30%), transparent),
48-
radial-gradient(90% 90% at top right, hsl(calc(var(--section-hue) + 30deg), 50%, 30%), transparent),
49-
radial-gradient(90% 90% at bottom right, hsl(calc(var(--section-hue)), 50%, 30%), transparent),
50-
radial-gradient(90% 90% at bottom left, hsl(calc(var(--section-hue) + 30deg), 50%, 30%), transparent);
47+
background: radial-gradient(90% 90% at top left, hsl(calc(var(--section-hue)), 50%, 25%), transparent),
48+
radial-gradient(90% 90% at top right, hsl(calc(var(--section-hue) + 30deg), 50%, 25%), transparent),
49+
radial-gradient(90% 90% at bottom right, hsl(calc(var(--section-hue)), 50%, 25%), transparent),
50+
radial-gradient(90% 90% at bottom left, hsl(calc(var(--section-hue) + 30deg), 50%, 25%), transparent);
5151
}
5252

5353
main > :is(.hero:only-child, .not-found) {

themes/trigo/layouts/_markup/render-link.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
{{- if not $is_external -}}
8080
{{- with .Page.GetPage .Destination -}}
8181
<span class="tooltip">
82-
<strong>{{- .Title -}}</strong>
82+
<strong>{{- title .Title -}}</strong>
8383
{{- .Description -}}
8484
</span>
8585
{{- end -}}

themes/trigo/layouts/_partials/footer/copyright.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<span>{{ . }}</span>
1717
{{- else with site.Home -}}
1818
<span>
19-
&copy; {{ now.Year }} <a href="{{ .RelPermalink }}" title="{{ .LinkTitle }}">{{ .Title }}</a>
19+
&copy; {{ now.Year }} <a href="{{ .RelPermalink }}" title="{{ .LinkTitle }}">{{ title .Title }}</a>
2020
</span>
2121
{{- end -}}
2222

themes/trigo/layouts/_partials/footer/menu_footer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
{{ with $class }}class="{{ delimit . " " }}"{{ end }}
5252
{{ with .Params.style }}style="{{ . | safeCSS }}"{{ end }}
5353
{{ if $is_external }}target="_blank" rel="noopener noreferrer"{{ end }}>
54-
{{- $name -}}
54+
{{- title $name -}}
5555

5656
{{- if $is_external -}}
5757
{{- partialCached "utils/icon.html" "external" "external" -}}
@@ -76,7 +76,7 @@
7676
{{ with .Params.class }}class="{{ delimit . " " }}"{{ end }}
7777
{{ with .Params.style }}style="{{ . | safeCSS }}"{{ end }}
7878
{{ if $is_external }}target="_blank" rel="noopener noreferrer"{{ end }}>
79-
{{- .Name -}}
79+
{{- title .Name -}}
8080

8181
{{- if $is_external -}}
8282
{{- partialCached "utils/icon.html" "external" "external" -}}
@@ -104,7 +104,7 @@
104104
{{ with .Params.class }}class="{{ delimit . " " }}"{{ end }}
105105
{{ with .Params.style }}style="{{ . | safeCSS }}"{{ end }}
106106
{{ if $is_external }}target="_blank" rel="noopener noreferrer"{{ end }}>
107-
{{- .LinkTitle -}}
107+
{{- title .LinkTitle -}}
108108

109109
{{- if $is_external -}}
110110
{{- partialCached "utils/icon.html" "external" "external" -}}

themes/trigo/layouts/_partials/head/page_head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/ -}}
1212

1313

14-
{{- $title := cond .IsHome site.Title (printf "%s | %s" site.Title .Title) -}}
14+
{{- $title := cond .IsHome site.Title (printf "%s | %s" site.Title (title .LinkTitle)) -}}
1515
{{- $description := or .Description site.Params.site_description -}}
1616

1717
<head>

themes/trigo/layouts/_partials/header/menu_main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
{{ with $class }}class="{{ delimit . " " }}"{{ end }}
6363
{{ with .Params.style }}style="{{ . | safeCSS }}"{{ end }}
6464
{{ if $is_external }}target="_blank" rel="noopener noreferrer"{{ end }}>
65-
{{- $name -}}
65+
{{- title $name -}}
6666

6767
{{- if $is_external -}}
6868
{{- partialCached "utils/icon.html" "external" "external" -}}

themes/trigo/layouts/_partials/header/page_header.html

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

5252
{{- $attrs := dict
5353
"href" .RelPermalink
54-
"title" .LinkTitle
54+
"title" (title .LinkTitle)
5555
"style" .Params.style
5656
-}}
5757
{{- if eq $page . -}}

themes/trigo/layouts/_partials/main/card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{{- end -}}
4646

4747
<h3 class="card-title">
48-
{{- .Title -}}
48+
{{- title .Title -}}
4949

5050
{{- if $is_external -}}
5151
{{- partialCached "utils/icon.html" "external" "external" -}}

themes/trigo/layouts/_partials/main/meta_translations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<span class="meta">
1212
{{- partialCached "utils/icon.html" "translations" "translations" -}}
1313
{{- range . -}}
14-
<a href="{{ .RelPermalink }}" hreflang="{{ .Language.Locale }}">{{ .LinkTitle }} ({{ .Language.Label }})</a>
14+
<a href="{{ .RelPermalink }}" hreflang="{{ .Language.Locale }}">{{ title .LinkTitle }} ({{ .Language.Label }})</a>
1515
{{- end -}}
1616
</span>
1717
{{- end -}}

0 commit comments

Comments
 (0)