initial commit
This commit is contained in:
21
.gitignore
vendored
Normal file
21
.gitignore
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Created by https://www.toptal.com/developers/gitignore/api/hugo
|
||||||
|
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo
|
||||||
|
|
||||||
|
### Hugo ###
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# End of https://www.toptal.com/developers/gitignore/api/hugo
|
||||||
|
|
||||||
|
/node_modules/
|
||||||
20
.prettierrc
Normal file
20
.prettierrc
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json.schemastore.org/prettierrc",
|
||||||
|
"bracketSameLine": true,
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"endOfLine": "lf",
|
||||||
|
"goTemplateBracketSpacing": true,
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["*.html", "*.gotmpl"],
|
||||||
|
"options": {
|
||||||
|
"parser": "go-template",
|
||||||
|
"bracketSameLine": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"plugins": ["prettier-plugin-toml", "prettier-plugin-go-template"],
|
||||||
|
"singleQuote": true,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"useTabs": false
|
||||||
|
}
|
||||||
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
+++
|
||||||
|
date = '{{ .Date }}'
|
||||||
|
draft = true
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
+++
|
||||||
2
assets/css/main.css
Normal file
2
assets/css/main.css
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
@import "tailwindcss";
|
||||||
|
@source "hugo_stats.json";
|
||||||
0
config/_default/build.toml
Normal file
0
config/_default/build.toml
Normal file
5
content/_index.md
Normal file
5
content/_index.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: Stuttgart Bike Night
|
||||||
|
subtitle: Donnerstags 19 Uhr
|
||||||
|
location: Flora & Fauna
|
||||||
|
---
|
||||||
3
go.mod
Normal file
3
go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module spahl.ddns.net/stuttgartbikenight/webpage
|
||||||
|
|
||||||
|
go 1.25.3
|
||||||
21
hugo.toml
Normal file
21
hugo.toml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
baseURL = 'https://stuttgartbikenight.de'
|
||||||
|
languageCode = 'de-de'
|
||||||
|
title = 'Stuttgart Bike Night'
|
||||||
|
|
||||||
|
[build]
|
||||||
|
[build.buildStats]
|
||||||
|
enable = true
|
||||||
|
[[build.cachebusters]]
|
||||||
|
source = 'assets/notwatching/hugo_stats\.json'
|
||||||
|
target = 'css'
|
||||||
|
[[build.cachebusters]]
|
||||||
|
source = '(postcss|tailwind)\.config\.js'
|
||||||
|
target = 'css'
|
||||||
|
[module]
|
||||||
|
[[module.mounts]]
|
||||||
|
source = 'assets'
|
||||||
|
target = 'assets'
|
||||||
|
[[module.mounts]]
|
||||||
|
disableWatch = true
|
||||||
|
source = 'hugo_stats.json'
|
||||||
|
target = 'assets/notwatching/hugo_stats.json'
|
||||||
16
layouts/_partials/css.html
Normal file
16
layouts/_partials/css.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{{ with resources.Get "css/main.css" }}
|
||||||
|
{{ $opts := dict "minify" (not hugo.IsDevelopment) }}
|
||||||
|
{{ with . | css.TailwindCSS $opts }}
|
||||||
|
{{ if hugo.IsDevelopment }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}" />
|
||||||
|
{{ else }}
|
||||||
|
{{ with . | fingerprint }}
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="{{ .RelPermalink }}"
|
||||||
|
integrity="{{ .Data.Integrity }}"
|
||||||
|
crossorigin="anonymous" />
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
0
layouts/_partials/footer.html
Normal file
0
layouts/_partials/footer.html
Normal file
5
layouts/_partials/head.html
Normal file
5
layouts/_partials/head.html
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
{{ with (templates.Defer (dict "key" "global")) }}
|
||||||
|
{{ partial "css.html" . }}
|
||||||
|
{{ end }}
|
||||||
16
layouts/_partials/header.html
Normal file
16
layouts/_partials/header.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<div class="min-h-[148px]"></div>
|
||||||
|
<header class="fixed inset-x-0 z-100">
|
||||||
|
<div
|
||||||
|
id="menu-blur"
|
||||||
|
class="absolute opacity-0 inset-x-0 top-0 h-full backdrop-blur-2xl shadow-2xl"
|
||||||
|
role="presentation"
|
||||||
|
tab-index="-1"></div>
|
||||||
|
<div
|
||||||
|
class="relative m-auto leading-7 max-w-7xl px-6 sm:px-14 md:px-25 lg:px-32">
|
||||||
|
<nav class="flex items-center py-6 pr-2 md:pr-4 pb-[3px] pl-0">
|
||||||
|
<a href="{{ "/" | relURL }}" class="text-base font-medium"
|
||||||
|
>{{ .Site.Title }}</a
|
||||||
|
>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
25
layouts/baseof.html
Normal file
25
layouts/baseof.html
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="{{ site.LanguageCode }}">
|
||||||
|
<head>
|
||||||
|
{{ block "title" . }}
|
||||||
|
<title>
|
||||||
|
{{ if .IsHome }}
|
||||||
|
{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }}- {{ . }}{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Title }} ::
|
||||||
|
{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }}- {{ . }}{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</title>
|
||||||
|
{{ end }}
|
||||||
|
{{ partial "head.html" . }}
|
||||||
|
</head>
|
||||||
|
<body
|
||||||
|
class="flex flex-col h-screen m-auto leading-7 max-w-7xl px-6 sm:px-14 md:px-24 lg:px-32 text-lg bg-white text-neutral-900 dark:bg-neutral-800 dark:text-white scrollbar-thin scrollbar-track-neutral-200 scrollbar-thumb-neutral-400 dark:scrollbar-track-neutral-800 dark:scrollbar-thumb-neutral-600">
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
<main>
|
||||||
|
{{ block "main" . }}
|
||||||
|
{{ end }}
|
||||||
|
</main>
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
3
layouts/home.html
Normal file
3
layouts/home.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ end }}
|
||||||
4
mise.toml
Normal file
4
mise.toml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[tools]
|
||||||
|
hugo = "latest"
|
||||||
|
go = "1.25.3"
|
||||||
|
node = "latest"
|
||||||
1209
package-lock.json
generated
Normal file
1209
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
9
package.json
Normal file
9
package.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"devDependencies": {
|
||||||
|
"@tailwindcss/cli": "^4.1.16",
|
||||||
|
"prettier": "3.6.2",
|
||||||
|
"prettier-plugin-go-template": "^0.0.15",
|
||||||
|
"prettier-plugin-toml": "^2.0.6",
|
||||||
|
"tailwindcss": "^4.1.16"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user