From 1bd6b674bc010c4c9882179f7494828ec5662f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=CC=83or=20Rolando?= Date: Wed, 13 Dec 2023 18:09:07 +0100 Subject: [PATCH] Static placeholder site for TAI --- .env_sample | 2 ++ .gitignore | 17 +++++++++++++++++ .gitmodules | 3 +++ Makefile | 17 +++++++++++++++++ README.md | 23 ++++++++++++++++++++++ archetypes/default.md | 5 +++++ hugo.toml | 44 +++++++++++++++++++++++++++++++++++++++++++ themes/hermit-v2 | 1 + 8 files changed, 112 insertions(+) create mode 100644 .env_sample create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 Makefile create mode 100755 README.md create mode 100644 archetypes/default.md create mode 100644 hugo.toml create mode 160000 themes/hermit-v2 diff --git a/.env_sample b/.env_sample new file mode 100644 index 0000000..ac5c73b --- /dev/null +++ b/.env_sample @@ -0,0 +1,2 @@ +# -*- mode: shell-script -*- +export SR_DEPLOY_TARGET=remote-username@remote-hostname:remote-path diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df2737b --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Deploy target config +.env + +# Generated files by hugo +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# Temporary lock file while building +/.hugo_build.lock + diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f3c5042 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hermit-v2"] + path = themes/hermit-v2 + url = https://github.com/1bl4z3r/hermit-V2 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6aec382 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +serve: + hugo server -D -E -F + +# --minify: works on the final HTML output, not any (CSS, JS) assets +# see https://gohugo.io/hugo-pipes/bundling/ for the latter +# Note: as of mid 2021, '--minify' produces broken HTML. Disabled for now. +build: clean + hugo + +# requires: source .env +deploy: build + rsync -axv --delete --ignore-errors --exclude .DS_Store --exclude .git public/ $(SR_DEPLOY_TARGET) + +clean: + rm -rf public + +.PHONY: serve clean diff --git a/README.md b/README.md new file mode 100755 index 0000000..ca13c2f --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Homepage at sr-rolando.com + +## Setup + +```console +$ git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke +``` + +`make`-Targets: + +* `make serve`: build locally and start development server +* `make deploy`: build and deploy (via `rsync`) +* `make clean`: remove the `public` folder that might have been created + +## Neue Folge anlegen + +```sh +hugo new post/`date '+%Y-%m-%d'`-title.md +``` + +## Related + +Uses the [Ananke](https://github.com/theNewDynamic/gohugo-theme-ananke) theme. diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..1dc46de --- /dev/null +++ b/hugo.toml @@ -0,0 +1,44 @@ +baseURL = 'https://the-art-institute.eu/' +languageCode = 'en-gb' +defaultContentLanguage = 'de' +title = 'The Art Institute' +theme = 'hermit-v2' +# enableGitInfo = true +pygmentsCodefences = true +pygmentsUseClasses = true +# hasCJKLanguage = true # If Chinese/Japanese/Korean is your main content language, enable this to make wordCount works right. + +disableKinds = ["RSS", "sitemap", "section"] + +enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/functions/emojify/ + +[author] + name = 'Nadine' + +[params] + dateform = "Jan 2, 2006" + dateformShort = "Jan 2" + dateformNum = "2006-01-02" + dateformNumTime = "2006-01-02 15:04 -0700" + + # Metadata mostly used in document's head + # description = "" + # images = [""] + themeColor = "#494f5c" + + homeSubtitle = "Currently closed." + footerCopyright = '' + # bgImg = "" # Homepage background-image URL + + # Prefix of link to the git commit detail page. GitInfo must be enabled. + # gitUrl = "https://github.com/username/repository/commit/" + + # Toggling this option needs to rebuild SCSS, requires Hugo extended version + justifyContent = false # Set "text-align: justify" to `.content`. + + relatedPosts = false # Add a related content section to all single posts page + + code_copy_button = false # Turn on/off the code-copy-button for code-fields + + # Add custom css + # customCSS = ["css/foo.css", "css/bar.css"] diff --git a/themes/hermit-v2 b/themes/hermit-v2 new file mode 160000 index 0000000..c65e394 --- /dev/null +++ b/themes/hermit-v2 @@ -0,0 +1 @@ +Subproject commit c65e39445f600b42ceefea7adf08ceedf5faddc4