mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
12 lines
558 B
HTML
12 lines
558 B
HTML
{{- /* Set pages of main sections */ -}}
|
|
{{- $pages := where .Site.RegularPages "Section" "in" .Site.MainSections -}}
|
|
{{- $pages = $pages | union (where .Site.RegularPages "Type" "in" .Site.MainSections) -}}
|
|
{{- .Site.Store.Set "mainSectionPages" $pages -}}
|
|
|
|
{{- /* Select the scope named `public_repo` to generate personal access token */ -}}
|
|
{{- $header := dict "Authorization" "" -}}
|
|
{{- with (getenv "HUGO_PARAMS_GHTOKEN") -}}
|
|
{{- $header = dict "Authorization" (printf "token %v" .) -}}
|
|
{{- end -}}
|
|
{{- hugo.Store.Set "githubTokenHeader" $header -}}
|