mirror of
https://github.com/skoelle/buildbroken-blog-archive.git
synced 2026-09-17 18:30:25 +00:00
initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<img class="site-banner" src="{{ .Site.Params.bannerImage }}" alt="" width="961" height="226">
|
||||
<div class="header-inner">
|
||||
<h1 class="site-title"><a href="{{ "/" | relURL }}">{{ .Site.Title }}</a></h1>
|
||||
<p class="site-subtitle">{{ .Site.Params.subtitle }}</p>
|
||||
{{ if .Site.Menus.main }}
|
||||
<nav class="site-nav">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="site-main">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<p>© 2009-{{ now.Format "2006" }} build broken · <a href="{{ "/impressum/" | relURL }}">Impressum</a> · archiviert als statische Seite.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<article class="page">
|
||||
<div class="post-body">
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
<div class="post-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<h2 class="archive-title">{{ .Title }}</h2>
|
||||
<div class="post-list">
|
||||
{{ range .Pages }}
|
||||
<article class="post-teaser">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,51 @@
|
||||
{{ define "main" }}
|
||||
<nav class="post-nav-top">
|
||||
{{ with .PrevInSection }}<a class="prev" href="{{ .RelPermalink }}">« {{ .Title }}</a>{{ end }}
|
||||
{{ with .NextInSection }}<a class="next" href="{{ .RelPermalink }}">{{ .Title }} »</a>{{ end }}
|
||||
</nav>
|
||||
|
||||
<article class="post">
|
||||
<div class="date-badge">
|
||||
<span class="month">{{ .Date.Format "Jan" }}</span>
|
||||
<span class="day">{{ .Date.Format "02" }}</span>
|
||||
<span class="year">{{ .Date.Format "2006" }}</span>
|
||||
</div>
|
||||
|
||||
<div class="post-body">
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
<p class="post-meta">
|
||||
{{- $parts := slice }}
|
||||
{{- $authorTerms := .GetTerms "author" }}
|
||||
{{- if $authorTerms }}
|
||||
{{- $authorLink := printf "<strong><a href=\"%s\">%s</a></strong>" (index $authorTerms 0).RelPermalink (index $authorTerms 0).Title }}
|
||||
{{- $parts = $parts | append (printf "Geschrieben von %s" $authorLink) }}
|
||||
{{- else if .Params.author }}
|
||||
{{- $parts = $parts | append (printf "Geschrieben von <strong>%s</strong>" .Params.author) }}
|
||||
{{- end }}
|
||||
{{- $catTerms := .GetTerms "categories" }}
|
||||
{{- if $catTerms }}
|
||||
{{- $catLinks := slice }}
|
||||
{{- range $catTerms }}{{ $catLinks = $catLinks | append (printf "<a href=\"%s\">%s</a>" .RelPermalink .Title) }}{{ end }}
|
||||
{{- $parts = $parts | append (printf "in %s" (delimit $catLinks ", ")) }}
|
||||
{{- end }}
|
||||
{{- $tagTerms := .GetTerms "tags" }}
|
||||
{{- if $tagTerms }}
|
||||
{{- $tagLinks := slice }}
|
||||
{{- range $tagTerms }}{{ $tagLinks = $tagLinks | append (printf "<a href=\"%s\">%s</a>" .RelPermalink .Title) }}{{ end }}
|
||||
{{- $parts = $parts | append (printf ", tags: %s" (delimit $tagLinks ", ")) }}
|
||||
{{- end }}
|
||||
{{- delimit $parts " " | safeHTML }}
|
||||
</p>
|
||||
|
||||
<div class="post-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ if .Params.archive_url }}
|
||||
<p class="original-source"><small>Original im Internet Archive: <a href="{{ .Params.archive_url }}" target="_blank" rel="noopener">{{ .Params.archive_url }}</a></small></p>
|
||||
{{ else if .Params.original_url }}
|
||||
<p class="original-source"><small>Original: <a href="{{ .Params.original_url }}" target="_blank" rel="noopener">{{ .Params.original_url }}</a></small></p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
<h2 class="archive-title">{{ .Title }}</h2>
|
||||
{{ with .Content }}<div class="archive-intro">{{ . }}</div>{{ end }}
|
||||
<div class="post-list">
|
||||
{{ range .Pages }}
|
||||
<article class="post-teaser">
|
||||
<div class="date-badge">
|
||||
<span class="month">{{ .Date.Format "Jan" }}</span>
|
||||
<span class="day">{{ .Date.Format "02" }}</span>
|
||||
<span class="year">{{ .Date.Format "2006" }}</span>
|
||||
</div>
|
||||
<div class="post-teaser-body">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
{{ if .Params.author }}<p class="meta">von {{ .Params.author }}{{ if .Params.categories }} in {{ delimit .Params.categories ", " }}{{ end }}</p>{{ end }}
|
||||
<div class="excerpt">{{ replaceRE "<p[^>]*>\\s*(<a[^>]*>)?\\s*</a>?\\s*</p>" "" (replaceRE "<img[^>]*>" "" .Summary) | safeHTML }}</div>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,38 @@
|
||||
{{ define "main" }}
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }}
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
{{ with .Content }}
|
||||
<div class="about-intro">{{ . }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<div class="post-list">
|
||||
{{ range $paginator.Pages }}
|
||||
<article class="post-teaser">
|
||||
<div class="date-badge">
|
||||
<span class="month">{{ .Date.Format "Jan" }}</span>
|
||||
<span class="day">{{ .Date.Format "02" }}</span>
|
||||
<span class="year">{{ .Date.Format "2006" }}</span>
|
||||
</div>
|
||||
<div class="post-teaser-body">
|
||||
{{- $post := . }}
|
||||
<h2><a href="{{ $post.RelPermalink }}">{{ $post.Title }}</a></h2>
|
||||
<p class="meta">
|
||||
{{- $parts := slice }}
|
||||
{{- $authorTerms := $post.GetTerms "author" }}
|
||||
{{- if $authorTerms }}{{ $parts = $parts | append (printf "von <a href=\"%s\">%s</a>" (index $authorTerms 0).RelPermalink (index $authorTerms 0).Title) }}{{ else if $post.Params.author }}{{ $parts = $parts | append (printf "von %s" $post.Params.author) }}{{ end }}
|
||||
{{- $catTerms := $post.GetTerms "categories" }}
|
||||
{{- if $catTerms }}{{ $catLinks := slice }}{{ range $catTerms }}{{ $catLinks = $catLinks | append (printf "<a href=\"%s\">%s</a>" .RelPermalink .Title) }}{{ end }}{{ $parts = $parts | append (printf "in %s" (delimit $catLinks ", ")) }}{{ end }}
|
||||
{{- $tagTerms := $post.GetTerms "tags" }}
|
||||
{{- if $tagTerms }}{{ $tagLinks := slice }}{{ range $tagTerms }}{{ $tagLinks = $tagLinks | append (printf "<a href=\"%s\">%s</a>" .RelPermalink .Title) }}{{ end }}{{ $parts = $parts | append (printf ", tags: %s" (delimit $tagLinks ", ")) }}{{ end }}
|
||||
{{- delimit $parts " " | safeHTML }}
|
||||
</p>
|
||||
<div class="excerpt">{{ replaceRE "<p[^>]*>\\s*(<a[^>]*>)?\\s*</a>?\\s*</p>" "" (replaceRE "<img[^>]*>" "" .Summary) | safeHTML }}</div>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<nav class="pagination">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
@@ -0,0 +1 @@
|
||||
<!-- ungenutzt, Footer steckt in baseof.html -->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- ungenutzt, Header steckt in baseof.html -->
|
||||
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: {{ .Site.BaseURL }}sitemap.xml
|
||||
Reference in New Issue
Block a user