From 03c62b630fd92a5b32920be4ee33453a3c8e8b3c Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 9 Jul 2021 22:25:00 -0400 Subject: [PATCH 1/1] init --- README.md | 22 ++++++++++++++++++++++ pinopress | 21 +++++++++++++++++++++ templates/foot.template.html | 2 ++ templates/head.template.html | 6 ++++++ 4 files changed, 51 insertions(+) create mode 100644 README.md create mode 100755 pinopress create mode 100644 templates/foot.template.html create mode 100644 templates/head.template.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..b5b2266 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# Pinopress + +**pinopress** is a modular makefile based static blog generator. that means you run the build script once and every page is generated beforehand. + +built in features include markdown generated blog articles, and a rss feed. + +## templates + +templates are html snippets that you can customize. these templates are then pieced together to form the final html page. **pinopress** makes extensive use of **gnu envsubst** so in each template, you can use variables that will be substituted in on build. + +## modules + +these have not been implemented yet, but modules are shellscripts that are called during the build process that can add extra features. + +here are some potential ideas for modules: +- [ ] syntax highlight for code blocks +- [ ] blog average time to read + +## pinopress flavored markdown + +pinopress articles are written in an enhanced version of markdown. specification coming soon. + diff --git a/pinopress b/pinopress new file mode 100755 index 0000000..d056dab --- /dev/null +++ b/pinopress @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +SITEURL := https://blog.danieliu.xyz + +.PHONY: help build clean + +# internal variables +TEMPLATE_DIR := templates +BUILD_DIR := build +ARTICLE_DIR := articles + +ARTICLE_LIST := $(basename $(shell ls $(ARTICLE_DIR))) + +help: + @echo 'pinopress help|build|clean' + +build: + @echo 'building...' + +clean: + @echo 'cleaning...' diff --git a/templates/foot.template.html b/templates/foot.template.html new file mode 100644 index 0000000..5e0ea02 --- /dev/null +++ b/templates/foot.template.html @@ -0,0 +1,2 @@ + diff --git a/templates/head.template.html b/templates/head.template.html new file mode 100644 index 0000000..81d7289 --- /dev/null +++ b/templates/head.template.html @@ -0,0 +1,6 @@ + + + + + + -- 2.20.1