From e71fd48975e785316899bbeae130d257267843f5 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 25 May 2023 23:08:18 -0400 Subject: [PATCH] upcomingEvents: Yield header/footer directly for better code readability --- memberPlumbing/upcomingEvents.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/memberPlumbing/upcomingEvents.py b/memberPlumbing/upcomingEvents.py index 5d6b5f0..4ab03ee 100644 --- a/memberPlumbing/upcomingEvents.py +++ b/memberPlumbing/upcomingEvents.py @@ -89,7 +89,8 @@ def generate_post(): ) raise - header = """

+ # header + yield """

Greetings Upper Valley Makers:

We have an exciting list of upcoming classes at the Claremont MakerSpace that we think might interest you.

For most classes and events, CMS MEMBERSHIP IS NOT REQUIRED. That said, members receive a discount on registration and there are some classes/events that are for members only (this will be clearly noted in the event description). @@ -103,15 +104,6 @@ def generate_post():
""" - footer = """
-
- -
Happy Makin’!
-
We are grateful for all of the public support that our 501(c)(3), non-profit organization receives. If you’d like to make a donation,please visit the Support Us page of our website.
-
-""" - - yield header yield format_section( "Upcoming Events", "Events that are currently open for registration.", @@ -133,7 +125,14 @@ def generate_post(): truncate=True, ) - yield (footer) + # footer + yield """
+
+ +
Happy Makin’!
+
We are grateful for all of the public support that our 501(c)(3), non-profit organization receives. If you’d like to make a donation,please visit the Support Us page of our website.
+
+""" def main():