diff --git a/assets/css/core/license.css b/assets/css/core/license.css new file mode 100644 index 0000000000..8e81d229ef --- /dev/null +++ b/assets/css/core/license.css @@ -0,0 +1,6 @@ +/* + PaperMod v6 + License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE + Copyright (c) 2020 nanxiaobei and adityatelange + Copyright (c) 2021-2022 adityatelange +*/ diff --git a/assets/js/license.js b/assets/js/license.js new file mode 100644 index 0000000000..8e81d229ef --- /dev/null +++ b/assets/js/license.js @@ -0,0 +1,6 @@ +/* + PaperMod v6 + License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE + Copyright (c) 2020 nanxiaobei and adityatelange + Copyright (c) 2021-2022 adityatelange +*/ diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 2b5992bb24..0000000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,142 +0,0 @@ - - - -{{- if hugo.IsProduction | or (eq site.Params.env "production") | and (ne .Params.robotsNoIndex true) }} - -{{- else }} - -{{- end }} - -{{- /* Title */}} -{{- $pageTitle := site.Title }} -{{- if (and .Title (not .IsHome)) }} - {{- $pageTitle = printf "%s | %s" .Title $pageTitle }} -{{- end }} -{{ $pageTitle }} - -{{- /* Meta */}} -{{- if .IsHome }} -{{ with site.Params.keywords -}}{{ end }} -{{- else }} - -{{- end }} - - - -{{- if site.Params.analytics.googlesiteVerificationTag }} - -{{- end }} -{{- if site.Params.analytics.yandexsiteVerificationTag }} - -{{- end }} -{{- if site.Params.analytics.bingsiteVerificationTag }} - -{{- end }} - -{{- /* Styles */}} -{{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} -{{- $reset := (resources.Get "css/core/reset.css") }} -{{- $media := (resources.Get "css/core/zmedia.css") }} -{{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }} -{{- $commonHighlight := (resources.Get "css/common/highlight.scss") | resources.ToCSS }} - -{{- /* order is important */}} -{{- $core := (slice $theme_vars $reset $common $commonHighlight $media) | resources.Concat "assets/css/core.css" }} -{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }} -{{- $extendedScss := (resources.Match "css/extended/*.scss") | resources.Concat "assets/css/extended.scss" | resources.ToCSS }} - -{{- /* bundle all required css */}} -{{- /* Add extended css after theme style */ -}} -{{- $stylesheet := (slice $core $extended $extendedScss) | resources.Concat "assets/css/stylesheet.css" | minify }} - -{{- if not site.Params.assets.disableFingerprinting }} -{{- $stylesheet := $stylesheet | fingerprint }} - -{{- else }} - -{{- end }} - -{{- /* Favicons */}} - - - -{{- /* RSS */}} -{{ range .AlternativeOutputFormats -}} - -{{ end -}} -{{- range .AllTranslations -}} - -{{ end -}} - -{{- /* Misc */}} -{{- if hugo.IsProduction | or (eq site.Params.env "production") }} - {{- if site.GoogleAnalytics }} - {{- template "_internal/google_analytics.html" . }} - {{- end -}} - {{- if site.Params.useCustomAnalytics }} - {{- partialCached "custom_analytics.html" . "custom_analytics.html" }} - {{- end -}} -{{- end -}} - -{{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started */}} -{{- if .Params.cover.image }} - -{{- else }} - {{- with site.Params.images -}} - - {{- end }} -{{- end }} - - -{{- with site.Params.socialAccounts.twitter }} - - -{{- end }} - -{{- template "partials/templates/opengraph.html" (dict "page" . "pageTitle" $pageTitle) }} - -{{- template "partials/templates/schema_json.html" (dict "page" . "pageTitle" $pageTitle) }} - -{{- partial "extend_head.html" . }} -