Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit 469265d

Browse files
committed
add github support and styling
1 parent e2e6081 commit 469265d

File tree

7 files changed

+42
-50
lines changed

7 files changed

+42
-50
lines changed

app/content/2022-08-26.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: Weekly Community News - 2022-08-26
33
date: 2022-08-26 15:00
44
tags: industry, conferences, security
5+
github: https://github.com/kjaymiller/Python-Community-News/blob/main/app/content/2022-08-26.md
56
---
67

78

89
<iframe width="560" height="315" src="https://www.youtube.com/embed/_xyKDQJxNOg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
910

1011
## Topics
1112
### Heroku ends free tier
12-
1313
<small>Submitted by: [jonafato](https://api.github.com/users/jonafato) on 2022-08-26T17:47:10Z</small>
1414

1515
URL: https://blog.heroku.com/next-chapter
@@ -18,7 +18,6 @@ Heroku is ending its free tier and plans to remove "inactive" accounts.
1818

1919

2020
### Phishing attack targeting PyPI users
21-
2221
<small>Submitted by: [jonafato](https://api.github.com/users/jonafato) on 2022-08-26T17:19:18Z</small>
2322

2423
URL: https://twitter.com/pypi/status/1562442188285308929
@@ -27,18 +26,13 @@ A phishing attack has targeted maintainers of projects hosted on https://pypi.or
2726

2827

2928
### Python’s still No. 1, but employers love to see SQL skills
30-
3129
<small>Submitted by: [kjaymiller](https://api.github.com/users/kjaymiller) on 2022-08-26T15:58:45Z</small>
3230

3331
URL: https://spectrum.ieee.org/top-programming-languages-2022
3432

3533
Python's position w/e but I would like to learn more about why it's not as appealing as SQL/Java in job hunt, especially when we have solid ORMs. (The Java thing is just legacy IMHO)
3634

37-
<!-- Edit the body of your new issue then click the ✓ "Create Issue" button in the top right of the editor. The first line will be the issue title. Assignees and Labels follow after a blank line. Leave an empty line before beginning the body of the issue. -->
38-
39-
4035
### KiwiPy Talks are Now Available
41-
4236
<small>Submitted by: [kjaymiller](https://api.github.com/users/kjaymiller) on 2022-08-26T15:49:42Z</small>
4337

4438
You can now watch the KiwiPy talks on YouTube!

static/tailwind.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/archive.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{% extends 'base.html' %}
22
{% block content %}
3-
{% for post in posts %}
3+
<div class="w-1/3">
4+
{% for post in pages %}
45
<h2><a href="{{post.url}}">{{ post.title }}</a></h2>
5-
</div>
6-
{% endfor %}
6+
{% endfor %}
7+
</div>
78
{% endblock content %}

templates/base.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,24 @@
1010
</head>
1111
<body>
1212
<header class="bg-blue-500 p-5">
13-
<div class="flex text-slate-100 items-baseline">
14-
<h1 class="text-3xl font-black">{{SITE_TITLE}}</h1>
15-
<nav class="w- flex justify-around">
16-
<h4 class="mx-2 hover:underline"><a href="/">Home</a><h4>
13+
<div class="flex justify-between text-slate-100 items-baseline">
14+
<h1 class="text-2xl font-bold"><a href="/">{{SITE_TITLE}}</a></h1>
15+
<nav class="flex justify-around">
1716
<h4 class="mx-2 hover:underline"><a href="https://youtube.com/c/kjaymiller">Youtube</a></h4>
1817
<h4 class="mx-2 hover:underline"><a href="https://github.com/kjaymiller/Python-Community-News">Github</a></h4>
1918
<h4 class="mx-2 hover:underline"><a href="/archive">Archive</a></h4>
2019
</nav>
2120
</div>
2221
</header>
23-
<section class="container px-2">
22+
<section class="md:mx-auto my-12 container px-2">
2423
{% block content %}
2524
{% endblock %}
2625
</section>
27-
<footer class="py-3 bg-slate-400 font-thin text-sm flex justify-around">
28-
<h4>{{SITE_TITLE}}</h4>
29-
<h4>Made with <a class="hover:underline" href="https://github.com/kjaymiller/render_engine">Render Engine</a></h4>
30-
<h4><a class="hover:underline" href="https://github.com/kjaymiller/Python-Community-News/main/LICENSE.md" MIT Licensed</a></h4>
31-
<h4><a class="hover:underline" href="https://github.com/kjaymiller/Python-Commuunity-News">Github</a></h4>
26+
<footer class="absolute bottom-0 w-full text-slate-50 py-3 bg-slate-400 font-thin text-sm flex justify-around">
27+
<h4 class="text-slate-50">{{SITE_TITLE}}</h4>
28+
<h4 class="text-slate-50">Made with <a class="hover:underline" href="https://github.com/kjaymiller/render_engine">Render Engine</a></h4>
29+
<h4 class="text-slate-50"><a class="hover:underline" href="https://github.com/kjaymiller/Python-Community-News/main/LICENSE.md" MIT Licensed</a></h4>
30+
<h4 class="text-slate-50"><a class="hover:underline" href="https://github.com/kjaymiller/Python-Commuunity-News">Github</a></h4>
3231
</footer>
3332
</body>
3433
</html>

templates/content_gen/episode_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Weekly Community News - {{date}}
33
date: {{date}}
44
tags: {{tags}}
5+
github: https://github.com/kjaymiller/Python-Community-News/blob/main/app/content/{{date}}.md
56
---
67

78
{% for issue in issues %}

templates/index.html

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
11
{% extends 'base.html' %}
22

33
{% block content %}
4-
<div class="m-5 flex justify-center items-center">
5-
<img class="rounded-lg" src="static/img/logo.jpg">
6-
<h1 class="font-black text-5xl mx-3">The latest news around the Python community</h1>
4+
<div class="m-5">
5+
<iframe width="100%" height="180" frameborder="no" scrolling="no" seamless src="https://share.transistor.fm/e/python-community-podcast/latest"></iframe>
76
</div>
8-
<div class="">
9-
<div class="my-5">
10-
<h2 class="font-thin text-3xl my-1">Check out the show!</h2>
11-
<div class="m-3">
12-
<iframe width="560" height="315" src="https://www.youtube.com/embed/_xyKDQJxNOg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
13-
</div>
7+
<div class="m-5">
8+
<h1 class="font-thin text-3xl my-1">What is {{SITE_TITLE}}?</h1>
9+
<div class="m-5">
10+
<p class="my-3"> {{SITE_TITLE}} is a podcast, livestream, and newsletter that focuses on the <strong>Non-Pipable</strong> news in the Python Community.</p>
11+
<p class="my-3">Join Jon Banafato, experience conference organizer, and Jay Miller, community organizer and advocate, as each week they look at the top stories affecting Pythonistas around the world.</p>
12+
<p class="my-3">You can tune in live every friday at 6pm EST/3pm PST. If you miss us live you can check out the <a class="underline" href="https://pythoncommunitynews.transistor.fm">podcast</a> or watch the <a class="underline" href="https://www.youtube.com/watch?v=_xyKDQJxNOg&list=PLfDBFPSIcChU5ASV-9ysy-oJKDSa1-co9">VODs on Youtube</a>.</p>
13+
</div>
1414
</div>
15-
<div class="my-5">
16-
<h2 class="font-thin text-3xl my-1">Subscribe to our newsletter</h2>
15+
<div class="m-5">
16+
<h2 class="text-xl">Subscribe to our newsletter</h2>
17+
1718
<form
18-
action="https://buttondown.email/api/emails/embed-subscribe/python-community-news"
19-
method="post"
20-
target="popupwindow"
21-
onsubmit="window.open('https://buttondown.email/python-community-news', 'popupwindow')"
22-
class="embeddable-buttondown-form m-3 p-3 border rounded"
23-
>
24-
<label for="bd-email">Enter your email</label>
25-
<input class="border rounded" type="email" name="email" id="bd-email" />
26-
<input class="bg-blue-400 text-blue-700 font-black rounded p-2" type="submit" value="Subscribe" />
27-
<p>
28-
<a href="https://buttondown.email" target="_blank">Powered by Buttondown.</a>
29-
</p>
30-
</form>
31-
</div>
32-
<div class="my-5">
33-
<h1 class="font-thin text-3xl my-1">What is {{SITE_TITLE}}?</h1>
34-
<p class="my-2"> {{SITE_TITLE}} is a podcast, livestream, and newsletter that focuses on the <strong>Non-Pipable</strong> news in the Python Community. <strong>Learn more on our <a class="hover:underline" href="/about">About Page</a>.</strong></p>
19+
action="https://buttondown.email/api/emails/embed-subscribe/python-community-news"
20+
method="post"
21+
target="popupwindow"
22+
onsubmit="window.open('https://buttondown.email/python-community-news', 'popupwindow')"
23+
class="embeddable-buttondown-form m-3 p-3 border rounded"
24+
>
25+
<label for="bd-email">Enter your email</label>
26+
<input class="w-3/4 border rounded" type="email" name="email" id="bd-email" />
27+
<input class="bg-blue-400 text-blue-700 font-black rounded p-2" type="submit" value="Subscribe" />
28+
<p class="text-xs">
29+
<a href="https://buttondown.email" target="_blank">Powered by Buttondown.</a>
30+
</p>
31+
</form>
3532
</div>
3633
</div>
3734
{% endblock content %}

templates/new_post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% block content %}
55
<article class="prose">
6-
<h1 class="title text-4xl font-bold">{{title}}</h1>
6+
<h1 class="title text-2xl font-bold">{{title}}<small class="px-3"><a href="{{github}}">[edit]</a></small></h1>
77
{{content}}
88
</article>
99
{% endblock %}

0 commit comments

Comments
 (0)