diff --git a/app.py b/app.py index 267ea53..ce85b99 100644 --- a/app.py +++ b/app.py @@ -209,14 +209,13 @@ class WikiApp(Flask): publication_page_list = self.fetch_all_pages(concepts) updated_cat_list = self.fetch_pages_cat(publication_page_list) projects = updated_cat_list.get('Projects', []) - print(projects) sorted_prj = dict(sorted(projects.items(), key=lambda item: datetime.strptime(item[1]['date'], "%d.%m.%Y" ), reverse=True) ) newsletters = updated_cat_list.get('Newsletters', []) sorted_nl = dict(sorted(newsletters.items(), key=lambda item: datetime.strptime(item[1]['date'], "%d.%m.%Y" ), reverse=True) ) - + most_recent_newsletter = next(iter(sorted_nl.items())) nav_elements = self.get_nav_menu() - return render_template('publications.html', projects=sorted_prj, newsletters=sorted_nl, nav_elements=nav_elements) + return render_template('publications.html', latest_title=most_recent_newsletter[0], projects=sorted_prj, newsletters=sorted_nl, nav_elements=nav_elements) def fetch_meetups(self): meetup_content, page_title = self.fetch_page('Meetups') @@ -359,11 +358,7 @@ class WikiApp(Flask): file_link.unwrap() soup = self.remove_thumbnail_img(soup) - - print(soup) - - - + return soup.prettify() def remove_thumbnail_img(self, soup): diff --git a/static/assets/styles.css b/static/assets/styles.css index 395b71e..521207f 100644 --- a/static/assets/styles.css +++ b/static/assets/styles.css @@ -444,6 +444,22 @@ body { margin-bottom: 5px; } +#subscribe-button { + position: absolute; + bottom: 50px; + right:50px; + font-size: 40px; + text-transform: uppercase; + border: 1px solid red; + padding: 20px; + border-radius: 30px; + cursor: pointer; +} + +.link-blank { + text-decoration: none; + color: black; +} /* hr { border: 0; border-top: thin solid #243588; diff --git a/templates/base.html b/templates/base.html index a3f770b..0b06c45 100644 --- a/templates/base.html +++ b/templates/base.html @@ -30,6 +30,7 @@ {% endblock %} + Subscribe diff --git a/templates/publications.html b/templates/publications.html index 50bc6ed..b15dae8 100644 --- a/templates/publications.html +++ b/templates/publications.html @@ -5,10 +5,10 @@

Newsletter

Currently, we run a bi-weekly newsletter that aims to highlight different types of events and opportunities centered around new media and digital culture in Ireland.

-

The newsletter is released on the 1st and 15th of every month through Substack - You can subcribe through Substack by following this link (subscribe), and receive it directly into your inbox~

+

The newsletter is released on the 1st and 15th of every month through Substack - You can subcribe through Substack by clicking the **SUBSCRIBE** button, and receive it directly into your inbox~

If you wish to sumbit any opportunities, events, residences (...) that would be a good fit for the newsletter -- please feel free to reach out to us by emailing us at conceptnullofficial@gmail.com

***

-

The future plan we have for the platform is that users will have the ability to add their own entries into the upcoming newsletter through the Concept NULL wiki - acting as more of a decentralised noticeboard than just a newsletter. As for now, you can view our work-in-progress newsletter here, as we compile it for our Substack.

+

The future plan we have for the platform is that users will have the ability to add their own entries into the upcoming newsletter through the Concept NULL wiki - acting as more of a decentralised noticeboard than just a newsletter. As for now, you can view our work-in-progress newsletter, as we compile it for our Substack.

***