From 03a5154ddee820f086e684d7521af504fd978ce4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 12 Aug 2023 17:42:09 -0700 Subject: [PATCH] initial commit Signed-off-by: Ariadne Conill --- .hugo_build.lock | 0 .woodpecker.yml | 16 ++++++++++++++++ archetypes/default.md | 6 ++++++ config.toml | 3 +++ layouts/_default/baseof.html | 25 +++++++++++++++++++++++++ layouts/index.html | 3 +++ layouts/partials/sidebar.html | 0 public/categories/index.xml | 10 ++++++++++ public/index.xml | 10 ++++++++++ public/sitemap.xml | 11 +++++++++++ public/tags/index.xml | 10 ++++++++++ 11 files changed, 94 insertions(+) create mode 100644 .hugo_build.lock create mode 100644 .woodpecker.yml create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/sidebar.html create mode 100644 public/categories/index.xml create mode 100644 public/index.xml create mode 100644 public/sitemap.xml create mode 100644 public/tags/index.xml diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..4c29fe5 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,16 @@ +pipeline: + deploy: + image: gitea.treehouse.systems/ariadne/ariadne.space-hugo:latest + commands: + # build the new site + - hugo + + # set up the SSH deployment key and upload the site + - | + mkdir $HOME/.ssh + echo "$SSH_KEY">$HOME/.ssh/id_ecdsa + echo "$SSH_KNOWN_HOSTS">$HOME/.ssh/known_hosts + chown 600 $HOME/.ssh/id_ecdsa + rsync -avHAX public/ treehouse@treehouse.systems:public/ + + secrets: [SSH_KEY, SSH_KNOWN_HOSTS] diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /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 0000000..1d7c819 --- /dev/null +++ b/config.toml @@ -0,0 +1,3 @@ +baseURL = 'http://example.org/' +languageCode = 'en-us' +title = 'My New Hugo Site' diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..78120c9 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,25 @@ + + + + + {{ block "title" . }} + {{ .Site.Title }} + {{ end }} + + + + + + {{ block "opengraph" . }} + {{ end }} + + + +
+ {{ block "main" . }} + {{ end }} +
+ + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..9b75fdb --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +hi +{{ end }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html new file mode 100644 index 0000000..e69de29 diff --git a/public/categories/index.xml b/public/categories/index.xml new file mode 100644 index 0000000..b92677a --- /dev/null +++ b/public/categories/index.xml @@ -0,0 +1,10 @@ + + + + Categories on My New Hugo Site + http://example.org/categories/ + Recent content in Categories on My New Hugo Site + Hugo -- gohugo.io + en-us + + diff --git a/public/index.xml b/public/index.xml new file mode 100644 index 0000000..da90485 --- /dev/null +++ b/public/index.xml @@ -0,0 +1,10 @@ + + + + My New Hugo Site + http://example.org/ + Recent content on My New Hugo Site + Hugo -- gohugo.io + en-us + + diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..45379db --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,11 @@ + + + + http://example.org/categories/ + + http://example.org/ + + http://example.org/tags/ + + diff --git a/public/tags/index.xml b/public/tags/index.xml new file mode 100644 index 0000000..201eda6 --- /dev/null +++ b/public/tags/index.xml @@ -0,0 +1,10 @@ + + + + Tags on My New Hugo Site + http://example.org/tags/ + Recent content in Tags on My New Hugo Site + Hugo -- gohugo.io + en-us + +