Compare commits
4 commits
main
...
feat/hugo-
| Author | SHA1 | Date | |
|---|---|---|---|
| 267dc4c3e1 | |||
| febd17bf78 | |||
| ffce3b232c | |||
| 1551503e68 |
7 changed files with 29 additions and 31 deletions
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: hugomods/hugo:exts-0.148.1
|
image: hugomods/hugo:exts-0.158.0
|
||||||
steps:
|
steps:
|
||||||
- name: Pipeline info
|
- name: Pipeline info
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,8 @@ Please note, that the website should be re-deployed at least daily to update the
|
||||||
### Add Pages
|
### Add Pages
|
||||||
|
|
||||||
To run a local version, just install HUGO by following the [instructions](https://gohugo.io/installation/) for your operating system.
|
To run a local version, just install HUGO by following the [instructions](https://gohugo.io/installation/) for your operating system.
|
||||||
|
Note that you also need to install the [Dart Sass compiler](https://sass-lang.com/dart-sass/).
|
||||||
|
|
||||||
To build the website and run a development webserver, execute:
|
To build the website and run a development webserver, execute:
|
||||||
```shell
|
```shell
|
||||||
hugo server
|
hugo server
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
baseURL = 'https://hamburg.ccc.de/'
|
baseURL = 'https://hamburg.ccc.de/'
|
||||||
languageCode = 'de-de'
|
locale = 'de-de'
|
||||||
defaultContentLanguage = 'de'
|
defaultContentLanguage = 'de'
|
||||||
timeZone = 'Europe/Berlin'
|
timeZone = 'Europe/Berlin'
|
||||||
title = 'CCC Hansestadt Hamburg e.V.'
|
title = 'CCC Hansestadt Hamburg e.V.'
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
@use "sass:map";
|
||||||
|
@use "sass:math";
|
||||||
|
|
||||||
$roomstate_color_unknown: #dda218;
|
$roomstate_color_unknown: #dda218;
|
||||||
$roomstate_color_open: var(--ins-color);
|
$roomstate_color_open: var(--ins-color);
|
||||||
$roomstate_color_closed: var(--del-color);
|
$roomstate_color_closed: var(--del-color);
|
||||||
|
|
@ -164,7 +167,12 @@ body>main {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
margin: 0.5rem 1rem;
|
margin: 0.5rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -202,7 +210,7 @@ body>main {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
// (250px - 2*var(--grid-spacing-horizontal)) * 3/4
|
// (250px - 2*var(--grid-spacing-horizontal)) * 3/4
|
||||||
max-height: (222px * 3/4);
|
max-height: math.div(222px * 3, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2*250px + 2*var(--spacing) + 1px
|
// 2*250px + 2*var(--spacing) + 1px
|
||||||
|
|
@ -211,7 +219,7 @@ body>main {
|
||||||
|
|
||||||
img.groups-img {
|
img.groups-img {
|
||||||
// (150px - 2*var(--grid-spacing-horizontal)) * 3/4
|
// (150px - 2*var(--grid-spacing-horizontal)) * 3/4
|
||||||
max-height: (122px*3/4);
|
max-height: math.div(122px*3, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -221,7 +229,7 @@ body>main {
|
||||||
|
|
||||||
img.groups-img {
|
img.groups-img {
|
||||||
// (350px - 2*var(--grid-spacing-horizontal)) * 3/4
|
// (350px - 2*var(--grid-spacing-horizontal)) * 3/4
|
||||||
max-height: (322px*3/4);
|
max-height: math.div(322px*3, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2*350px + 2*var(--spacing) + 1px
|
// 2*350px + 2*var(--spacing) + 1px
|
||||||
|
|
@ -230,7 +238,7 @@ body>main {
|
||||||
|
|
||||||
img.groups-img {
|
img.groups-img {
|
||||||
// (250px - 2*var(--grid-spacing-horizontal)) * 3/4
|
// (250px - 2*var(--grid-spacing-horizontal)) * 3/4
|
||||||
max-height: (222px*3/4);
|
max-height: math.div(222px*3, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -295,7 +303,7 @@ body>main {
|
||||||
// When the header content doesn't display nicely anymore, switch to mobile mode.
|
// When the header content doesn't display nicely anymore, switch to mobile mode.
|
||||||
@import "../pico-1.5.11/scss/variables";
|
@import "../pico-1.5.11/scss/variables";
|
||||||
|
|
||||||
@media (max-width: map-get($breakpoints, md)) {
|
@media (max-width: map.get($breakpoints, md)) {
|
||||||
.hamburger-button {
|
.hamburger-button {
|
||||||
display: unset;
|
display: unset;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -375,15 +383,15 @@ body>main {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use the media queries, which we need, from here:
|
// Use the media queries, which we need, from here:
|
||||||
@if map-get($breakpoints, "sm") {
|
@if map.get($breakpoints, "sm") {
|
||||||
@media (min-width: map-get($breakpoints, "sm")) {
|
@media (min-width: map.get($breakpoints, "sm")) {
|
||||||
ul {
|
ul {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-nav {
|
.main-nav {
|
||||||
max-width: map-get($viewports, "sm");
|
max-width: map.get($viewports, "sm");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
|
|
||||||
{{- $authorEmail := "" }}
|
{{- $authorEmail := "" }}
|
||||||
{{- with site.Params.author }}
|
{{- with site.Params.author }}
|
||||||
{{- if reflect.IsMap . }}
|
{{- if reflect.IsMap . }}
|
||||||
|
|
@ -6,14 +5,8 @@
|
||||||
{{- $authorEmail = . }}
|
{{- $authorEmail = . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
|
||||||
{{- with site.Author.email }}
|
|
||||||
{{- $authorEmail = . }}
|
|
||||||
{{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
|
|
||||||
{{- $authorName := "" }}
|
{{- $authorName := "" }}
|
||||||
{{- with site.Params.author }}
|
{{- with site.Params.author }}
|
||||||
{{- if reflect.IsMap . }}
|
{{- if reflect.IsMap . }}
|
||||||
|
|
@ -23,11 +16,6 @@
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $authorName = . }}
|
{{- $authorName = . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
|
||||||
{{- with site.Author.name }}
|
|
||||||
{{- $authorName = . }}
|
|
||||||
{{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $pctx := . }}
|
{{- $pctx := . }}
|
||||||
|
|
@ -48,12 +36,12 @@
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo</generator>
|
||||||
{{ with $authorEmail }}
|
<language>{{ site.Language.Locale }}</language>{{ with $authorEmail }}
|
||||||
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
|
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
|
||||||
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
|
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
|
||||||
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
|
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
|
||||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||||
{{- with .OutputFormats.Get "RSS" }}
|
{{- with .OutputFormats.Get "RSS" }}
|
||||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -69,7 +57,7 @@
|
||||||
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
|
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ .Content | html }}</description>
|
<description>{{ .Content | transform.XMLEscape | safeHTML }}</description>
|
||||||
</item>
|
</item>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</channel>
|
</channel>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{{- $cssOptionsMain := dict "transpiler" "libsass" "targetPath" "css/style.css" -}}
|
{{- $cssOptionsMain := dict "transpiler" "dartsass" "targetPath" "css/style.css" -}}
|
||||||
{{- $cssOptionsPico := dict "transpiler" "libsass" "targetPath" "css/pico.css" -}}
|
{{- $cssOptionsPico := dict "transpiler" "dartsass" "targetPath" "css/pico.css" -}}
|
||||||
{{- $jsResources := resources.Match "js/*.js" }}
|
{{- $jsResources := resources.Match "js/*.js" }}
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{{- index .Site.Data "calendar.json" }}
|
{{- index hugo.Data "calendar.json" }}
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{- range first 7 (sort $.Site.Data.calendar "dtstart" ) }}
|
{{- range first 7 (sort hugo.Data.calendar "dtstart" ) }}
|
||||||
{{- if eq ._type "vevent"}}
|
{{- if eq ._type "vevent"}}
|
||||||
<tr>
|
<tr>
|
||||||
{{- $start := time .dtstart }}
|
{{- $start := time .dtstart }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue