diff --git a/assets/sass/fonts.scss b/assets/sass/fonts.scss index a361cc10..4cca068d 100644 --- a/assets/sass/fonts.scss +++ b/assets/sass/fonts.scss @@ -66,6 +66,7 @@ font-weight: 400; src: url(@fontsource/material-symbols-rounded/files/material-symbols-rounded-latin-400-normal.woff2) format('woff2'), url(@fontsource/material-symbols-rounded/files/material-symbols-rounded-latin-400-normal.woff) format('woff'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; + font-display: block; // Do not display icons until font is fully loaded } body { @@ -79,7 +80,7 @@ body { font-weight: normal; font-style: normal; display: inline-block; - font-size: 20px; + font-size: 2rem; line-height: 1; text-transform: none; letter-spacing: normal; @@ -88,4 +89,6 @@ body { direction: ltr; vertical-align: text-bottom; text-decoration: none; + width: 1em; + height: 1em; } diff --git a/hugo.yaml b/hugo.yaml index 5d63bf90..01f4143a 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -36,6 +36,14 @@ markup: tableOfContents: startLevel: 2 endLevel: 2 + goldmark: + renderer: + # https://gohugo.io/configuration/markup/#rendererunsafe + # Safe rendering does omit some styles to prevent XSS, + # but since our content is in our control, + # we can disable safe rendering. + unsafe: true + cascade: toc: true # enable toc for all pages @@ -44,3 +52,4 @@ cascade: params: githubDevUrl: 'https://github.dev/fipguide/fipguide.github.io/' + gitHubUrl: 'https://github.com/fipguide/fipguide.github.io' diff --git a/i18n/de.yaml b/i18n/de.yaml index 40fa890b..883f34bc 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -23,6 +23,7 @@ toc_name: Inhalt _operator__nearby: Angrenzende Betreiber toc-backlink: Zurück zu editPage: Seite bearbeiten +reportError: Melde ein Fehler anchorLink: copy: Link zu diesem Abschnitt kopieren copied: Link wurde in die Zwischenablage kopiert diff --git a/i18n/en.yaml b/i18n/en.yaml index 9f2bdd57..4ad38ba0 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -23,6 +23,7 @@ toc_name: Contents _operator__nearby: Neighboring Operators toc-backlink: Back to editPage: Edit page +reportError: Report an error anchorLink: copy: Copy link to this section copied: Link has been copied to the clipboard diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 7406c721..92ed7981 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,6 +1,6 @@ {{- $url := .Destination -}} {{- if strings.HasPrefix $url "http" -}} -{{ .Text }}{{ partial "icon" "arrow_outward" }} +{{ partial "link" . }} {{- else -}} {{ .Text }} {{- end -}} diff --git a/layouts/partials/icon.html b/layouts/partials/icon.html index 222c6121..f1ead862 100644 --- a/layouts/partials/icon.html +++ b/layouts/partials/icon.html @@ -1 +1,2 @@ +{{- /* Needed, otherwise links break: https://github.com/fipguide/fipguide.github.io/issues/116 */ -}} diff --git a/layouts/partials/link.html b/layouts/partials/link.html new file mode 100644 index 00000000..0626c232 --- /dev/null +++ b/layouts/partials/link.html @@ -0,0 +1,2 @@ +{{ .Text }}{{- partial "icon" "arrow_outward" -}} +{{- /* Needed, otherwise links break: https://github.com/fipguide/fipguide.github.io/issues/116 */ -}} diff --git a/layouts/partials/sidemenu.html b/layouts/partials/sidemenu.html index c6ae7aa6..afbdee67 100644 --- a/layouts/partials/sidemenu.html +++ b/layouts/partials/sidemenu.html @@ -60,9 +60,29 @@