Skip to content

Commit 67ce4fd

Browse files
committed
Add static pages to worflow
1 parent d06ae2d commit 67ce4fd

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/pelican.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
- name: Run custom redirect script
4040
run: python replace_index_with_redirect.py
4141

42+
- name: Check generated output structure
43+
run: find output
44+
4245
- name: Create CNAME file
4346
run: echo "petermortimer.de" > output/CNAME
4447

publishconf.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# -*- coding: utf-8 -*- #
33
from __future__ import unicode_literals
44

5-
# This file is only used if you use `make publish` or
6-
# explicitly specify it as your config file.
7-
85
import os
96
import sys
107
sys.path.append(os.curdir)
@@ -20,9 +17,7 @@
2017
DELETE_OUTPUT_DIRECTORY = False
2118
LOAD_CONTENT_CACHE = False
2219

23-
# one of the static pages should appear as root of the page instead
24-
# of the blog (check the pelican docs for the settings here:
25-
# https://docs.getpelican.com/en/latest/settings.html)
20+
# Paths and URLs for articles (blog posts)
2621
ARTICLE_URL = 'blog/{slug}.html'
2722
ARTICLE_SAVE_AS = 'blog/{slug}.html'
2823
CATEGORY_URL = 'blog/category/{slug}.html'
@@ -31,7 +26,11 @@
3126
TAG_SAVE_AS = 'blog/tag/{slug}.html'
3227
INDEX_SAVE_AS = 'blog/index.html'
3328

34-
# Following items are often useful when publishing
29+
# ✅ Add these lines to ensure static pages (e.g. about.md) are built
30+
PAGE_PATHS = ['pages']
31+
PAGE_URL = '{slug}.html'
32+
PAGE_SAVE_AS = '{slug}.html'
3533

36-
#DISQUS_SITENAME = ""
37-
#GOOGLE_ANALYTICS = ""
34+
# Optional: turn on plugins, analytics, etc.
35+
# DISQUS_SITENAME = ""
36+
# GOOGLE_ANALYTICS = ""

0 commit comments

Comments
 (0)