1
0
Fork 0

Merge branch 'main' of github.com:nanxiaobei/hugo-paper

This commit is contained in:
nanxiaobei 2022-08-16 00:52:27 +08:00
commit e3d39acf6c
2 changed files with 10 additions and 1 deletions

5
i18n/fr.yaml Normal file
View file

@ -0,0 +1,5 @@
- id: prev_page
translation: 'Page précédente'
- id: next_page
translation: 'Page suivante'

View file

@ -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" }}