diff --git a/Makefile b/Makefile index bb179c8..9a5ad8b 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ all: hugo $(objects) $(output)/%.pdf: $(source)/%.md chromium --temp-profile --headless --disable-gpu --run-all-compositor-stages-before-draw --allow-file-access-from-files --allow-running-insecure-content --print-to-pdf-no-header --print-to-pdf="$@" "public/print/$(notdir $(basename $@))/print.html" -.PHONY : clean hugo +.PHONY : clean hugo deploy clean: rm -rf pdf/ public/ @@ -15,3 +15,7 @@ clean: hugo: hugo mkdir -p pdf + +deploy: + scp -r public/* dario@ghostdub.de:~/www-data/rezepte/ + scp pdf/*.pdf dario@ghostdub.de:~/www-data/rezepte/print/ diff --git a/config.toml b/config.toml index 3a23eb2..b3cd998 100644 --- a/config.toml +++ b/config.toml @@ -1,10 +1,12 @@ -baseURL = "http://example.org/" +baseURL = "https://rezepte.kanojo.de/" languageCode = "en-us" title = "My Cookbook" theme = "cookbook" +sectionPagesMenu = "main" # Print output just creates a special route for a print view [outputs] + home = ["HTML"] page = ["PRINT"] [outputFormats] diff --git a/themes/cookbook/layouts/_default/baseof.html b/themes/cookbook/layouts/_default/baseof.html new file mode 100644 index 0000000..924b72c --- /dev/null +++ b/themes/cookbook/layouts/_default/baseof.html @@ -0,0 +1,8 @@ + + +
+{{ $.Title }}
(PDF)