ZHAW Website V. 2.0.0
Build and Deploy Hugo Site / build-and-deploy (push) Failing after 24s

This commit is contained in:
JirR02 committed 2026-10-26 08:15:46 +01:00
1 parent 3e7d2be98b
commit bd519140e5
89 files changed
+1162 -777

No files matched your search

+15 -11
View File
@@ -7,15 +7,19 @@
{{- end -}}
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{- partial "head.html" . -}}
<body dir="{{ .Site.Language.LanguageDirection | default `ltr` }}"
class="{{ if $isWinter }}snow-bg{{ end }}">
{{- partial "navbar.html" . -}}
{{- block "main" . }}{{ end -}}
{{- if or (eq .Site.Params.footer.enable nil) (.Site.Params.footer.enable) }}
{{ partial "footer.html" . }}
{{ end }}
{{ partial "scripts.html" . }}
</body>
<html lang="{{ .Site.LanguageCode | default "en" }}" data-theme="macchiato">
<head>
{{ partial "head.html" . }}
</head>
<body{{ if $isWinter }} class="snow-bg"{{ end }}>
<a href="#main" class="visually-hidden">Skip to content</a>
{{ partial "header.html" . }}
<main id="main" class="site-main">
<div class="wrap{{ if .Site.Params.wideLayout }} wrap--wide{{ end }}">
{{ block "main" . }}{{ end }}
</div>
</main>
{{ partial "footer.html" . }}
<script src="{{ "js/main.js" | relURL }}" defer></script>
</body>
</html>
-98
View File
@@ -1,98 +0,0 @@
{{ $name := .Get "name" | default "popup" }}
{{ $next := .Get "next" }}
<div id="popup-{{ $name }}" class="popup-overlay" data-next-target="{{ $next }}">
<div class="popup-content">
<button type="button" class="popup-close-trigger" aria-label="Close">&times;</button>
<div class="popup-body">
{{ .Inner }}
</div>
</div>
</div>
<style>
.popup-overlay {
display: none;
position: fixed;
inset: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 9999;
justify-content: center;
align-items: center;
backdrop-filter: blur(8px);
}
.popup-overlay.active { display: flex; }
.popup-content {
background: var(--hx-color-dark);
color: var(--hx-color-gray-100);
padding: 2.5rem;
border-radius: 12px;
max-width: 90%;
width: 450px;
position: relative;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.popup-close-trigger {
position: absolute;
top: 0.5rem;
right: 1rem;
background: none;
border: none;
font-size: 2.5rem;
line-height: 1;
cursor: pointer;
color: #999;
transition: color 0.2s;
}
.popup-close-trigger:hover { color: white; }
</style>
<script>
(function() {
// Only run the initialization logic once
if (window.modalScriptLoaded) return;
window.modalScriptLoaded = true;
document.addEventListener('DOMContentLoaded', function() {
// 1. Show the first modal
const initialModal = document.getElementById('popup-first');
if (initialModal) {
setTimeout(() => initialModal.classList.add('active'), 0);
}
// 2. Combined click listener for closing and chaining
document.addEventListener('click', function(e) {
// Check if we clicked the close button OR the dark overlay background
const isCloseBtn = e.target.closest('.popup-close-trigger');
const isOverlay = e.target.classList.contains('popup-overlay');
if (isCloseBtn || isOverlay) {
const currentModal = isCloseBtn ? isCloseBtn.closest('.popup-overlay') : e.target;
const nextName = currentModal.getAttribute('data-next-target');
// Close the current one
currentModal.classList.remove('active');
// Trigger the next one if a "next" name was provided
if (nextName) {
const nextModal = document.getElementById('popup-' + nextName);
if (nextModal) {
// Tiny delay to allow the first one to disappear
setTimeout(() => {
nextModal.classList.add('active');
}, 0);
} else {
console.error("Modal sequence error: Could not find id 'popup-" + nextName + "'");
}
}
}
});
});
})();
</script>
+29
View File
@@ -0,0 +1,29 @@
{{ define "main" }}
<section class="intro">
<p class="intro__eyebrow">visitor@{{ .Site.Params.prompt.host | default "blog" }} $ cat about.txt<span class="cursor">&nbsp;</span></p>
<h1>{{ .Site.Params.tagline | default .Site.Title }}</h1>
{{ with .Site.Params.description }}<p>{{ . }}</p>{{ end }}
{{ with .Site.Params.social }}
<p class="intro__links">
{{ with .discord }}<a href="{{ . }}" target="_blank" rel="noopener">Discord</a>{{ end }}
{{ with .whatsapp }}<a href="{{ . }}" target="_blank" rel="noopener">WhatsApp</a>{{ end }}
{{ with .mail }}<a href="{{ . }}" target="_blank" rel="noopener me">Mail</a>{{ end }}
</p>
{{ end }}
</section>
{{ $sectionPages := where .Site.RegularPages "Type" "hs26" }}
{{ if eq (len $sectionPages) 0 }}{{ $sectionPages = .Site.RegularPages }}{{ end }}
{{ $paginator := .Paginate $sectionPages }}
<p class="section-label">Jetziges Semester</p>
<ul class="post-list">
{{ range $i, $p := $paginator.Pages }}
{{ partial "post-card.html" (dict "page" $p "index" $i) }}
{{ else }}
<li style="color: var(--overlay1); font-family: 'IBM Plex Mono', monospace;">No posts yet — create one with <code>hugo new posts/my-first-post.md</code>.</li>
{{ end }}
</ul>
{{ partial "pagination.html" $paginator }}
{{ end }}
+14
View File
@@ -0,0 +1,14 @@
<footer class="site-footer">
<div class="wrap{{ if .Site.Params.wideLayout }} wrap--wide{{ end }} site-footer__inner">
<span>
&copy; {{ now.Year }} {{ .Site.Params.author | default .Site.Title }}. Lizensiert unter <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" rel="noopener">CC BY-NC-SA 4.0</a>.
<br>
Erstellt mit <a href="https://gohugo.io" target="_blank" rel="noopener">Hugo</a> &amp; <a href="https://github.com/abhyuday-fr/hugo-macchiato" target="_blank" rel="noopener">Macchiato</a>.
</span>
<ul class="footer-links">
{{ range .Site.Menus.footer }}
<li><a href="{{ .URL | relLangURL }}"{{ if strings.HasPrefix .URL "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Name }}</a></li>
{{ end }}
</ul>
</div>
</footer>
+4
View File
@@ -0,0 +1,4 @@
<div class="admonition admonition--danger">
<p class="admonition-title">Fehler</p>
{{ .Inner | markdownify }}
</div>
+4
View File
@@ -0,0 +1,4 @@
<div class="admonition admonition--note">
<p class="admonition-title">Bemerkung</p>
{{ .Inner | markdownify }}
</div>
+4
View File
@@ -0,0 +1,4 @@
<div class="admonition admonition--warning">
<p class="admonition-title">Achtung</p>
{{ .Inner | markdownify }}
</div>