Skip to content

Commit ee2f945

Browse files
Cleanup following pelican 4.12 (#24)
1 parent 8f22769 commit ee2f945

4 files changed

Lines changed: 3 additions & 22 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Build Pygments CSS
2929
run: pygmentize -S default -f html > theme/static/css/pygment.css
3030
- name: Build site
31-
run: pelican -s publishconf.py
31+
run: pelican -s publishconf.py --fatal warnings
3232
- name: Run tests
3333
run: python test.py
3434
- name: Setup Pages

pelicanconf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ def sponsors(preprocessor: Preprocessor, tag: str, markup: str) -> str:
121121
)
122122

123123
LOG_FILTER = (
124-
# Remove when fixed: https://github.com/getpelican/pelican/pull/3544
125-
(logging.WARN, "Feeds generated without SITEURL set properly may not be valid"),
126124
# Alt tag is explicit in Markdown, so this warning doesn't make sense.
127125
(logging.WARN, "Empty alt attribute for image %s in %s"),
128126
)

theme/templates/base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
{% block head %}
44
{{- super() }}
5-
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}" />
65
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/pygment.css" />
76
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/main.js" defer></script>
87
{%- endblock head %}

theme/templates/page.html

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
{% extends "!simple/page.html" %}
22

3-
{% block content %}
4-
<article>
5-
<header>
6-
<h2>{{ page.title }}</h2>
7-
</header>
8-
{% import 'translations.html' as translations with context %}
9-
{{ translations.translations_for(page) }}
10-
3+
{% block page_content %}
114
{% if page.links %}
125
<div class="aio-post-links">
136
{% for link in page.links %}
@@ -16,14 +9,5 @@ <h2>{{ page.title }}</h2>
169
</div>
1710
{% endif %}
1811

19-
{{ page.content }}
20-
21-
{% if page.modified %}
22-
<footer>
23-
<p>
24-
Last updated: {{ page.locale_modified }}
25-
</p>
26-
</footer>
27-
{% endif %}
28-
</article>
12+
{{ super() }}
2913
{% endblock %}

0 commit comments

Comments
 (0)