Build and deploy the poweronoff.click hugo / build (push) Successful in 46s
Each project on the landing page is now a two-column entry: an image from the project on the left, a long description on the right (stacked on mobile). - data/projects.yaml: new required `image` (path in assets/), optional `image_alt`/`image_credit`, and `description` is now Markdown covering the idea and the technical implementation (~350 words, 1.5-2 min) - assets/projects/berlin-crime-stories.jpg: the project's Kalle-und-Leni illustration, resized to 1100 px in the repo and processed by Hugo into an 800 px WebP (36 KB) at build time - shortcode renders the description with Page.RenderString (paragraphs, bold), resizes the image, and fails the build when name/url/description/image is missing or the asset does not exist (no nil-pointer panic) - extend_head.html: new entry layout using PaperMod variables, responsive below 720 px - make check asserts an entry with image is rendered and the text covers both "Die Idee" and "Die Umsetzung"; AGENTS.md/README document the new fields Berlin Crime Stories description covers the series concept, Kalle & Leni, the Berlin locations, the DE/EN/RU multilingual setup, Hugo templates, tags/RSS, theme, Turnstile + Cloudflare Worker contact form, Apache + CSP and cookieless analytics.
109 lines
2.3 KiB
HTML
109 lines
2.3 KiB
HTML
{{- /* Custom head content. Kept minimal on purpose: the only thing we add is
|
|
styling for the project entries rendered by layouts/shortcodes/projects.html.
|
|
PaperMod calls this partial from its own head.html, so no theme fork. */ -}}
|
|
|
|
{{- if .IsHome }}
|
|
<style>
|
|
.projects {
|
|
margin: 2rem 0 1rem;
|
|
}
|
|
|
|
.project {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
|
|
gap: 1.5rem;
|
|
align-items: start;
|
|
background: var(--entry);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.75rem;
|
|
}
|
|
|
|
.project-media {
|
|
margin: 0;
|
|
}
|
|
|
|
.project-media img {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.project-media figcaption {
|
|
margin-top: 0.4rem;
|
|
font-size: 0.72rem;
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.project-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.project-header h3 {
|
|
margin: 0;
|
|
font-size: 1.45rem;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.project-status {
|
|
flex-shrink: 0;
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
padding: 0.1rem 0.55rem;
|
|
}
|
|
|
|
.project-text p {
|
|
margin: 0 0 0.85rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.project-text p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.project-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
list-style: none;
|
|
margin: 1rem 0 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.project-tags li {
|
|
font-size: 0.78rem;
|
|
color: var(--secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
padding: 0.1rem 0.55rem;
|
|
}
|
|
|
|
.project-footer {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.project-link {
|
|
font-weight: 600;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.project {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
padding: 1.1rem;
|
|
}
|
|
}
|
|
</style>
|
|
{{- end }}
|