From 11c58778848da1ae53f6f285dcb73e2ace416180 Mon Sep 17 00:00:00 2001 From: Mika Ipstenu Epstein Date: Wed, 23 Oct 2024 11:04:09 -0700 Subject: [PATCH] Dark Mode Support --- config/_default/menus.en.yaml | 15 ------- content/assets/scss/hugo.scss | 7 +++- layouts/_default/metabox/actor.html | 16 ++++---- layouts/_default/metabox/recap.html | 2 +- layouts/partials/footer/footer.html | 12 ++++++ layouts/partials/footer/social.html | 54 ++++++++++++++++--------- layouts/partials/mailinglist.html | 4 +- layouts/partials/recaps/chronology.html | 4 +- layouts/partials/recaps/episode.html | 8 ++-- layouts/shortcodes/episodelist.html | 2 +- 10 files changed, 68 insertions(+), 56 deletions(-) create mode 100644 layouts/partials/footer/footer.html diff --git a/config/_default/menus.en.yaml b/config/_default/menus.en.yaml index 403d5b8c..8984ffee 100644 --- a/config/_default/menus.en.yaml +++ b/config/_default/menus.en.yaml @@ -39,21 +39,6 @@ main: footer: - name: Links weight: 10 -- name: Privacy Policy - parent: Links - pre: "fas fa-lock" - pageRef: /tos/privacy/ - weight: 10 -- name: Terms of Service - parent: Links - pre: "fas fa-file-contract" - pageRef: /tos/ - weight: 20 -- name: Copyright - parent: Links - pre: "fas fa-copyright" - pageRef: /tos/copyright/ - weight: 30 - name: Contribute parent: Links pre: "fab fa-github" diff --git a/content/assets/scss/hugo.scss b/content/assets/scss/hugo.scss index dfeb9c08..4dfa6d83 100644 --- a/content/assets/scss/hugo.scss +++ b/content/assets/scss/hugo.scss @@ -1,5 +1,4 @@ /* Stars */ - .rating { display: inline-flex; } @@ -73,7 +72,6 @@ nav#NewsListOfYears ul, nav#TranscriptsListOfYears ul { } /* Personas */ - #nav-as-seen-on { h2, h3, button { font-style: italic; @@ -96,3 +94,8 @@ nav#NewsListOfYears ul, nav#TranscriptsListOfYears ul { figcaption.blockquote-footer { margin-top: 10px; } + +/* Cards */ +h5.card-header { + margin-top: 0!important; +} diff --git a/layouts/_default/metabox/actor.html b/layouts/_default/metabox/actor.html index 5c1ae7a1..0ec9094f 100644 --- a/layouts/_default/metabox/actor.html +++ b/layouts/_default/metabox/actor.html @@ -37,10 +37,10 @@
{{- if $unverified -}}{{- partial "unconfirmed.html" -}}{{- end -}} -
+
{{- if $character -}} -
{{ $character }}
+

{{ $character }}

{{- if $chartype -}}
({{ $chartype }} character)
{{- end -}} {{- end -}} {{- if ne $thumbnail "/img/placeholder.jpg" -}} @@ -52,11 +52,11 @@
{{ $character }}
{{ $character }}
    - {{- if $year -}}
  • {{- partial "assets/icon.html" (dict "icon" "fas calendar-day") -}} Airdates: {{ $year }}
  • {{- end -}} - {{- if $genre -}}
  • {{- partial "assets/icon.html" (dict "icon" "fas masks-theater") -}} Genre: {{ $genre }}
  • {{- end -}} - {{- if $station -}}
  • {{- partial "assets/icon.html" (dict "icon" "fas tv") -}} Network: {{ if .Params.website }}{{ $station }}{{- else -}}{{ $station }}{{ end }}
  • {{- end -}} - {{- if .Params.imdb -}}
  • {{- partial "assets/icon.html" (dict "icon" "fab imdb") -}} IMDb
  • {{- end -}} - {{- if .Params.episodelist -}}
  • + {{- if $year -}}
  • {{- partial "assets/icon.html" (dict "icon" "fas calendar-day") -}} Airdates: {{ $year }}
  • {{- end -}} + {{- if $genre -}}
  • {{- partial "assets/icon.html" (dict "icon" "fas masks-theater") -}} Genre: {{ $genre }}
  • {{- end -}} + {{- if $station -}}
  • {{- partial "assets/icon.html" (dict "icon" "fas tv") -}} Network: {{ if .Params.website }}{{ $station }}{{- else -}}{{ $station }}{{ end }}
  • {{- end -}} + {{- if .Params.imdb -}}
  • {{- partial "assets/icon.html" (dict "icon" "fab imdb") -}} IMDb
  • {{- end -}} + {{- if .Params.episodelist -}}
  • {{- partial "assets/icon.html" (dict "icon" "fas table-list") -}} List of Appearances {{- if or $seasons $episodes}}
    ( @@ -69,7 +69,7 @@
    {{ $character }}
  • {{- end -}} {{- if and ($rating) (ne $rating "fake") -}} {{- .Page.Scratch.Set "goldstar" $rating -}} -
  • {{- partial "rating.html" (dict "rating" $rating ) -}}
  • +
  • {{- partial "rating.html" (dict "rating" $rating ) -}}
  • {{- end -}}
diff --git a/layouts/_default/metabox/recap.html b/layouts/_default/metabox/recap.html index 91c9db22..0325529f 100644 --- a/layouts/_default/metabox/recap.html +++ b/layouts/_default/metabox/recap.html @@ -10,7 +10,7 @@ {{ $goldstar := .Page.Scratch.Get "goldstar" }} -
+
"{{ title .Title }}"
diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html new file mode 100644 index 00000000..aa0d8b50 --- /dev/null +++ b/layouts/partials/footer/footer.html @@ -0,0 +1,12 @@ +
+
+ + {{- $copyright := printf "%s © %s %s %s." (T "copyright") (dateFormat "2006" now) .Site.Title (T "rights") }} + {{ cond (gt (len .Site.Copyright) 0) .Site.Copyright $copyright }} + {{ .Site.Params.footer.license | safeHTML }} | + {{ partial "assets/link.html" (dict "destination" "/tos/" "text" "Terms of Use" "class" "link-bg-footer" "page" .Page) }} | + {{ partial "assets/link.html" (dict "destination" "/tos/privacy" "text" "Privacy" "class" "link-bg-footer" "page" .Page) }} | + {{ partial "assets/link.html" (dict "destination" "/tos/copyright" "text" "Copyright" "class" "link-bg-footer" "page" .Page) }} + +
+
diff --git a/layouts/partials/footer/social.html b/layouts/partials/footer/social.html index 7673c5f2..f47aa88e 100644 --- a/layouts/partials/footer/social.html +++ b/layouts/partials/footer/social.html @@ -1,22 +1,35 @@ -{{- $version := partial "assets/version.html" . -}} -{{- $license := .Site.Params.footer.license | safeHTML -}} -{{- $description := .Site.Params.main.description | safeHTML -}} -{{- $title := site.Title -}} -{{- $baseurl := urls.Parse $.Site.Params.Baseurl -}} +{{ if .Site.Params.footer.socialTitle }} + {{ warnf "DEPRECATED: parameter `Params.home.socialTitle` has been deprecated in release v0.18"}} +{{ end }} +{{ if .Site.Params.footer.socialCaption }} + {{ warnf "DEPRECATED: parameter `Params.home.socialCaption` has been deprecated in release v0.18"}} +{{ end }} {{- $page := . -}} {{- if not $page -}} {{- errorf "partial [footer/footer.html] - Missing value for param 'page'" -}} {{- end -}} - +