aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hugo-pt2021/layouts/partials')
-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
3 files changed, 8 insertions, 5 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>