Static placeholder site for TAI

This commit is contained in:
Señor Rolando 2023-12-13 18:09:07 +01:00
commit 1bd6b674bc
8 changed files with 112 additions and 0 deletions

2
.env_sample Normal file
View file

@ -0,0 +1,2 @@
# -*- mode: shell-script -*-
export SR_DEPLOY_TARGET=remote-username@remote-hostname:remote-path

17
.gitignore vendored Normal file
View file

@ -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

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "themes/hermit-v2"]
path = themes/hermit-v2
url = https://github.com/1bl4z3r/hermit-V2

17
Makefile Normal file
View file

@ -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

23
README.md Executable file
View file

@ -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.

5
archetypes/default.md Normal file
View file

@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

44
hugo.toml Normal file
View file

@ -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"]

1
themes/hermit-v2 Submodule

@ -0,0 +1 @@
Subproject commit c65e39445f600b42ceefea7adf08ceedf5faddc4