diff options
author | nanxiaobei <nanxiaobei@gmail.com> | 2022-08-15 19:52:27 +0300 |
---|---|---|
committer | nanxiaobei <nanxiaobei@gmail.com> | 2022-08-15 19:52:27 +0300 |
commit | e3d39acf6c6491dbfcf51481820cb69c0b154771 (patch) | |
tree | 4d54b5045acbb3526229596b3327f888f6b6d504 | |
parent | 031a3e7e1cfa43a7fadfb45509fe5f550a02f011 (diff) | |
parent | b08d6276e2025a770bda59573921f24cc56e834b (diff) |
Merge branch 'main' of github.com:nanxiaobei/hugo-paper
-rw-r--r-- | i18n/fr.yaml | 5 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/i18n/fr.yaml b/i18n/fr.yaml new file mode 100644 index 0000000..ab0630a --- /dev/null +++ b/i18n/fr.yaml @@ -0,0 +1,5 @@ +- id: prev_page + translation: 'Page précédente' + +- id: next_page + translation: 'Page suivante' diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 59da3ee..eccd837 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -33,10 +33,14 @@ {{ end }} <!-- Preload --> + {{ $dark_icon := "theme.png" }} + {{ if site.Params.monoDarkIcon }} + {{ $dark_icon := "theme.svg" }} + {{ end }} <link rel="preload" as="image" - href="{{ `theme.{{ if site.Params.monoDarkIcon }}svg{{ else }}png{{ end }}` | absURL }}" + href="{{ $dark_icon | absURL }}" /> {{ $avatar_url := $.Scratch.Get "avatar_url" }} |