-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
303 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
Submodule backsteinexpressionismus
updated
6 files
+2 −0 | .atomignore | |
+6 −0 | .github/workflows/gh-pages.yml | |
+1 −1 | config.toml | |
+1 −1 | content/tags/_index.md | |
+2 −1 | package.json | |
+1 −1 | themes/projektemacher-base |
Submodule blaufusstoelpel
updated
3 files
+1 −0 | .atomignore | |
+1 −2 | package.json | |
+1 −1 | themes/projektemacher-base |
Submodule kinderbuecher
updated
3 files
+1 −0 | .atomignore | |
+0 −1 | package.json | |
+1 −1 | themes/projektemacher-base |
Submodule labs.projektemacher.org
updated
9 files
+2 −0 | .atomignore | |
+2 −6 | .github/workflows/gh-pages.yml | |
+2 −3 | config.toml | |
+1 −0 | content/post/haptic-feedback/index.en.md | |
+1 −0 | content/post/haptic-feedback/index.md | |
+16 −0 | content/post/maps/index.en.md | |
+10 −1 | content/post/maps/index.md | |
+6 −3 | layouts/_default/single.iiif.json | |
+1 −1 | themes/projektemacher-base |
Submodule schriftmuster
updated
3 files
+1 −0 | .atomignore | |
+5 −0 | .github/workflows/gh-pages.yml | |
+1 −1 | themes/projektemacher-base |
Submodule vorsatzpapier
updated
4 files
+1 −0 | .atomignore | |
+4 −0 | .github/workflows/gh-pages.yml | |
+0 −34 | layouts/shortcodes/tagcloud.html | |
+1 −1 | themes/projektemacher-base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
url: blogs | ||
title: Blogs | ||
layout: portfolio | ||
--- | ||
External links will open in a new window. The flags indicate the languages available, the ribbons the status of the blog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
url: blogs | ||
title: Blogs | ||
layout: portfolio | ||
--- | ||
Externe Links werden in einem neuen Fenster geöffnet. Die Flaggen kennzeichnen die verfügbaren Sprachen, die Bändchen den Status des Blogs. | ||
Externe Links werden in einem neuen Fenster geöffnet. Die Flaggen kennzeichnen die verfügbaren Sprachen, die Bändchen den Status des Blogs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
{{ define "title" }} | ||
{{- if eq .Kind "term" -}} | ||
{{- i18n .Data.Singular | title -}} | ||
{{- print ": " -}} | ||
{{- end -}} | ||
|
||
{{- .Title }} · {{ .Site.Title -}} | ||
{{ end }} | ||
{{ define "content" }} | ||
<div class="content list"> | ||
<section class="container list"> | ||
<article class="archive"> | ||
<header> | ||
<h1 class="title header"> | ||
{{- if eq .Kind "term" -}} | ||
{{- i18n .Data.Singular | title -}} | ||
{{- print ": " -}} | ||
{{- end -}} | ||
|
||
{{- .Title -}} | ||
</h1> | ||
</header> | ||
<div class="archive-description">{{ .Content }}</div> | ||
|
||
<div class="archive-filter"> | ||
<h2 class="filter-header">{{ i18n "filter" }}</h2> | ||
<div class="filter-list"> | ||
{{- $pages := where .Data.Pages "Section" "blog" -}} | ||
{{- $pages = ($pages | lang.Merge (where .Sites.First.RegularPages "Section" "blog") ) -}} | ||
{{- $pages = where $pages "Params.status" "ne" "planned" }} | ||
{{- range $pages -}} | ||
{{- $dir := split (string (path.Dir .Path)) "/" -}} | ||
{{- $prefix := index $dir 1 -}} | ||
<div class="filter"> | ||
<input type="checkbox" id="{{ $prefix }}-checkbox" data-filter="{{ $prefix }}" class="filter-checkbox" checked> | ||
<span class="blog-filter"> {{ .Title }}</span> | ||
</div> | ||
{{- end -}} | ||
<script type="text/javascript"> | ||
function filter (elem) { | ||
var box; | ||
if (elem.is('input')) { | ||
box = elem; | ||
} else { | ||
box = elem.siblings('input:checkbox'); | ||
if (box.is(':checked')) { | ||
box.prop('checked', false); | ||
} else { | ||
box.prop('checked', true); | ||
} | ||
} | ||
var blog = box.data('filter'); | ||
|
||
$('.archive-content .' + blog).toggle(); | ||
$('.archive-content ul.month-section').each(function () { | ||
var hide = true; | ||
$(this).find('li').each(function () { | ||
if ($(this).is(":visible")) { | ||
hide = false; | ||
} | ||
}); | ||
if (hide) { | ||
$(this).toggle(); | ||
} | ||
}); | ||
|
||
/* | ||
$('.archive-content ul.year-section').each(function () { | ||
var hide = true; | ||
$(this).find('ul.month-section').each(function () { | ||
if ($(this).is(":visible")) { | ||
hide = false; | ||
} | ||
}); | ||
if (hide) { | ||
$(this).toggle(); | ||
$(this).prev('.year').toggle(); | ||
} | ||
}); | ||
*/ | ||
|
||
/* | ||
$('.archive-content .collapse').addClass('show'); | ||
*/ | ||
} | ||
|
||
$('.archive-filter .filter').find('.blog-filter, .filter-checkbox:checked').on("click", function (e) { | ||
filter($(this)); | ||
}); | ||
</script> | ||
</div> | ||
</div> | ||
<hr class="archive-hr"> | ||
<div class="archive-content"> | ||
{{- $pages := where .Site.Pages "Section" "post" -}} | ||
|
||
{{- .Scratch.Set "pages" $pages -}} | ||
{{- $mainSite := .Sites.First -}} | ||
{{- if ne $mainSite .Site -}} | ||
{{- .Scratch.Set "pages" ($pages | lang.Merge (where $mainSite.Pages "Section" "post") ) -}} | ||
{{- end -}} | ||
{{- $pages = (.Scratch.Get "pages").Reverse -}} | ||
{{/* Filter non post pages */}} | ||
{{- $pages = where $pages "Params.displayinlist" "!=" false -}} | ||
{{- $pages = where $pages "Params.displayInList" "!=" false -}} | ||
{{- $pages = where $pages "Params.metaPage" "!=" true -}} | ||
{{- $pages = where $pages "Date.IsZero" "==" false -}} | ||
|
||
{{- $firstYear := (index (first 1 $pages) 0).Date.Year -}} | ||
{{- $lastYear := (index (last 1 $pages) 0).Date.Year -}} | ||
{{- if eq $firstYear 1 -}} | ||
{{ warnf "%s" (index (first 1 $pages) 0) -}} | ||
{{- warnf "Building archive for years %d to %d" $firstYear $lastYear -}} | ||
{{- end -}} | ||
|
||
{{- range (seq $firstYear $lastYear) -}} | ||
{{ $year := . }} | ||
{{- if len (where $pages ".Date.Year" "==" $year) -}} | ||
<a class="year collapse-header" aria-expanded="false" data-toggle="collapse" aria-controls="collapse-{{ $year }}" href="#year-{{ $year }}"> | ||
<i class="fas fa-plus"></i> | ||
<i class="fas fa-minus"></i> | ||
<h2 class="year-header">{{ $year }}</h2> | ||
</a> | ||
<ul id="year-{{ $year }}" class="year-section collapse"> | ||
{{- $yearPages := where $pages ".Date.Year" "==" . -}} | ||
{{- range (seq 1 12 ) -}} | ||
{{- $month := . -}} | ||
{{- if len (where $yearPages ".Date.Month" "==" $month) -}} | ||
<li class="month-section"> | ||
<ul class="month-section month-{{ $month }}"> | ||
{{- $monthName := "" -}} | ||
{{ if eq "de" $.Site.Language.Lang }} | ||
{{ $monthName = (index $.Site.Data.months (printf "%d" $month)) }} | ||
{{- else -}} | ||
{{- $monthName = (dateFormat "January" (printf "2001-%02d-01" $month)) -}} | ||
{{- end -}} | ||
|
||
<span class="month">{{ $monthName }}</span> | ||
{{- range (where $yearPages ".Date.Month" "==" $month) -}} | ||
|
||
{{- $dir := split (string (path.Dir .Path)) "/" -}} | ||
|
||
{{- $displayName := "" -}} | ||
{{- $postLink := "" -}} | ||
{{- $linkPrefix := "" -}} | ||
{{- $prefix := index $dir 1 -}} | ||
{{- $sectionHeading := printf "/%s" (delimit (slice "blog" $prefix) "/") -}} | ||
{{- $blogPage := .Site.GetPage $sectionHeading -}} | ||
{{- $displayName = printf "%s: " $blogPage.Title -}} | ||
{{- if ($blogPage.Param "linkPrefix") -}} | ||
{{ $linkPrefix = $blogPage.Param "linkPrefix" -}} | ||
{{- else -}} | ||
{{ $linkPrefix = $blogPage.Param "link" -}} | ||
{{- end -}} | ||
{{- $postLink = split (string .Path) "/" -}} | ||
|
||
{{- if eq (len $dir) 2 -}} | ||
{{- $postLink = last (sub (len $postLink) 0) $postLink -}} | ||
{{ else }} | ||
{{- $postLink = last (sub (len $postLink) 2) $postLink -}} | ||
{{- end -}} | ||
{{- $postLink = delimit $postLink "/" -}} | ||
{{- $postLink = replaceRE "^(.*/)\\w*\\..*$" "$1" $postLink -}} | ||
{{- $postLink = printf "%s%s" $linkPrefix $postLink -}} | ||
|
||
{{- $openExternal := true -}} | ||
|
||
<li class="archive-link {{ $prefix }}"> | ||
<div class="post-heading"> | ||
<span class="date"> | ||
{{- partial "date.html" (dict "date" .Date "language" $.Page.Language "months" $.Site.Data.months) -}} | ||
</span> | ||
<span class="link"> | ||
{{- $postTitle := "" -}} | ||
{{- if eq .Title "" -}} | ||
{{- $postTitle = (i18n "untitledPost") -}} | ||
{{- else -}} | ||
{{- $postTitle = .Title -}} | ||
{{- end -}} | ||
<a class="title" href="{{ $postLink }}" {{- if $openExternal -}}target="_blank"{{ else }}data-toggle="collapse"{{- end -}}>{{- $displayName }}{{ $postTitle -}}</a> | ||
</span> | ||
</div> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</li> | ||
{{end }} | ||
{{ end }} | ||
</ul> | ||
{{- end -}} | ||
{{- end -}} | ||
</div> | ||
</article> | ||
</section> | ||
</div> | ||
|
||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{{ define "title" }} | ||
{{- if eq .Kind "term" -}} | ||
{{- i18n .Data.Singular | title -}} | ||
{{- print ": " -}} | ||
{{- end -}} | ||
|
||
{{- .Title }} · {{ .Site.Title -}} | ||
{{ end }} | ||
{{ define "content" }} | ||
<div class="content portfolio"> | ||
<section class="container page"> | ||
<article class="portfolio"> | ||
<header> | ||
<h1 class="header">{{ .Title }}</h1> | ||
</header> | ||
<div class="blog-tiles"> | ||
{{ $pages := where .Data.Pages "Section" .Section }} | ||
{{- .Scratch.Set "pages" $pages -}} | ||
{{- $mainSite := .Sites.First -}} | ||
{{- if ne $mainSite .Site -}} | ||
{{- .Scratch.Set "pages" ($pages | lang.Merge (where $mainSite.RegularPages "Section" .Section) ) -}} | ||
{{- end -}} | ||
{{- $pages := .Scratch.Get "pages" -}} | ||
{{- $sorted := $pages.ByParam "status" -}} | ||
|
||
{{ range $sorted }} | ||
<div class="blog"> | ||
{{- $link := "#" -}} | ||
{{- if .Params.link -}} | ||
{{- $link = .Params.link -}} | ||
{{- end -}} | ||
<a {{ if ne $link "#" -}} href="{{ $link }}"{{- end -}}> | ||
{{ $status := .Params.status }} | ||
{{ $lang := .Params.lang }} | ||
|
||
{{- $screenshot := ((.GetPage .Path).Resources.ByType "image").GetMatch "screenshot" -}} | ||
{{- $preview := $screenshot.Resize "400x Lanczos jpg" -}} | ||
<div class="screenshot"> | ||
<div class="ribbon ribbon-top-right {{ $status }}"> | ||
{{- $statusString := (i18n $status | humanize) -}} | ||
<span>{{ $statusString }} | ||
{{- if and (eq $status "inactive") (.Params.yearsActive) -}} | ||
<em class="yearsActive"> ({{.Params.yearsActive}})</em> | ||
{{- end -}} | ||
</span> | ||
</div> | ||
<img src="{{ $preview.RelPermalink }}" alt="Preview"> | ||
{{ $counter := 0 }} | ||
{{- range $lang -}} | ||
{{/* | ||
<i class="fas fa-flag lang {{ . }}" title="{{ i18n . }}"></i> | ||
*/}} | ||
{{- $flagPos := "" -}} | ||
{{- if gt $counter 0 -}} | ||
{{- $flagPos = printf "left: calc(1.5em + (2.5em) * %d);" $counter -}} | ||
{{- end -}} | ||
<i class="lang {{ . }}" title="{{ i18n . }}" style="{{ $flagPos | safeCSS }}"></i> | ||
{{- $counter = add $counter 1 -}} | ||
{{- end -}} | ||
</div> | ||
<div class="tile"> | ||
<div class="blog-about"> | ||
<span class="blog-title">{{ .Title }}</span> | ||
<span class="blog-description"> | ||
{{- .Description -}} | ||
</span> | ||
<span class="blog-content"> | ||
{{- replace .Content "<p></p>" "" | safeHTML -}} | ||
</span> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
{{- end -}} | ||
</div> | ||
<div class="portfolio-list-content"> | ||
{{ .Content }} | ||
</div> | ||
</article> | ||
</section> | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
{{- $section := .Get "section" -}} | ||
{{- $type := .Get "type" -}} | ||
|
||
{{- $hangers := (where (where .Site.Pages "Section" $section) "Params.type" $type).Reverse -}} | ||
|
||
{{- len $hangers -}} | ||
{{/* This file is just a place holder, to avoid problems with mounted content from the 'blogs' directory */}} |
Oops, something went wrong.