From 6166cf8e4008b7d64053655f4093d0870a54ace1 Mon Sep 17 00:00:00 2001 From: gabriel giovanini <1408882-gabrielgio@users.noreply.gitlab.com> Date: Wed, 23 Mar 2022 20:08:49 +0000 Subject: feat: Remove unused theme --- themes/ananke/layouts/partials/commento.html | 2 - .../layouts/partials/func/GetFeaturedImage.html | 35 ---------- themes/ananke/layouts/partials/head-additions.html | 0 themes/ananke/layouts/partials/i18nlist.html | 10 --- .../ananke/layouts/partials/menu-contextual.html | 33 --------- .../ananke/layouts/partials/new-window-icon.html | 2 - themes/ananke/layouts/partials/page-header.html | 26 ------- themes/ananke/layouts/partials/site-favicon.html | 3 - themes/ananke/layouts/partials/site-footer.html | 8 --- themes/ananke/layouts/partials/site-header.html | 36 ---------- .../ananke/layouts/partials/site-navigation.html | 26 ------- themes/ananke/layouts/partials/site-scripts.html | 4 -- themes/ananke/layouts/partials/social-follow.html | 80 ---------------------- themes/ananke/layouts/partials/social-share.html | 26 ------- .../layouts/partials/summary-with-image.html | 29 -------- themes/ananke/layouts/partials/summary.html | 13 ---- themes/ananke/layouts/partials/svg/facebook.svg | 1 - themes/ananke/layouts/partials/svg/github.svg | 3 - themes/ananke/layouts/partials/svg/gitlab.svg | 1 - themes/ananke/layouts/partials/svg/instagram.svg | 1 - themes/ananke/layouts/partials/svg/keybase.svg | 3 - themes/ananke/layouts/partials/svg/linkedin.svg | 3 - themes/ananke/layouts/partials/svg/mastodon.svg | 4 -- themes/ananke/layouts/partials/svg/medium.svg | 3 - themes/ananke/layouts/partials/svg/new-window.svg | 3 - themes/ananke/layouts/partials/svg/rss.svg | 5 -- themes/ananke/layouts/partials/svg/slack.svg | 27 -------- .../ananke/layouts/partials/svg/stackoverflow.svg | 8 --- themes/ananke/layouts/partials/svg/twitter.svg | 1 - themes/ananke/layouts/partials/svg/youtube.svg | 1 - themes/ananke/layouts/partials/tags.html | 9 --- 31 files changed, 406 deletions(-) delete mode 100644 themes/ananke/layouts/partials/commento.html delete mode 100644 themes/ananke/layouts/partials/func/GetFeaturedImage.html delete mode 100644 themes/ananke/layouts/partials/head-additions.html delete mode 100644 themes/ananke/layouts/partials/i18nlist.html delete mode 100644 themes/ananke/layouts/partials/menu-contextual.html delete mode 100644 themes/ananke/layouts/partials/new-window-icon.html delete mode 100644 themes/ananke/layouts/partials/page-header.html delete mode 100644 themes/ananke/layouts/partials/site-favicon.html delete mode 100755 themes/ananke/layouts/partials/site-footer.html delete mode 100755 themes/ananke/layouts/partials/site-header.html delete mode 100644 themes/ananke/layouts/partials/site-navigation.html delete mode 100644 themes/ananke/layouts/partials/site-scripts.html delete mode 100644 themes/ananke/layouts/partials/social-follow.html delete mode 100644 themes/ananke/layouts/partials/social-share.html delete mode 100644 themes/ananke/layouts/partials/summary-with-image.html delete mode 100644 themes/ananke/layouts/partials/summary.html delete mode 100644 themes/ananke/layouts/partials/svg/facebook.svg delete mode 100644 themes/ananke/layouts/partials/svg/github.svg delete mode 100644 themes/ananke/layouts/partials/svg/gitlab.svg delete mode 100644 themes/ananke/layouts/partials/svg/instagram.svg delete mode 100644 themes/ananke/layouts/partials/svg/keybase.svg delete mode 100644 themes/ananke/layouts/partials/svg/linkedin.svg delete mode 100644 themes/ananke/layouts/partials/svg/mastodon.svg delete mode 100644 themes/ananke/layouts/partials/svg/medium.svg delete mode 100644 themes/ananke/layouts/partials/svg/new-window.svg delete mode 100644 themes/ananke/layouts/partials/svg/rss.svg delete mode 100644 themes/ananke/layouts/partials/svg/slack.svg delete mode 100644 themes/ananke/layouts/partials/svg/stackoverflow.svg delete mode 100644 themes/ananke/layouts/partials/svg/twitter.svg delete mode 100644 themes/ananke/layouts/partials/svg/youtube.svg delete mode 100644 themes/ananke/layouts/partials/tags.html (limited to 'themes/ananke/layouts/partials') diff --git a/themes/ananke/layouts/partials/commento.html b/themes/ananke/layouts/partials/commento.html deleted file mode 100644 index 54e7589..0000000 --- a/themes/ananke/layouts/partials/commento.html +++ /dev/null @@ -1,2 +0,0 @@ -
- diff --git a/themes/ananke/layouts/partials/func/GetFeaturedImage.html b/themes/ananke/layouts/partials/func/GetFeaturedImage.html deleted file mode 100644 index 3c0d5de..0000000 --- a/themes/ananke/layouts/partials/func/GetFeaturedImage.html +++ /dev/null @@ -1,35 +0,0 @@ -{{/* - GetFeaturedImage - - This partial gets the url for featured image for a given page. - - If a featured_image was set in the page's front matter, then that will be used. - - If not set, this will search page resources to find an image that contains the word - "cover", and if found, returns the path to that resource. - - If no featured_image was set, and there's no "cover" image in page resources, then - this partial returns an empty string (which evaluates to false). - - @return Permalink to featured image, or an empty string if not found. - -*/}} - -{{/* Declare a new string variable, $linkToCover */}} -{{ $linkToCover := "" }} - -{{/* Use the value from front matter if present */}} -{{ if .Params.featured_image }} - {{ $linkToCover = .Params.featured_image }} - -{{/* Find the first image with 'cover' in the name in this page bundle. */}} -{{ else }} - {{ $img := (.Resources.ByType "image").GetMatch "*cover*" }} - {{ with $img }} - {{ $linkToCover = .Permalink }} - {{ end }} -{{ end }} - -{{/* return either a permalink, or an empty string. Note that partials can only have a single -return statement, so this needs to be at the end of the partial (and not in the if block) */}} -{{ return $linkToCover }} \ No newline at end of file diff --git a/themes/ananke/layouts/partials/head-additions.html b/themes/ananke/layouts/partials/head-additions.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/ananke/layouts/partials/i18nlist.html b/themes/ananke/layouts/partials/i18nlist.html deleted file mode 100644 index ba7c1ea..0000000 --- a/themes/ananke/layouts/partials/i18nlist.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ if .IsTranslated }} -

{{ i18n "translations" }}

- -{{ end }} diff --git a/themes/ananke/layouts/partials/menu-contextual.html b/themes/ananke/layouts/partials/menu-contextual.html deleted file mode 100644 index ae50dc6..0000000 --- a/themes/ananke/layouts/partials/menu-contextual.html +++ /dev/null @@ -1,33 +0,0 @@ -{{/* - Use Hugo's native Table of contents feature. You must set `toc: true` in your parameters for this to show. - https://gohugo.io/content-management/toc/ -*/}} - -{{- if .Params.toc -}} - -{{- end -}} - -{{/* - Use Hugo's native related content feature to pull in content that may have similar parameters, like tags. etc. - https://gohugo.io/content-management/related/ -*/}} - -{{ $related := .Site.RegularPages.Related . | first 15 }} - -{{ with $related }} - -{{ end }} diff --git a/themes/ananke/layouts/partials/new-window-icon.html b/themes/ananke/layouts/partials/new-window-icon.html deleted file mode 100644 index 8f422ca..0000000 --- a/themes/ananke/layouts/partials/new-window-icon.html +++ /dev/null @@ -1,2 +0,0 @@ -{{ $new_window_icon_size := "8px" }} -{{ partial "svg/new-window.svg" (dict "size" $new_window_icon_size) }} \ No newline at end of file diff --git a/themes/ananke/layouts/partials/page-header.html b/themes/ananke/layouts/partials/page-header.html deleted file mode 100644 index 9f2ebd5..0000000 --- a/themes/ananke/layouts/partials/page-header.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ $featured_image := partial "func/GetFeaturedImage.html" . }} -{{ if $featured_image }} - {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} - {{ $featured_image := (trim $featured_image "/") | absURL }} -
-
- {{ partial "site-navigation.html" . }} -
- {{ if not .Params.omit_header_text }} -

{{ .Title | default .Site.Title }}

- {{ with .Params.description }} -

- {{ . }} -

- {{ end }} - {{ end }} -
-
-
-{{ else }} -
-
- {{ partial "site-navigation.html" . }} -
-
-{{ end }} diff --git a/themes/ananke/layouts/partials/site-favicon.html b/themes/ananke/layouts/partials/site-favicon.html deleted file mode 100644 index b7bb9c1..0000000 --- a/themes/ananke/layouts/partials/site-favicon.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ if .Site.Params.favicon }} - -{{ end }} diff --git a/themes/ananke/layouts/partials/site-footer.html b/themes/ananke/layouts/partials/site-footer.html deleted file mode 100755 index 41c0629..0000000 --- a/themes/ananke/layouts/partials/site-footer.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/themes/ananke/layouts/partials/site-header.html b/themes/ananke/layouts/partials/site-header.html deleted file mode 100755 index 10a682f..0000000 --- a/themes/ananke/layouts/partials/site-header.html +++ /dev/null @@ -1,36 +0,0 @@ -{{ $featured_image := .Param "featured_image"}} -{{ if $featured_image }} - {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} - {{ $featured_image := (trim $featured_image "/") | absURL }} -
-
- {{ partial "site-navigation.html" .}} -
-

- {{ .Title | default .Site.Title }} -

- {{ with .Params.description }} -

- {{ . }} -

- {{ end }} -
-
-
-{{ else }} -
-
- {{ partial "site-navigation.html" . }} -
-

- {{ .Title | default .Site.Title }} -

- {{ with .Params.description }} -

- {{ . }} -

- {{ end }} -
-
-
-{{ end }} diff --git a/themes/ananke/layouts/partials/site-navigation.html b/themes/ananke/layouts/partials/site-navigation.html deleted file mode 100644 index d73c66d..0000000 --- a/themes/ananke/layouts/partials/site-navigation.html +++ /dev/null @@ -1,26 +0,0 @@ - diff --git a/themes/ananke/layouts/partials/site-scripts.html b/themes/ananke/layouts/partials/site-scripts.html deleted file mode 100644 index bd6c7f5..0000000 --- a/themes/ananke/layouts/partials/site-scripts.html +++ /dev/null @@ -1,4 +0,0 @@ -{{ $script := .Site.Data.webpack_assets.app }} -{{ with $script.js }} - -{{ end }} diff --git a/themes/ananke/layouts/partials/social-follow.html b/themes/ananke/layouts/partials/social-follow.html deleted file mode 100644 index 0755ce2..0000000 --- a/themes/ananke/layouts/partials/social-follow.html +++ /dev/null @@ -1,80 +0,0 @@ - -{{ $icon_size := "32px" }} -{{ with .Param "stackoverflow" }} - - {{ partial "svg/stackoverflow.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "facebook" }} - - {{ partial "svg/facebook.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "twitter" }} - - {{ partial "svg/twitter.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "instagram" }} - - {{ partial "svg/instagram.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "youtube" }} - - {{ partial "svg/youtube.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "linkedin" }} - - {{ partial "svg/linkedin.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "github" }} - - {{ partial "svg/github.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "gitlab" }} - - {{ partial "svg/gitlab.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "keybase" }} - - {{ partial "svg/keybase.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "medium" }} - - {{ partial "svg/medium.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "mastodon" }} - - {{ partial "svg/mastodon.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "slack" }} - - {{ partial "svg/slack.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "rss" }} - - {{ partial "svg/rss.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} diff --git a/themes/ananke/layouts/partials/social-share.html b/themes/ananke/layouts/partials/social-share.html deleted file mode 100644 index eb313c0..0000000 --- a/themes/ananke/layouts/partials/social-share.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ $title := .Title }} -{{ $url := printf "%s" .Permalink | absLangURL }} -{{ $icon_size := "32px" }} - -{{ if not .Params.disable_share }} -
- - {{ $facebook_href := printf "https://www.facebook.com/sharer.php?u=%s" $url }} - - {{ partialCached "svg/facebook.svg" (dict "size" $icon_size) $icon_size }} - - - {{ $twitter_href := printf "https://twitter.com/share?url=%s&text=%s" $url $title }} - {{ with .Site.Social.twitter }} - {{ $twitter_href = printf "%s&via=%s" $twitter_href . }} - {{ end }} - - {{ partialCached "svg/twitter.svg" (dict "size" $icon_size) $icon_size }} - - - {{ $linkedin_href := printf "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" $url $title }} - - {{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }} - -
-{{ end }} diff --git a/themes/ananke/layouts/partials/summary-with-image.html b/themes/ananke/layouts/partials/summary-with-image.html deleted file mode 100644 index 702a305..0000000 --- a/themes/ananke/layouts/partials/summary-with-image.html +++ /dev/null @@ -1,29 +0,0 @@ -{{ $featured_image := partial "func/GetFeaturedImage.html" . }} -
-
-
- {{ if $featured_image }} - {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} - {{ $featured_image := (trim $featured_image "/") | absURL }} -
- - image from {{ .Title }} - -
- {{ end }} -
-

- - {{ .Title }} - -

- - {{ $.Param "read_more_copy" | default (i18n "readMore") }} - {{/* TODO: add author -

By {{ .Author }}

*/}} -
-
-
-
diff --git a/themes/ananke/layouts/partials/summary.html b/themes/ananke/layouts/partials/summary.html deleted file mode 100644 index 65b3eaa..0000000 --- a/themes/ananke/layouts/partials/summary.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
- {{ humanize .Section }} -

- - {{ .Title }} - -

- -
-
diff --git a/themes/ananke/layouts/partials/svg/facebook.svg b/themes/ananke/layouts/partials/svg/facebook.svg deleted file mode 100644 index 0afb80f..0000000 --- a/themes/ananke/layouts/partials/svg/facebook.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/themes/ananke/layouts/partials/svg/github.svg b/themes/ananke/layouts/partials/svg/github.svg deleted file mode 100644 index a362a60..0000000 --- a/themes/ananke/layouts/partials/svg/github.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/themes/ananke/layouts/partials/svg/gitlab.svg b/themes/ananke/layouts/partials/svg/gitlab.svg deleted file mode 100644 index 36a3bed..0000000 --- a/themes/ananke/layouts/partials/svg/gitlab.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/themes/ananke/layouts/partials/svg/instagram.svg b/themes/ananke/layouts/partials/svg/instagram.svg deleted file mode 100644 index 2fa7d47..0000000 --- a/themes/ananke/layouts/partials/svg/instagram.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/themes/ananke/layouts/partials/svg/keybase.svg b/themes/ananke/layouts/partials/svg/keybase.svg deleted file mode 100644 index 9fdb8b3..0000000 --- a/themes/ananke/layouts/partials/svg/keybase.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/themes/ananke/layouts/partials/svg/linkedin.svg b/themes/ananke/layouts/partials/svg/linkedin.svg deleted file mode 100644 index 744ef7c..0000000 --- a/themes/ananke/layouts/partials/svg/linkedin.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/themes/ananke/layouts/partials/svg/mastodon.svg b/themes/ananke/layouts/partials/svg/mastodon.svg deleted file mode 100644 index 205345b..0000000 --- a/themes/ananke/layouts/partials/svg/mastodon.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/themes/ananke/layouts/partials/svg/medium.svg b/themes/ananke/layouts/partials/svg/medium.svg deleted file mode 100644 index cc5dc23..0000000 --- a/themes/ananke/layouts/partials/svg/medium.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/themes/ananke/layouts/partials/svg/new-window.svg b/themes/ananke/layouts/partials/svg/new-window.svg deleted file mode 100644 index ba148ad..0000000 --- a/themes/ananke/layouts/partials/svg/new-window.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/themes/ananke/layouts/partials/svg/rss.svg b/themes/ananke/layouts/partials/svg/rss.svg deleted file mode 100644 index 084cff5..0000000 --- a/themes/ananke/layouts/partials/svg/rss.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/themes/ananke/layouts/partials/svg/slack.svg b/themes/ananke/layouts/partials/svg/slack.svg deleted file mode 100644 index 57974d4..0000000 --- a/themes/ananke/layouts/partials/svg/slack.svg +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/themes/ananke/layouts/partials/svg/stackoverflow.svg b/themes/ananke/layouts/partials/svg/stackoverflow.svg deleted file mode 100644 index ece303f..0000000 --- a/themes/ananke/layouts/partials/svg/stackoverflow.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - diff --git a/themes/ananke/layouts/partials/svg/twitter.svg b/themes/ananke/layouts/partials/svg/twitter.svg deleted file mode 100644 index 6803558..0000000 --- a/themes/ananke/layouts/partials/svg/twitter.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/themes/ananke/layouts/partials/svg/youtube.svg b/themes/ananke/layouts/partials/svg/youtube.svg deleted file mode 100644 index 9a55379..0000000 --- a/themes/ananke/layouts/partials/svg/youtube.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/themes/ananke/layouts/partials/tags.html b/themes/ananke/layouts/partials/tags.html deleted file mode 100644 index 4fce241..0000000 --- a/themes/ananke/layouts/partials/tags.html +++ /dev/null @@ -1,9 +0,0 @@ - -- cgit v1.2.3