diff --git a/.gitignore b/.gitignore index ba08b01d..081081f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,7 @@ -*~ .vscode -._* +public *.lock *.DS_Store *.swp *.out -*.py[cod] -output +public \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..bf2b6842 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/beautifulhugo"] + path = themes/beautifulhugo + url = https://github.com/halogenica/beautifulhugo.git diff --git a/Makefile b/Makefile index 9c985406..d2af1bbc 100644 --- a/Makefile +++ b/Makefile @@ -1,75 +1,8 @@ -PY?=python3 -PELICAN?=pelican -PELICANOPTS= - -BASEDIR=$(CURDIR) -INPUTDIR=$(BASEDIR)/content -OUTPUTDIR=$(BASEDIR)/output -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 - -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 ssh_upload upload the web site via SSH ' - @echo ' make rsync_upload upload the web site via rsync+ssh ' - @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) +default: + hugo serve: -ifdef PORT - $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -else - $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -endif + hugo -D server -serve-global: -ifdef SERVER - $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b $(SERVER) -else - $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b 0.0.0.0 -endif - - -devserver: -ifdef PORT - $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -else - $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -endif - -publish: - $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) - - -.PHONY: html help clean regenerate serve serve-global devserver publish \ No newline at end of file +clean: + rm -rf public diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 00000000..00e77bd7 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 00000000..2a8906d0 --- /dev/null +++ b/config.toml @@ -0,0 +1,6 @@ +baseURL = "localhost:8080" +languageCode = "en-us" +DateForm = "12-30-2006" +title = "exdatabaseLCPQ" +DefaultContentLanguage = "en" +theme = "beautifulhugo" \ No newline at end of file diff --git a/content/pages/index.html b/content/_index.html similarity index 85% rename from content/pages/index.html rename to content/_index.html index 4bcdbf7e..66b502b0 100644 --- a/content/pages/index.html +++ b/content/_index.html @@ -1,14 +1,11 @@ - - - - Welcome - - - - - - - +--- +title: "Welcome" +date: 2019-08-29 09:00 +draft: false +--- + + + - - +--- +title: "view" +date: 2019-08-29 09:00 +draft: false +--- + + +