Skip to content

Commit

Permalink
Site Redesign in Pelican (#5)
Browse files Browse the repository at this point in the history
site redesign in pelican
  • Loading branch information
kmackenzieii authored Nov 3, 2024
1 parent 43c513b commit b8c21aa
Show file tree
Hide file tree
Showing 23 changed files with 723 additions and 101 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pelican.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Deploy to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
deploy:
uses: "getpelican/pelican/.github/workflows/github_pages.yml@b86383fb28a160eeaf3e13cbf99469a0ed4cfcb2"
permissions:
contents: "read"
pages: "write"
id-token: "write"
with:
settings: "publishconf.py"
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_site/
.sass-cache/
package-lock.json
.cache
node_modules/
.venv
__pycache__/
73 changes: 73 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
PY?=
PELICAN?=pelican
PELICANOPTS=

BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/src
OUTPUTDIR=$(BASEDIR)/_site
CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py


DEBUG ?= 0
ifeq ($(DEBUG), 1)
PELICANOPTS += -D
endif

RELATIVE ?= 0
ifeq ($(RELATIVE), 1)
PELICANOPTS += --relative-urls
endif

SERVER ?= "0.0.0.0"

PORT ?= 0
ifneq ($(PORT), 0)
PELICANOPTS += -p $(PORT)
endif


help:
@echo 'Makefile for a pelican Web site '
@echo ' '
@echo 'Usage: '
@echo ' make html (re)generate the web site '
@echo ' make clean remove the generated files '
@echo ' make regenerate regenerate files upon modification '
@echo ' make publish generate using production settings '
@echo ' make serve [PORT=8000] serve site at http://localhost:8000'
@echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 '
@echo ' make devserver [PORT=8000] serve and regenerate together '
@echo ' make devserver-global regenerate and serve on 0.0.0.0 '
@echo ' make github upload the web site via gh-pages '
@echo ' '
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html '
@echo 'Set the RELATIVE variable to 1 to enable relative urls '
@echo ' '

html:
"$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS)

clean:
[ ! -d "$(OUTPUTDIR)" ] || rm -rf "$(OUTPUTDIR)"

regenerate:
"$(PELICAN)" -r "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS)

serve:
"$(PELICAN)" -l "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS)

serve-global:
"$(PELICAN)" -l "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS) -b $(SERVER)

devserver:
"$(PELICAN)" -lr "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS)

devserver-global:
"$(PELICAN)" -lr "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(CONFFILE)" $(PELICANOPTS) -b 0.0.0.0

publish:
"$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS)


.PHONY: html help clean regenerate serve serve-global devserver devserver-global publish github
67 changes: 0 additions & 67 deletions index.html

This file was deleted.

34 changes: 0 additions & 34 deletions main.css

This file was deleted.

59 changes: 59 additions & 0 deletions pelicanconf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
from zoneinfo import ZoneInfo
from datetime import datetime



AUTHOR = 'Kyle MacKenzie'
SITENAME = 'GenderFree SCD'
SITESUBTITLE = ''
SITEURL = ""

PATH = "src"

TIMEZONE = 'America/New_York'
TODAY = datetime.today().astimezone(ZoneInfo(TIMEZONE))


DEFAULT_LANG = 'en'

THEME = 'theme'
STYLESHEET_URL = '/theme/css/main.css'

# 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 = (
# ("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", "#"),
)

DIRECT_TEMPLATES = (('index'),)

USE_FOLDER_AS_CATEGORY=True

PAGE_URL = "{slug}"
PAGE_SAVE_AS = "{slug}/index.html"

CATEGORY_URL = "{slug}"
CATEGORY_SAVE_AS = "{slug}/index.html"

ARTICLE_URL = 'events/{date:%Y}-{date:%b}-{date:%d}-{slug}/'
ARTICLE_SAVE_AS = "events/{date:%Y}-{date:%b}-{date:%d}-{slug}/index.html"

DEFAULT_DATE_FORMAT = "%A %m/%-d/%Y"

DEFAULT_PAGINATION = False

# 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://www.genderfreescd.com"
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 = ""
22 changes: 22 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
anyio==4.6.2.post1
blinker==1.8.2
docutils==0.21.2
exceptiongroup==1.2.2
feedgenerator==2.1.0
idna==3.10
Jinja2==3.1.4
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==3.0.2
mdurl==0.1.2
ordered-set==4.1.0
pelican==4.10.1
Pygments==2.18.0
python-dateutil==2.9.0.post0
pytz==2024.2
rich==13.9.3
six==1.16.0
sniffio==1.3.1
typing_extensions==4.12.2
Unidecode==1.3.8
watchfiles==0.24.0
10 changes: 10 additions & 0 deletions src/events/class_10-17-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Title: GenderFree SCD
Date: 2024-10-17 19:00:00

Teaching by Kat Dutton to recorded music

- 7:00 -- 7:30 - Advanced SCD
- 7:30 -- 8:00 - Dance lesson for all
- 8:00 -- 9:00 - Social dance for all

**COVID PROTOCOLS**: Because wastewater data is showing levels above 500 copies/mL, we will be *MASK REQUIRED* for this dance. Please wear a well-fitting high-filtration mask over your nose and mouth.
25 changes: 25 additions & 0 deletions src/events/class_10-3-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Title: GenderFree SCD
Date: 2024-10-03-19:00:00

This is a chance for people to learn and practice Scottish Country Dancing together using entirely gender-neutral language.

We will be dancing on **Thursday, October 3rd.**

- 7:00 - Advanced dance for people who already know SCD
- 7:30 - Lesson and practice for ALL
- 8:00 - Social dance, cued to the floor level
- 9:00ish - We're done! Go home, or maybe we grab snacks somewhere down the road?


Cost is **pay-what-you-can, $5 - $20** is the recommended donation.

This week will be recorded music, but hopefully in the future we will be able to pay live musicians a fair wage to play for us! MCing and teaching will be provided by Kat Dutton!

We are dancing in the **NESFA clubhouse**, located at **504 Medford St., Somerville, MA** It's about a third of a mile from the Magoun Sq green line station. There is a parking lot in the back.
The floor is linoleum, so bring clothing and shoes that you are comfortable dancing in.

**COVID PROTOCOLS**: Because wastewater data is showing levels above 500 copies/mL, we will be MASK REQUIRED for this dance. Please wear a well-fitting high-filtration mask over your nose and mouth.

Next dances:
- October 17th
- November 7th
3 changes: 3 additions & 0 deletions src/events/class_11-21-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Title: GenderFree SCD
Date: 2024-11-21 19:00:00

10 changes: 10 additions & 0 deletions src/events/class_11-7-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Title: GenderFree SCD
Date: 2024-11-7 19:00:00

Teaching by Kat Dutton to recorded music

- 7:00 -- 7:30 - Advanced SCD
- 7:30 -- 8:00 - Dance lesson for all
- 8:00 -- 9:00 - Social dance for all

**COVID PROTOCOLS**: Because wastewater data is showing levels above 500 copies/mL, we will be *MASK REQUIRED* for this dance. Please wear a well-fitting high-filtration mask over your nose and mouth.
3 changes: 3 additions & 0 deletions src/events/class_12-4-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Title: GenderFree SCD
Date: 2024-12-04 19:00:00

14 changes: 14 additions & 0 deletions src/pages/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Title: About

**Scottish Country Dancing (SCD)** is high-energy enthusiastic set dancing done by
groups of people. Partners repeat different movements to travel through a set of
people. It’s sociable and fun!

A **GenderFree** dance means that there will be no point where your genders are
referenced on the dance floor, and there are no requirements that people of
certain genders dance in certain spaces or with certain other genders. We will use
the terms “Larks” and “Robins” to refer to specific roles when necessary.

We generally dance on odd Thursdays (1st, 3rd, and 5th) at the [NESFA Clubhouse](https://www.nesfa.org), located at **504 Medford St., Somerville, MA**.

Cost is **pay-what-you-can, $5 - $20** is the recommended donation.
Loading

0 comments on commit b8c21aa

Please sign in to comment.