diff options
Diffstat (limited to 'themes/hugo-pt2021/layouts/partials')
4 files changed, 15 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/head.html b/themes/hugo-pt2021/layouts/partials/head.html index 29139d5..3aa90d5 100644 --- a/themes/hugo-pt2021/layouts/partials/head.html +++ b/themes/hugo-pt2021/layouts/partials/head.html @@ -49,6 +49,13 @@ {{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}} {{- end -}} + {{/* add png favicon (smaller than ico) */}} + <link + rel='icon' + type='image/png' + href='/favicon.png' + /> + {{/* activitypub URL */}} {{- if .Site.Params.activityPubUrl -}} <link 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> |
