aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hugo-pt2021')
-rw-r--r--themes/hugo-pt2021/layouts/partials/carousel.html4
-rw-r--r--themes/hugo-pt2021/layouts/partials/header.html3
-rw-r--r--themes/hugo-pt2021/layouts/partials/project_summary.html6
-rw-r--r--themes/hugo-pt2021/layouts/projects/list.html9
-rw-r--r--themes/hugo-pt2021/layouts/shortcodes/pe-figure.html4
-rw-r--r--themes/hugo-pt2021/layouts/shortcodes/pe-picture.html4
6 files changed, 14 insertions, 16 deletions
diff --git a/themes/hugo-pt2021/layouts/partials/carousel.html b/themes/hugo-pt2021/layouts/partials/carousel.html
index 1052160..0174b6b 100644
--- a/themes/hugo-pt2021/layouts/partials/carousel.html
+++ b/themes/hugo-pt2021/layouts/partials/carousel.html
@@ -59,7 +59,7 @@
{{if $src.width}} width='{{- $src.width -}}'{{- end}}
{{if $src.height}} height='{{- $src.height -}}'{{- end}}
- {{if (or $pic.tip $src.tip)}} alt='{{- default $pic.tip $src.tip -}}'{{- end}}
+ alt='{{if (or $pic.tip $src.tip)}}{{- default $pic.tip $src.tip -}}{{- end}}'
/>
{{- end -}}
{{- else -}}
@@ -78,7 +78,7 @@
{{/* emit img */}}
<img
src='{{- $src -}}'
- {{if $pic.tip}} alt='{{- $pic.tip -}}'{{end}}
+ alt='{{if $pic.tip}}{{- $pic.tip -}}{{end}}'
/>
{{- end -}}
{{- end -}}
diff --git a/themes/hugo-pt2021/layouts/partials/header.html b/themes/hugo-pt2021/layouts/partials/header.html
index 1beeb2d..5073bb2 100644
--- a/themes/hugo-pt2021/layouts/partials/header.html
+++ b/themes/hugo-pt2021/layouts/partials/header.html
@@ -13,6 +13,7 @@
width='37'
height='28'
title='home page'
+ alt='home page'
aria-label='home page'
/>
</a><!-- navbar-item -->
@@ -46,6 +47,7 @@
width='{{$icon_width}}'
height='{{$icon_height}}'
title='{{.help}}'
+ alt='{{.help}}'
aria-label='{{.help}}'
/>
{{- end -}}
@@ -73,6 +75,7 @@
width='{{$icon_width}}'
height='{{$icon_height}}'
title='{{.help}}'
+ alt='{{.help}}'
aria-label='{{.help}}'
/>
{{- end -}}
diff --git a/themes/hugo-pt2021/layouts/partials/project_summary.html b/themes/hugo-pt2021/layouts/partials/project_summary.html
index 54811ac..4219157 100644
--- a/themes/hugo-pt2021/layouts/partials/project_summary.html
+++ b/themes/hugo-pt2021/layouts/partials/project_summary.html
@@ -5,13 +5,13 @@
aria-label='{{.Title}}'
>
{{- .Title -}}
- </a><!-- project-link -->
+ </a><!-- project-link -->:
- <p
+ <span
class='project-text'
title='Project description.'
aria-label='Project description.'
>
{{- .Params.text -}}
- </p><!-- project-text -->
+ </span><!-- project-text -->
</li>
diff --git a/themes/hugo-pt2021/layouts/projects/list.html b/themes/hugo-pt2021/layouts/projects/list.html
index 3d4de89..52d5c7a 100644
--- a/themes/hugo-pt2021/layouts/projects/list.html
+++ b/themes/hugo-pt2021/layouts/projects/list.html
@@ -12,11 +12,6 @@
<div class='content'>
{{- $rows := union (where .Pages "Params.active" true) (where .Pages "Params.active" nil) -}}
{{- if len $rows -}}
- <h3
- title='Current projects that are actively maintained.'
- aria-label='Current projects that are actively maintained.'
- >Current Projects</h3>
-
<ul>
{{- range $rows.ByTitle -}}
{{- if (default true .Params.show) -}}
@@ -28,10 +23,10 @@
{{- $rows := where .Pages.ByTitle "Params.active" false -}}
{{- if len $rows -}}
- <h3
+ <h4
title='Old projects that are no longer maintained.'
aria-label='Old projects that are no longer maintained.'
- >Legacy Projects</h3>
+ >Old Stuff</h4>
<ul>
{{- range $rows.ByTitle -}}
diff --git a/themes/hugo-pt2021/layouts/shortcodes/pe-figure.html b/themes/hugo-pt2021/layouts/shortcodes/pe-figure.html
index 324d11f..b90a260 100644
--- a/themes/hugo-pt2021/layouts/shortcodes/pe-figure.html
+++ b/themes/hugo-pt2021/layouts/shortcodes/pe-figure.html
@@ -66,7 +66,7 @@ enhancement.
{{if $src.width}} width='{{- $src.width -}}'{{- end}}
{{if $src.height}} height='{{- $src.height -}}'{{- end}}
- {{if (or $pic.tip $src.tip)}} alt='{{- default $pic.tip $src.tip -}}'{{- end}}
+ alt='{{if (or $pic.tip $src.tip)}}{{- default $pic.tip $src.tip -}}{{- end}}'
/>
{{- end -}}
{{- else -}}
@@ -90,7 +90,7 @@ enhancement.
{{/* emit img */}}
<img
src='{{- $src -}}'
- {{if $pic.tip}} alt='{{- $pic.tip -}}'{{end}}
+ alt='{{if $pic.tip}}{{- $pic.tip -}}{{end}}'
/>
{{- end -}}
{{- end -}}
diff --git a/themes/hugo-pt2021/layouts/shortcodes/pe-picture.html b/themes/hugo-pt2021/layouts/shortcodes/pe-picture.html
index 3135fcf..b7623ec 100644
--- a/themes/hugo-pt2021/layouts/shortcodes/pe-picture.html
+++ b/themes/hugo-pt2021/layouts/shortcodes/pe-picture.html
@@ -69,7 +69,7 @@ Features:
{{if $src.width}} width='{{- $src.width -}}'{{- end}}
{{if $src.height}} height='{{- $src.height -}}'{{- end}}
- {{if (or $pic.tip $src.tip)}} alt='{{- default $pic.tip $src.tip -}}'{{- end}}
+ alt='{{if (or $pic.tip $src.tip)}}{{- default $pic.tip $src.tip -}}{{- end}}'
/>
{{- end -}}
{{- else -}}
@@ -93,7 +93,7 @@ Features:
{{/* emit img */}}
<img
src='{{- $src -}}'
- {{if $pic.tip}} alt='{{- $pic.tip -}}'{{end}}
+ alt='{{if $pic.tip}}{{- $pic.tip -}}{{end}}'
/>
{{- end -}}
{{- end -}}