Change credit comment into data attribute
This commit is contained in:
@@ -245,7 +245,7 @@ paige:
|
||||
account_id: "123456"
|
||||
utterances: # utteranc.es
|
||||
github_repo: "example/foo"
|
||||
hide_theme_comment: true # Don't put a link to this project in a code comment
|
||||
hide_credit_data: true # Don't credit this project in a data attribute
|
||||
hide_theme_link: true # Don't put a link to this project in the footer
|
||||
math:
|
||||
autorender:
|
||||
@@ -913,7 +913,7 @@ The page date is the publish date, if any.
|
||||
|
||||
Bootstrap 5.3.0-alpha1 CSS and JavaScript and Bootstrap Icons 1.10.3 are used unless overridden.
|
||||
|
||||
Hugo names, CSS names, and JavaScript names that begin with "paige" capitalized in any way are reserved.
|
||||
Hugo names, HTML names, CSS names, and JavaScript names that begin with "paige" capitalized in any way are reserved.
|
||||
|
||||
## Community
|
||||
|
||||
|
@@ -50,7 +50,6 @@ outputs:
|
||||
paginate: 50
|
||||
params:
|
||||
paige:
|
||||
hide_theme_comment: true
|
||||
hide_theme_link: true
|
||||
social:
|
||||
discord:
|
||||
|
@@ -1,11 +1,12 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $credit := not $page.Site.Params.paige.hide_credit_data }}
|
||||
{{ $dark := eq $page.Site.Params.paige.color_scheme "dark" }}
|
||||
{{ $lang := $page.Site.LanguageCode | default $page.Site.Language.Lang }}
|
||||
{{ $rtl := eq $page.Language.LanguageDirection "rtl" }}
|
||||
|
||||
<!doctype html>
|
||||
<html {{ if $dark }} data-bs-theme="dark" {{ end }} {{ if $rtl }} dir="rtl" {{ end }} {{ with $lang }} lang="{{ . }}" {{ end }}>
|
||||
<html {{ if $dark }} data-bs-theme="dark" {{ end }} {{ if $credit }} data-paige-credit="Paige theme from https://github.com/willfaught/paige" {{ end }} {{ if $rtl }} dir="rtl" {{ end }} {{ with $lang }} lang="{{ . }}" {{ end }}>
|
||||
{{ partial "paige/head.html" $page }}
|
||||
{{ partial "paige/body.html" $page }}
|
||||
{{ if templates.Exists "partials/paige/body-first.html" }}
|
||||
@@ -34,6 +35,3 @@
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
{{ if not $page.Site.Params.paige.hide_theme_comment }}
|
||||
{{ print "<!-- Paige theme from https://github.com/willfaught/paige -->" | safeHTML }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user