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

Commit 4a7c519

Browse files
authored
Merge pull request #13 from kjaymiller/jm-add-render-engine
Build Site with Render Engine
2 parents e8d8791 + 469265d commit 4a7c519

File tree

16 files changed

+1440
-29
lines changed

16 files changed

+1440
-29
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,7 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130-
.direnv
130+
.direnv
131+
node_modules
132+
.envrc
133+
output

app/__init__.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from render_engine.site import Site
2+
from render_engine.blog import Blog
3+
from render_engine.page import Page
4+
5+
6+
class Site(Site):
7+
output_path = 'output'
8+
site_vars: dict = {
9+
"SITE_TITLE": "Python Community News",
10+
"SITE_URL": "https://pythoncommunitynews.com"
11+
}
12+
13+
if __name__ == '__main__':
14+
site = Site(static="static")
15+
16+
@site.render_page
17+
class index(Page):
18+
template = 'index.html'
19+
20+
@site.render_collection
21+
class archive(Blog):
22+
has_archive = True
23+
output_path = './'
24+
content_path = './app/content'
25+
template = 'new_post.html'
26+
archive_template: str = 'archive.html'

app/content/2022-08-26.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,51 @@
11
---
22
title: Weekly Community News - 2022-08-26
33
date: 2022-08-26 15:00
4-
tags:
4+
tags: industry, conferences, security
5+
github: https://github.com/kjaymiller/Python-Community-News/blob/main/app/content/2022-08-26.md
56
---
67

78

8-
# Heroku ends free tier
9+
<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

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

1215
URL: https://blog.heroku.com/next-chapter
1316

1417
Heroku is ending its free tier and plans to remove "inactive" accounts.
1518

1619

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

2123
URL: https://twitter.com/pypi/status/1562442188285308929
2224

2325
A phishing attack has targeted maintainers of projects hosted on https://pypi.org. This attack comes less than two months after PyPI [announced a plan](https://twitter.com/pypi/status/1545455297388584960) to require 2FA for "critical" packages. The PyPI admins have taken down malicious releases including several "typosquat" packages, and temporarily frozen affected maintainer accounts. Additionally, they have extended the [2FA security key giveaway](https://pypi.org/security-key-giveaway/) to include eligible maintainers that already have TOTP-based 2FA enabled on their accounts. At the end of the Twitter thread, the PyPI team reminds users to contact `[email protected]` if they believe they have been targeted by a phishing attack.
2426

2527

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

3031
URL: https://spectrum.ieee.org/top-programming-languages-2022
3132

3233
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)
3334

34-
<!-- 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. -->
35-
36-
37-
# KiwiPy Talks are Now Available
38-
35+
### KiwiPy Talks are Now Available
3936
<small>Submitted by: [kjaymiller](https://api.github.com/users/kjaymiller) on 2022-08-26T15:49:42Z</small>
4037

4138
You can now watch the KiwiPy talks on YouTube!
4239

40+
## Upcoming Conferences and CFPs
41+
### Open CFPs
42+
- [PyCon PL (Poland)](https://pl.pycon.org/2022/en/agenda/) (Closes September 2nd)
43+
- [PyJamas (Online)](https://pyjamas.live/cfp/)
4344

44-
<!-- 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. -->
45+
### September
46+
- [PyCon APAC](https://tw.pycon.org/2022/en-us)
47+
- [PyBay](https://pybay.com)
4548

49+
### October
50+
- [Pycon Ghana](https://gh.pycon.org)
51+
- [DjangoCon US](https://2022.djangocon.us)

app/templates/new_post.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)