From 0ebaab7ddb397112631acc3ae876589d3452894a Mon Sep 17 00:00:00 2001 From: Carter Peterson Date: Wed, 16 Feb 2022 12:36:30 -0500 Subject: [PATCH] initial placeholder site --- .build.yml | 13 +++++++++++++ .gitignore | 1 + archetypes/default.md | 5 +++++ config.yaml | 6 ++++++ content/_index.md | 9 +++++++++ layouts/_default/baseof.html | 21 +++++++++++++++++++++ layouts/_default/index.html | 3 +++ layouts/_default/list.html | 0 layouts/_default/single.html | 3 +++ static/css/style.css | 20 ++++++++++++++++++++ 10 files changed, 81 insertions(+) create mode 100644 .build.yml create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 config.yaml create mode 100644 content/_index.md create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/index.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 static/css/style.css diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..400e1aa --- /dev/null +++ b/.build.yml @@ -0,0 +1,13 @@ +image: alpine/latest +packages: + - hugo +oauth: pages.sr.ht/PAGES:RW +environment: + site: crtr.space +tasks: +- package: | + cd frontend + hugo + tar -C public -cvz . > ../site.tar.gz +- upload: | + acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d298be1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ \ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..26f317f --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..26d56f5 --- /dev/null +++ b/config.yaml @@ -0,0 +1,6 @@ +baseURL: https://crtr.space/ +languageCode: en-us +title: carter + +params: + headerText: crtr.space \ No newline at end of file diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..1afbe41 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,9 @@ +--- +title: "crtr.space homepage" +date: 2022-02-16T11:25:00-05:00 +draft: false +--- + +I am carter peterson and this is my space on the internet. + +This site is intentionally minimal. It has no tracking scripts or external resources and is currently hosted by [sourcehut pages](https://srht.site). \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..d2264d6 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,21 @@ + + + + + + + {{- block "title" . }} + {{ .Site.Title }} + {{ end -}} + + + +
+ {{ .Site.Params.headerText }} +
+
+ {{ block "main" . }} + {{ end }} +
+ + \ No newline at end of file diff --git a/layouts/_default/index.html b/layouts/_default/index.html new file mode 100644 index 0000000..cdb4a08 --- /dev/null +++ b/layouts/_default/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..cdb4a08 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..0336dc9 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,20 @@ +html { + margin: 0; + padding: 0; + font-family: sans-serif; +} + +body { + width: 100%; + max-width: 980px; + margin: 0 auto; +} + +header { + padding-top: 10px; + font-size: x-large; +} + +main { + +} \ No newline at end of file -- 2.38.5