commit - 5742c0c476c0327c5a81048d993b123fd5b4f24f
commit + 57a707ce60297e90cbd8265fbebf428eef695c95
blob - e6f2d96b6bffcc816640509b65a2511491916160
blob + 71b14c986e0d204480926c4e0e82af40b948b3d5
--- layouts/_partials/head/base.html
+++ layouts/_partials/head/base.html
{{- with .Description }}
<meta name="description" content="{{ . }}">
{{ end }}
-<link rel="canonical" href="{{ .Permalink }}"/>
+<link rel="canonical" href="{{ .Permalink }}">
blob - bdc2e5041ba1c8e3ee365faf89d2a7eb2112d492
blob + 73bc6d770f28e383dc16b74913e8da3e655217c9
--- layouts/_partials/head/css.html
+++ layouts/_partials/head/css.html
{{- with resources.Get "css/main.css" | postCSS }}
{{- if eq hugo.Environment "development" }}
- <link rel="stylesheet" href="{{ .RelPermalink }}">
+ {{- with . | css.Build }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}">
+ {{- end }}
{{- else }}
- {{- with . | minify | fingerprint }}
+ {{- with . | css.Build (dict "minify" true) | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{- end }}
blob - b41514e6d087eb0afa4d49ad5ab408ccd8fd665c
blob + 00cb92cb03bf4a2f58a2ee978a74f1225ca819d8
--- layouts/_partials/image.html
+++ layouts/_partials/image.html
height="{{ . }}"
{{- end }}
{{ with .alt }}alt="{{ . }}"{{ end }}
-/>
+>
blob - 246c5ba6d844fee8e8ba2b278841c53576e15677
blob + afeccfd4072b49e27cb6fd9b4458f08a5629ea0d
--- layouts/_partials/logo.html
+++ layouts/_partials/logo.html
{{- $img := resources.Get (default "img/logo.svg" .image) }}
-<a href="{{ default (site.BaseURL | relLangURL) .link }}" class="{{ .class | default "logo" }}">
+<a
+ href="{{ default (site.BaseURL | relLangURL) .link }}"
+ class="{{ .class | default "logo" }}"
+ {{ with .title }}title="{{ . }}"{{ end }}>
{{- partial "image" (dict "image" $img "alt" (default "Logo image" .alt)) -}}
</a>
blob - 7f2cbee50e3449cf3083ae55c8ead7b84b8c1fe9
blob + 921cd60f9b3ab88d884e5546adfc2d1ee441e39d
--- layouts/_shortcodes/source.html
+++ layouts/_shortcodes/source.html
<source src="{{ $src }}"{{ with $type }} type="{{ . }}"{{ end }}
{{- range $attr := slice "srcset" "sizes" "media" "width" "height" -}}
{{- with $.Get $attr }} {{ printf "%s=%q" $attr . | safeHTMLAttr }}{{- end -}}
- {{- end }} />
+ {{- end }} >
blob - bbc0dad791de7bf3eb55e939679a4ed13011c446
blob + 2890f33ceee990006cbc257a3d98d671fd4d0b4d
--- postcss.config.mjs
+++ postcss.config.mjs
import UnoCSS from '@unocss/postcss'
-import postcssImport from 'postcss-import'
export default {
plugins: [
- postcssImport({
- path: ['assets/css']
- }),
UnoCSS(),
],
}