{{- .Title }} - {{ .Params.description -}} +
++ {{ $url := urls.Parse .Params.link -}} + {{ $url.Host | title }}{{ if ne $url.Path "/" }}{{- $url.Path -}}{{- end -}} +
+ \ No newline at end of file diff --git a/themes/jb/layouts/sponsors/list.html b/themes/jb/layouts/sponsors/list.html new file mode 100644 index 000000000..fd1cb4085 --- /dev/null +++ b/themes/jb/layouts/sponsors/list.html @@ -0,0 +1,47 @@ +{{ define "main" }} +{{- .Title }} - {{ .Params.description -}} +
+ {{- .Title }} - {{ replaceRE (print "^" .Title "(?: is)? (.*)") "$1" .Params.description -}}
- {{ $url := urls.Parse .Params.link -}} - {{ $url.Host | title }}{{ if ne $url.Path "/" }}{{- $url.Path -}}{{- end -}} + {{- $url := urls.Parse .Params.link -}} + {{ if findRE "^www\\.(.*)" $url.Host }}{{ $url.Host }}{{else}}{{ $url.Host | title }}{{ end }}{{ if ne $url.Path "/" }}{{- $url.Path -}}{{- end -}}
\ No newline at end of file diff --git a/themes/jb/layouts/sponsors/list.html b/themes/jb/layouts/sponsors/list.html index 857ee442d..d08d72cc8 100644 --- a/themes/jb/layouts/sponsors/list.html +++ b/themes/jb/layouts/sponsors/list.html @@ -3,7 +3,7 @@+ {{- .Title }} - {{ replaceRE (print "^" .Title "(?: is)? (.*)") "$1" .Params.description -}}
From e9de61d95528dcd88dd6a45a3225f62999c0f6d5 Mon Sep 17 00:00:00 2001
From: Ryan Goodwin Jupiter Broadcasting
{{range where .Site.Sections "Title" "Shows" -}}
{{- range .Pages -}}
{{- $show_sponsors := slice -}}
+ {{- $show_sponsors_list := slice -}}
+ {{- with . -}}
+ {{- if .Params.Sponsors -}}
+ {{- $show_sponsors_list = $show_sponsors_list | append .Params.Sponsors -}}
+ {{- end -}}
+ {{- end -}}
{{- range (where (where .Pages "Type" "episode") "Date" "ge" (now.AddDate 0 0 (int $.Site.Params.Sponsors.lookbackdays) )) -}}
- {{- $show_sponsors = $show_sponsors | append .Params.Sponsors -}}
+ {{- $show_sponsors = $show_sponsors | append .Params.Sponsors -}}
{{- end -}}
{{ if $show_sponsors -}}
{{ .Title }}
- {{- range uniq ($show_sponsors) -}}
+ {{- range uniq ($show_sponsors | append $show_sponsors_list) -}}
{{- $sponsor := index (where (where site.Pages "Section" "sponsors") "Params.shortname" .) 0 -}}
{{ partial "sponsor/medium.html" $sponsor }}
{{- end -}}
From 83b6c0b5528a26e42a81ee26dfdbde711b1f097c Mon Sep 17 00:00:00 2001
From: "ben.carr"
+
{{- .Title }} - {{ replaceRE (print "^" .Title "(?: is)? (.*)") "$1" .Params.description -}}
@@ -6,4 +6,3 @@ {{- $url := urls.Parse .Params.link -}} {{ if findRE "^www\\.(.*)" $url.Host }}{{ $url.Host }}{{else}}{{ $url.Host | title }}{{ end }}{{ if ne $url.Path "/" }}{{- $url.Path -}}{{- end -}} - \ No newline at end of file From e97e765c454d7812b1d7ed4679dae2935eb9c85a Mon Sep 17 00:00:00 2001 From: elreydetoda <10230166+elreydetoda@users.noreply.github.com> Date: Sun, 23 Oct 2022 11:37:29 -0400 Subject: [PATCH 57/61] removing unintended side effect from --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 768dbce99..f27c2d46b 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,7 @@ baseURL = 'https://www.jupiterbroadcasting.com/' languageCode = 'en-us' title = 'Jupiter Broadcasting' -enableGitInfo = true +# enableGitInfo = true theme = 'jb' From 7a3a8242fa430ad27f3647d912c18ff576ab107e Mon Sep 17 00:00:00 2001 From: chancem