Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ permissions:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
# concurrency:
# group: "pages"
# cancel-in-progress: false

jobs:
deploy:
Expand All @@ -30,3 +30,4 @@ jobs:
id-token: "write"
with:
settings: "publishconf.py"
requirements: "pelican[markdown]"
5 changes: 5 additions & 0 deletions content/first-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Title: First Post
Date: 2025-03-26 11:51
Category: Annoucment

Some great stuff.
Empty file added output/.gitkeep
Empty file.
35 changes: 35 additions & 0 deletions pelicanconf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
AUTHOR = 'SM'
SITENAME = 'SM Blog'
SITEURL = ""

PATH = "content"

TIMEZONE = 'Europe/Dublin'

DEFAULT_LANG = 'en'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
LINKS = (
("Pelican", "https://getpelican.com/"),
("Python.org", "https://www.python.org/"),
("Jinja2", "https://palletsprojects.com/p/jinja/"),
("You can modify those links in your config file", "#"),
)

# Social widget
SOCIAL = (
("You can add links in your config file", "#"),
("Another social link", "#"),
)

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
22 changes: 22 additions & 0 deletions publishconf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.

import os
import sys

sys.path.append(os.curdir)
from pelicanconf import *

# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = "https://solarmonitor.github.io/blog"
RELATIVE_URLS = False

FEED_ALL_ATOM = "feeds/all.atom.xml"
CATEGORY_FEED_ATOM = "feeds/{slug}.atom.xml"

DELETE_OUTPUT_DIRECTORY = True

# Following items are often useful when publishing

# DISQUS_SITENAME = ""
# GOOGLE_ANALYTICS = ""
Loading