Skip to content

Commit

Permalink
Homepage: Drop stale PA Post promo and promote PA Local
Browse files Browse the repository at this point in the history
Also drop the stale Talk of the Town box from State College's frontpage and rename variables to be clearer.
  • Loading branch information
earthboundkid committed Jan 15, 2025
1 parent e148c7b commit 1b95811
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
10 changes: 5 additions & 5 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ newsletter-hed = "Sign up for our newsletters"
newsletter-dek = "Get the top stories and best investigative journalism from across Pa. with our free newsletters."


callout-hed = "Latest From Our Daily Newsletter"
signup-hed = "Start your morning with PA Post"
signup-dek = "We help you understand what's happening across Pennsylvania - in less than five minutes a day."
callout-hed = "Good News from Pennsylvania"
signup-hed = "A weekly dose of positive news"
signup-dek = "A fresh look at the incredible people, beautiful places, and delicious food Pennsylvania has to offer."
signup-cta = "Sign up"
signup-image = "2021/06/01gc-4k5b-cx91-fppc.jpeg"
signup-field = "newsletter/papost-hidden.html"
signup-image = "2022/02/01h0-cwm9-x8wv-b6tc.jpeg"
signup-field = "newsletter/palocal-hidden.html"

+++
5 changes: 2 additions & 3 deletions layouts/partials/tw/frontpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,9 @@ <h2 class="text-2xl font-extrabold">
)
}}
{{ end }}
{{ if .edNewsletter }}
{{ $pages := .newsletter }}
{{ if .showNewsletterCallout }}
{{ $pages := .newsletterCalloutRiver }}
{{ partial "tw/list-callout-newsletter.html" (dict

"calloutHed" (page.Param "callout-hed")
"signupHed" (page.Param "signup-hed")
"signupDek" (page.Param "signup-dek")
Expand Down
8 changes: 4 additions & 4 deletions layouts/partials/tw/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
{{ $edInvestigations := partial "helper/get-hp-picks" "edInvestigations" }}
{{ $edImpact := partial "helper/get-hp-picks" "edImpact" }}
{{ $featuredTopics := "topics/the-capitol/_index.md" }}
{{ $newsletter := site.GetPage "/newsletters/papost/_index.md" }}

{{ $edNewsletter := "tw/list-callout-newsletter.html" }}
{{ $showNewsletterCallout := true }}
{{ $newsletterCalloutRiver := site.GetPage "topics/PA Local/_index.md" }}

{{ $bureau := site.GetPage "/statecollege/" }}
{{ $paPost := site.GetPage "/newsletters/papost" }}
Expand All @@ -44,8 +44,8 @@ <h1 class="sr-only">{{ .Title }}</h1>
"edInvestigations" $edInvestigations
"edImpact" $edImpact

"edNewsletter" $edNewsletter
"newsletter" $newsletter
"showNewsletterCallout" $showNewsletterCallout
"newsletterCalloutRiver" $newsletterCalloutRiver
"newsletterHed" "Latest From Our Daily Newsletter"
"bureau" $bureau
"river" $river
Expand Down
6 changes: 0 additions & 6 deletions layouts/statecollege/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@

{{ $pinnedStories := partial "helper/get-sc-picks" "topSlots" }}

{{ $newsletter := site.GetPage "/newsletters/talkofthetown/_index.md" }}
{{ $edNewsletter := "tw/list-callout-newsletter-sc.html" }}
{{ $paPost := site.GetPage "/newsletters/talkofthetown" }}
{{ $river := sort $sc.RegularPages ".PublishDate" "desc" }}

{{ $river = $river | complement $featuredStory $pinnedStories $topperStory }}
Expand Down Expand Up @@ -72,9 +69,6 @@
{{ partial "tw/frontpage" (dict
"featuredStories" $featuredStories
"pinnedStories" $pinnedStories
"edNewsletter" $edNewsletter
"newsletter" $newsletter
"newsletterHed" "Latest Talk of the Town"
"river" $river
"riverTitle" $riverTitle
"marginClass" $marginClass
Expand Down

0 comments on commit 1b95811

Please sign in to comment.