5 Commits

20 changed files with 554 additions and 242 deletions

View File

@ -14,10 +14,10 @@ paginate = 20
title = 'lumbung dot space' title = 'lumbung dot space'
bundleCss = "/bundle.css" bundleCss = "/bundle.css"
bundleJs = "/bundle.js" bundleJs = "/bundle.js"
mainSections = ['social', 'shouts', 'calendar', 'tv', 'pen'] mainSections = ['social', 'shouts', 'events', 'tv', 'pen', 'pages']
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true
[taxonomies] [taxonomies]
author = "authors" author = "authors"
@ -26,6 +26,7 @@ unsafe = true
source = "sources" source = "sources"
timeline = "timelines" timeline = "timelines"
[permalinks] [permalinks]
timelines = "/timeline/:slug/" timelines = "/timeline/:slug/"

View File

@ -11,6 +11,8 @@
{{- partial "news-ticker.html" . -}} {{- partial "news-ticker.html" . -}}
{{- partial "footer.html" . -}} {{- partial "footer.html" . -}}
</body> </body>
<script src="{{ "js/hugotagsfilter-1.2.2.min.js" | relURL}}"></script>
<script> <script>
function toggleDescription(id) { function toggleDescription(id) {
document.querySelector(id).classList.toggle("collapsed"); document.querySelector(id).classList.toggle("collapsed");
@ -33,19 +35,84 @@
if (document.querySelector('[aria-label="Previous"]')) { if (document.querySelector('[aria-label="Previous"]')) {
document.querySelector('[aria-label="Previous"]').parentElement.classList.add('previous-page-link') document.querySelector('[aria-label="Previous"]').parentElement.classList.add('previous-page-link')
} }
// for toggling submenus in mobile navigation drawer
let submenuLinks = document.querySelectorAll('.drawer .has-submenu');
[...submenuLinks].forEach(submenuLink => {
submenuLink.addEventListener('click', function() {
submenuLink.querySelector('.submenu').classList.toggle('opened')
})
})
// footer random color // footer random color
var color = ['orange','green','blue']; var color = ['orange','green','blue'];
var footer = document.getElementById("footer"); var footer = document.getElementById("footer");
var rand = Math.floor(Math.random() * color.length); var rand = Math.floor(Math.random() * color.length);
footer.classList.add(color[rand]); footer.classList.add(color[rand]);
// mobile menu
document.getElementById("menu-button").onclick=function(){
this.classList.toggle("active");
document.getElementById("menu").classList.toggle("active");
}
// mobile menu - submenu
submenuLinks = document.querySelectorAll(".has-submenu");
[...submenuLinks].forEach((t=>{
t.addEventListener("click",(function(){t.querySelector(".submenu").classList.toggle("active")}))
}));
// mobile mainfilter
document.getElementById("filter-link").onclick=function(){document.getElementById("filter").classList.toggle("active")};
// mobile filter
filterButtons=document.querySelectorAll(".filter-buttons");
[...filterButtons].forEach((t=>{
t.addEventListener("click",(function(){t.querySelector(".filter-buttons-dropdown").classList.toggle("active");
t.querySelector(".filter-by").classList.toggle("active")}))
}));
// load more cards
document.getElementById("load-more").onclick=function(){
document.getElementById('load-more-paginator').click();
}
// filter config
var htfConfig = {
filters: [
{
name: 'tags',
prefix: 'tag-',
buttonClass: 'tag-button',
allSelector: '#selectAllTags',
attrName: 'data-tags',
selectedPrefix: 'stags-',
},
{
name: 'section',
prefix: 'sect-',
buttonClass: 'sect-button',
allSelector: '#selectAllSections',
attrName: 'data-section',
selectedPrefix: 'ssect-',
},
{
name: 'contributors',
prefix: 'cont-',
buttonClass: 'cont-button',
allSelector: '#selectAllContributors',
attrName: 'data-contributors',
selectedPrefix: 'scont-',
},
{
name: 'sources',
prefix: 'src-',
buttonClass: 'src-button',
allSelector: '#selectAllSources',
attrName: 'data-sources',
selectedPrefix: 'ssrc-',
}
],
showItemClass: "show-item",
filterItemClass: "filter-item",
activeButtonClass: "active",
counterSelector: "selectedItemCount",
populateCount: true,
setDisabledButtonClass: "disable-button"
}
var htf = new HugoTagsFilter(htfConfig);
</script> </script>
</html> </html>

View File

@ -2,8 +2,13 @@
<main> <main>
<section class='entries'> <section class='entries'>
<div class="h-feed"> <div class="h-feed">
{{ range where (.Paginator 13).Pages "Params.hidden" "ne" "true" }} {{ $range := where .Pages "Params.hidden" "ne" "true" }}
{{ $paginator := .Paginate $range }}
{{ $pageSize := $paginator.PageSize }}
{{ $totalPostsToShow := mul $paginator.PageNumber $pageSize }}
{{ range $index, $el := (first $totalPostsToShow $range) }}
<div class='post {{if eq .Section "tv"}}tv{{ end }}' {{ if eq $index (sub $totalPostsToShow $pageSize) }}id="newpage"{{ end }}>
{{if eq .Section "tv"}} {{if eq .Section "tv"}}
{{- partial "video_box.html" . -}} {{- partial "video_box.html" . -}}
@ -12,29 +17,32 @@
{{ else if eq .Section "shouts" }} {{ else if eq .Section "shouts" }}
{{ if in .Params.sources "pen.lumbung.space" }} {{ if in .Params.sources "pen.lumbung.space" }}
{{- partial "pen_card.html" . -}} {{- partial "partials/pen_card.html" . -}}
{{ else }} {{ else }}
{{- partial "shout_card.html" . -}} {{- partial "partials/shout_card.html" . -}}
{{ end }} {{ end }}
{{ else if eq .Section "social" }} {{ else if eq .Section "social" }}
{{- partial "social_card.html" . -}} {{- partial "partials/social_card.html" . -}}
{{ else if eq .Section "publications"}} {{ else if eq .Section "publications"}}
{{- partial "book_card.html" . -}} {{- partial "partials/book_card.html" . -}}
{{ else if eq .Section "sounds"}} {{ else if eq .Section "sounds"}}
{{- partial "sounds_card.html" . -}} {{- partial "sounds_card.html" . -}}
{{ else }} {{ else }}
{{- partial "card.html" . -}} {{- partial "card.html" . -}}
{{ end }} {{ end }}
</div>
{{ end }} {{ end }}
</div> </div>
<nav class="pagination"> <div class="page-nav">
{{ template "_internal/pagination.html" . }} {{ if and (gt $paginator.TotalPages 1) ($paginator.HasNext) }}
</nav> <a id="load-more-paginator" class="nextpage" href="{{ $paginator.Next.URL }}#newpage">load more</a>
{{ end }}
</div>
</section>
</main> </main>
{{ end }} {{ end }}

View File

@ -0,0 +1,39 @@
{{ define "main" }}
<main>
<section class='entries'>
{{ $now := (now.Format "060102" ) }}
{{ $upcoming := slice }}
{{ $past := slice}}
{{ range .Pages }}
{{ $t := (substr .Params.event_end 2 8) }}
{{ $time := ( replace $t "-" "") }}
{{ if ge $time $now }}
{{ $upcoming = $upcoming | append . }}
{{ else if gt $now $time }}
{{ $past = $past | append . }}
{{ end }}
{{ end }}
{{ with $upcoming }}
<div class="upcoming event-list">
<div class='tape-label'><span>upcoming events</span></div>
{{ range $upcoming}}
{{- partial "event_list_item.html" . -}}
{{end}}
</div>
{{end}}
{{ with $past }}
<div class="past event-list">
<div class='tape-label'><span>past events</span></div>
{{ range $past }}
{{- partial "event_list_item.html" . -}}
{{ end }}
</div>
{{ end }}
</section>
</main>
{{ end }}

View File

@ -1,5 +1,4 @@
{{ define "main" }} {{ define "main" }}
<main> <main>
<section class='entries'> <section class='entries'>
@ -10,7 +9,7 @@
{{ $totalPostsToShow := mul $paginator.PageNumber $pageSize }} {{ $totalPostsToShow := mul $paginator.PageNumber $pageSize }}
{{ range $index, $el := (first $totalPostsToShow .Site.RegularPages) }} {{ range $index, $el := (first $totalPostsToShow .Site.RegularPages) }}
<div class="post" {{ if eq $index (sub $totalPostsToShow $pageSize) }}id="newpage"{{ end }}> <div class='post {{if eq .Section "tv"}}tv{{ end }}' {{ if eq $index (sub $totalPostsToShow $pageSize) }}id="newpage"{{ end }}>
{{if eq .Section "tv"}} {{if eq .Section "tv"}}
{{- partial "video_box.html" . -}} {{- partial "video_box.html" . -}}
@ -19,16 +18,16 @@
{{ else if eq .Section "shouts" }} {{ else if eq .Section "shouts" }}
{{ if in .Params.sources "pen.lumbung.space" }} {{ if in .Params.sources "pen.lumbung.space" }}
{{- partial "pen_card.html" . -}} {{- partial "partials/pen_card.html" . -}}
{{ else }} {{ else }}
{{- partial "shout_card.html" . -}} {{- partial "partials/shout_card.html" . -}}
{{ end }} {{ end }}
{{ else if eq .Section "social" }} {{ else if eq .Section "social" }}
{{- partial "social_card.html" . -}} {{- partial "partials/social_card.html" . -}}
{{ else if eq .Section "publications"}} {{ else if eq .Section "publications"}}
{{- partial "book_card.html" . -}} {{- partial "partials/book_card.html" . -}}
{{ else if eq .Section "sounds"}} {{ else if eq .Section "sounds"}}
{{- partial "sounds_card.html" . -}} {{- partial "sounds_card.html" . -}}
@ -42,9 +41,8 @@
<div class="page-nav"> <div class="page-nav">
{{ if and (gt $paginator.TotalPages 1) ($paginator.HasNext) }} {{ if and (gt $paginator.TotalPages 1) ($paginator.HasNext) }}
<a class="nextpage" href="{{ $paginator.Next.URL }}#newpage">Next Page</a> <a id="load-more-paginator" class="nextpage" href="{{ $paginator.Next.URL }}#newpage">load more</a>
{{ end }} {{ end }}
<a class="nextpage load-all-trigger" href="{{ $paginator.Last.URL }}">Load all</a>
</div> </div>
<div class="lumbung-radio-player" onclick="window.open('https://lumbungradio.stationofcommons.org', 'Lumbung Radio', 'height=800,width=450')"> <div class="lumbung-radio-player" onclick="window.open('https://lumbungradio.stationofcommons.org', 'Lumbung Radio', 'height=800,width=450')">
@ -57,4 +55,5 @@
</section> </section>
</main> </main>
{{ end }} {{ end }}

View File

@ -1,4 +1,4 @@
<div class='book card'> <div class='book card filter-item'>
<article class="h-entry book"> <article class="h-entry book">
<div class="tape-label book"><span><time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time></span><div></div></div> <div class="tape-label book"><span><time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time></span><div></div></div>
@ -36,4 +36,4 @@
{{ end }} {{ end }}
</footer> </footer>
</article> </article>
</div> </div>

View File

@ -1,5 +1,5 @@
{{ $t := (time .Params.event_end) }} {{ $t := (time .Params.event_end) }}
<div class='card calendar {{ if $t.Before now }}past{{end}}'> <div class='card calendar {{ if $t.Before now }}past{{end}} filter-item' data-section="{{ .Section }}" data-sources='{{- partial "data/sources.html" . -}}' data-contributors='{{- partial "data/contributors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'>
<div class='date tape-label'><span> {{ substr .Params.date 0 11}}</span></div> <div class='date tape-label'><span> {{ substr .Params.date 0 11}}</span></div>
<article class="h-event calendar "> <article class="h-event calendar ">
<header> <header>

View File

@ -1,4 +1,4 @@
<div class='card filter-item' data-section="{{ .Section }}" data-cats='{{- partial "data/categories.html" . -}}' data-authors='{{- partial "data/authors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'> <div class='card filter-item' data-section="{{ .Section }}" data-sources='{{- partial "data/sources.html" . -}}' data-contributors='{{- partial "data/contributors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'>
<article class="h-entry"> <article class="h-entry">
<header> <header>
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2> <h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>

View File

@ -0,0 +1 @@
{{ with .Params.contributors }}{{ if eq ( printf "%T" . ) "string" }}{{ . | replaceRE "[.]" "_" | urlize }}{{ else if eq ( printf "%T" . ) "[]string" }}{{ range . }}{{ . | replaceRE "[.]" "_" | urlize }} {{end}}{{end}}{{else}}no-contributor{{end}}

View File

@ -0,0 +1 @@
{{ with .Params.sources }}{{ if eq ( printf "%T" . ) "string" }}{{ . | replaceRE "[.]" "_" | urlize }}{{ else if eq ( printf "%T" . ) "[]string" }}{{ range . }}{{ . | replaceRE "[.]" "_" | urlize }} {{end}}{{end}}{{else}}no-sources{{end}}

View File

@ -0,0 +1,19 @@
{{ $t := (time .Params.event_end) }}
<div class='event-list-item'>
<div class='date-start'><span> {{ substr .Params.event_begin 0 11}}</span></div>
<div class='title'><h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2></div>
<div class='time'>
<div class='start-scroller'>
<marquee behavior="scroll" direction="left">
{{ .Params.localized_begin | markdownify }}
</marquee>
</div>
</div>
<div class='duration'>Duration: <b>{{ .Params.duration }}</b></div>
<div class='location'>{{ .Params.location | markdownify }}</div>
<input class='descr_button' type='checkbox' id='toggle-{{ .Params.uid }}'/>
<label class='calendar' for='toggle-{{ .Params.uid }}'></label>
<div class='calendar description p-description' id='event-{{ .Params.uid }}'>
{{.Content}}
</div>
</div>

View File

@ -12,6 +12,7 @@
<div class="filter-container"> <div class="filter-container">
<div class="filter-information"> <div class="filter-information">
<div><span id="selectedItemCount"></span> Cards</div> <div><span id="selectedItemCount"></span> Cards</div>
<div id="load-more">load more cards</div>
</div> </div>
<div class="filter-buttons-container"> <div class="filter-buttons-container">
<div class="filter-buttons"> <div class="filter-buttons">
@ -34,14 +35,14 @@
by contributors by contributors
</button> </button>
<div class="filter-buttons-dropdown"> <div class="filter-buttons-dropdown">
{{ range .Site.Taxonomies.authors }} {{ range .Site.Taxonomies.contributors }}
<button xx class="auth-button filter-button" id="auth-{{ .Page.Title | replaceRE "[.]" "_" | urlize }}" onclick="htf.checkFilter('{{ .Page.Title | replaceRE "[.]" "_" | urlize }}', 'auth-')"><svg enable-background="new 0 0 14.9 14.9" version="1.1" viewBox="-2 -2 18.9 18.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m11.8 1.9c-0.8-1.2-2.1-1.8-3.8-1.6-0.8-0.3-1.6-0.4-2.4-0.1-2.3 0.8-3.9 2.4-5 4.5-1.4 2.6-0.5 6.8 2.4 8.1h0.1c0.2 0.2 0.5 0.3 0.8 0.4 0.4 0.6 0.9 1.1 1.6 1.3 1.9 0.7 4.1 0.1 5.5-1.2 0.9-0.6 1.6-1.4 2-2.4 1-0.9 1.6-2.2 1.8-3.5 0.3-2.2-0.7-4.7-3-5.5z"/></svg> <span class="filter-title">{{ .Page.Title }}</span> <span id="sauth-{{ .Page.Title | replaceRE "[.]" "_" | urlize }}"></span> <button xx class="cont-button filter-button" id="cont-{{ .Page.Title | replaceRE "[.]" "_" | urlize }}" onclick="htf.checkFilter('{{ .Page.Title | replaceRE "[.]" "_" | urlize }}', 'cont-')"><svg enable-background="new 0 0 14.9 14.9" version="1.1" viewBox="-2 -2 18.9 18.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m11.8 1.9c-0.8-1.2-2.1-1.8-3.8-1.6-0.8-0.3-1.6-0.4-2.4-0.1-2.3 0.8-3.9 2.4-5 4.5-1.4 2.6-0.5 6.8 2.4 8.1h0.1c0.2 0.2 0.5 0.3 0.8 0.4 0.4 0.6 0.9 1.1 1.6 1.3 1.9 0.7 4.1 0.1 5.5-1.2 0.9-0.6 1.6-1.4 2-2.4 1-0.9 1.6-2.2 1.8-3.5 0.3-2.2-0.7-4.7-3-5.5z"/></svg> <span class="filter-title">{{ .Page.Title }}</span> <span id="scont-{{ .Page.Title | replaceRE "[.]" "_" | urlize }}"></span>
</button> </button>
{{ end }} {{ end }}
<button xx class="auth-button filter-button" id="auth-no-author" onclick="htf.checkFilter('no-author', 'auth-')"><svg enable-background="new 0 0 14.9 14.9" version="1.1" viewBox="-2 -2 18.9 18.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m11.8 1.9c-0.8-1.2-2.1-1.8-3.8-1.6-0.8-0.3-1.6-0.4-2.4-0.1-2.3 0.8-3.9 2.4-5 4.5-1.4 2.6-0.5 6.8 2.4 8.1h0.1c0.2 0.2 0.5 0.3 0.8 0.4 0.4 0.6 0.9 1.1 1.6 1.3 1.9 0.7 4.1 0.1 5.5-1.2 0.9-0.6 1.6-1.4 2-2.4 1-0.9 1.6-2.2 1.8-3.5 0.3-2.2-0.7-4.7-3-5.5z"/></svg> <span class="filter-title">No contributors</span><span id="sauth-no-author"></span> <button xx class="cont-button filter-button" id="cont-no-contributor" onclick="htf.checkFilter('no-contributor', 'cont-')"><svg enable-background="new 0 0 14.9 14.9" version="1.1" viewBox="-2 -2 18.9 18.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m11.8 1.9c-0.8-1.2-2.1-1.8-3.8-1.6-0.8-0.3-1.6-0.4-2.4-0.1-2.3 0.8-3.9 2.4-5 4.5-1.4 2.6-0.5 6.8 2.4 8.1h0.1c0.2 0.2 0.5 0.3 0.8 0.4 0.4 0.6 0.9 1.1 1.6 1.3 1.9 0.7 4.1 0.1 5.5-1.2 0.9-0.6 1.6-1.4 2-2.4 1-0.9 1.6-2.2 1.8-3.5 0.3-2.2-0.7-4.7-3-5.5z"/></svg> <span class="filter-title">No contributors</span><span id="scont-no-contributor"></span>
</button> </button>
<button xx id="selectAllAuthors" class="filter-all" onclick="htf.showAll('authors')"> <button xx id="selectAllContributors" class="filter-all" onclick="htf.showAll('contributors')">
All contributors All contributors
</button> </button>
</div> </div>
@ -52,13 +53,13 @@
by sources by sources
</button> </button>
<div class="filter-buttons-dropdown"> <div class="filter-buttons-dropdown">
{{ range .Site.Taxonomies.categories }} {{ range .Site.Taxonomies.sources }}
<button xx class="cat-button filter-button" id="cat-{{ .Page.Title | replaceRE "[.]" "_" | urlize }}" onclick="htf.checkFilter('{{ .Page.Title | replaceRE "[.]" "_" | urlize }}', 'cat-')"><svg enable-background="new 0 0 14.9 14.9" version="1.1" viewBox="-2 -2 18.9 18.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m11.8 1.9c-0.8-1.2-2.1-1.8-3.8-1.6-0.8-0.3-1.6-0.4-2.4-0.1-2.3 0.8-3.9 2.4-5 4.5-1.4 2.6-0.5 6.8 2.4 8.1h0.1c0.2 0.2 0.5 0.3 0.8 0.4 0.4 0.6 0.9 1.1 1.6 1.3 1.9 0.7 4.1 0.1 5.5-1.2 0.9-0.6 1.6-1.4 2-2.4 1-0.9 1.6-2.2 1.8-3.5 0.3-2.2-0.7-4.7-3-5.5z"/></svg> <span class="filter-title">{{ .Page.Title }}</span> <span id="scat-{{ .Page.Title | replaceRE "[.]" "_" | urlize }}"></span> <button xx class="src-button filter-button" id="src-{{ .Page.Title | replaceRE "[.]" "_" | urlize }}" onclick="htf.checkFilter('{{ .Page.Title | replaceRE "[.]" "_" | urlize }}', 'src-')"><svg enable-background="new 0 0 14.9 14.9" version="1.1" viewBox="-2 -2 18.9 18.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m11.8 1.9c-0.8-1.2-2.1-1.8-3.8-1.6-0.8-0.3-1.6-0.4-2.4-0.1-2.3 0.8-3.9 2.4-5 4.5-1.4 2.6-0.5 6.8 2.4 8.1h0.1c0.2 0.2 0.5 0.3 0.8 0.4 0.4 0.6 0.9 1.1 1.6 1.3 1.9 0.7 4.1 0.1 5.5-1.2 0.9-0.6 1.6-1.4 2-2.4 1-0.9 1.6-2.2 1.8-3.5 0.3-2.2-0.7-4.7-3-5.5z"/></svg> <span class="filter-title">{{ .Page.Title }}</span> <span id="ssrc-{{ .Page.Title | replaceRE "[.]" "_" | urlize }}"></span>
</button> </button>
{{ end }} {{ end }}
<button xx class="cat-button filter-button" id="cat-no-cat" onclick="htf.checkFilter('no-cat', 'cat-')"><svg enable-background="new 0 0 14.9 14.9" version="1.1" viewBox="-2 -2 18.9 18.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m11.8 1.9c-0.8-1.2-2.1-1.8-3.8-1.6-0.8-0.3-1.6-0.4-2.4-0.1-2.3 0.8-3.9 2.4-5 4.5-1.4 2.6-0.5 6.8 2.4 8.1h0.1c0.2 0.2 0.5 0.3 0.8 0.4 0.4 0.6 0.9 1.1 1.6 1.3 1.9 0.7 4.1 0.1 5.5-1.2 0.9-0.6 1.6-1.4 2-2.4 1-0.9 1.6-2.2 1.8-3.5 0.3-2.2-0.7-4.7-3-5.5z"/></svg> <span class="filter-title">No sources</span> <span id="scat-no-cat"></span> <button xx class="src-button filter-button" id="src-no-sources" onclick="htf.checkFilter('no-sources', 'src-')"><svg enable-background="new 0 0 14.9 14.9" version="1.1" viewBox="-2 -2 18.9 18.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m11.8 1.9c-0.8-1.2-2.1-1.8-3.8-1.6-0.8-0.3-1.6-0.4-2.4-0.1-2.3 0.8-3.9 2.4-5 4.5-1.4 2.6-0.5 6.8 2.4 8.1h0.1c0.2 0.2 0.5 0.3 0.8 0.4 0.4 0.6 0.9 1.1 1.6 1.3 1.9 0.7 4.1 0.1 5.5-1.2 0.9-0.6 1.6-1.4 2-2.4 1-0.9 1.6-2.2 1.8-3.5 0.3-2.2-0.7-4.7-3-5.5z"/></svg> <span class="filter-title">No sources</span> <span id="ssrc-no-sources"></span>
</button> </button>
<button xx id="selectAllCats" class="filter-all" onclick="htf.showAll('cats')"> <button xx id="selectAllSources" class="filter-all" onclick="htf.showAll('sources')">
All sources All sources
</button> </button>
</div> </div>

View File

@ -19,8 +19,3 @@
<a href="https://panduan.lumbung.space/share/684ea8a2-bc47-4111-acf2-f88a200b640f">Imprint</a> - <a href="https://panduan.lumbung.space/share/8a742222-2561-4d67-a9f1-6c7c4fe8bead">Privacy Policy</a> - <a href="https://panduan.lumbung.space/share/507566f6-6b7e-402e-bfd4-034feebdcba6">Glossary</a> - <a href="https://panduan.lumbung.space/share/ef6f6638-856d-4c9a-ab89-d82af567aba4">Terms of Use</a> <a href="https://panduan.lumbung.space/share/684ea8a2-bc47-4111-acf2-f88a200b640f">Imprint</a> - <a href="https://panduan.lumbung.space/share/8a742222-2561-4d67-a9f1-6c7c4fe8bead">Privacy Policy</a> - <a href="https://panduan.lumbung.space/share/507566f6-6b7e-402e-bfd4-034feebdcba6">Glossary</a> - <a href="https://panduan.lumbung.space/share/ef6f6638-856d-4c9a-ab89-d82af567aba4">Terms of Use</a>
</div> </div>
</footer> </footer>
<script src="{{ "js/hugotagsfilter-1.2.2.min.js" | relURL}}"></script>
<script>
document.getElementById("menu-button").onclick=function(){this.classList.toggle("active"),document.getElementById("menu").classList.toggle("active")},submenuLinks=document.querySelectorAll(".has-submenu"),[...submenuLinks].forEach((t=>{t.addEventListener("click",(function(){t.querySelector(".submenu").classList.toggle("active")}))})),filterButtons=document.querySelectorAll(".filter-buttons"),[...filterButtons].forEach((t=>{t.addEventListener("click",(function(){t.querySeltive"),t.querySelector(".filter-by").classList.toggle("active")}))})),document.getElementById("filter-link").onclick=function(){document.getElementById("filter").classList.toggle("active")};var htfConfig={filters:[{name:"tags",prefix:"tag-",buttonClass:"tag-button",allSelector:"#selectAllTags",attrName:"data-tags",selectedPrefix:"stags-"},{name:"sectiector(".filter-buttons-dropdown").classList.toggle("acon",prefix:"sect-",buttonClass:"sect-button",allSelector:"#selectAllSections",attrName:"data-section",selectedPrefix:"ssect-"},{name:"authors",prefix:"auth-",buttonClass:"auth-button",allSelector:"#selectAllAuthors",attrName:"data-authors",selectedPrefix:"sauth-"},{name:"cats",prefix:"cat-",buttonClass:"cat-button",allSelector:"#selectAllCats",attrName:"data-cats",selectedPrefix:"scat-"}],showItemClass:"show-item",filterItemClass:"filter-item",activeButtonClass:"active",counterSelector:"selectedItemCount",populateCount:!0,setDisabledButtonClass:"disable-button"},htf=new HugoTagsFilter(htfConfig);
</script>

View File

@ -25,4 +25,5 @@
{{ with .OutputFormats.Get "rss" -}} {{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}} {{ end -}}
</head> </head>

View File

@ -7,7 +7,7 @@
</header> </header>
<div class="menu-row"> <div class="menu-row">
<nav id="menu" class="menu"> <nav id="menu" class="menu">
<img class="menu-dot" src="/img/black-dot.svg" alt="black dot"> <a href="#"><img class="menu-dot" src="/img/black-dot.svg" alt="black dot"></a>
<ul> <ul>
<li><a href="/timeline/">harvest</a></li> <li><a href="/timeline/">harvest</a></li>
{{/* <li><a href="/about/">about</a></li> */}} {{/* <li><a href="/about/">about</a></li> */}}
@ -31,17 +31,14 @@
<li><a href="https://books.lumbung.space">books</a></li> <li><a href="https://books.lumbung.space">books</a></li>
</ul> </ul>
<div class="login-menu"><a href="https://members.lumbung.space">login</a></div> <div class="login-menu"><a href="https://members.lumbung.space">login</a></div>
</nav> </nav>
{{ if .Site.Params.mainSections }}
{{- partial "filter-nav.html" . -}} {{- partial "filter-nav.html" . -}}
{{ end }}
<div class="login"><a href="https://members.lumbung.space">login</a></div> <div class="login"><a href="https://members.lumbung.space">login</a></div>
</div>
<div class="menu-button" id="menu-button"> <div class="menu-button" id="menu-button">
<div class="menu-button--line"></div> <div class="menu-button--line"></div>
<div class="menu-button--line"></div> <div class="menu-button--line"></div>
<div class="menu-button--line"></div> <div class="menu-button--line"></div>
</div> </div>
</div>

View File

@ -1,7 +1,7 @@
<div class='pen card {{ .Params.feed_name }}' data-section="{{ .Section }}" data-cats='{{- partial "data/categories.html" . -}}' data-authors='{{- partial "data/authors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'> <div class='pen card {{ .Params.feed_name }} filter-item' data-section="{{ .Section }}" data-sources='{{- partial "data/sources.html" . -}}' data-contributors='{{- partial "data/contributors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'>
<article class="h-entry pen"> <article class="h-entry pen">
<header> <header>
<div class="pen-source"><span class="from p-author">From {{ if .Params.contributors }}<b>{{range .Params.contributors}} <a href='{{ "/contributors/" | relLangURL }}{{ . | urlize }}/'> {{ . }}</a> {{end}}</b> at {{ end }}<a href="{{ "/sources/" | relLangURL }}{{ .Params.feed_name | urlize }}">{{ .Params.feed_name }}</a></span></div> <div class="pen-source"><span class="from p-author">From {{ if .Params.author }}<b>{{.Params.author}}</b> at {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ .Params.feed_name | urlize }}">{{ .Params.feed_name }}</a></span></div>
{{ $postPermalink := .Permalink}} {{ $postPermalink := .Permalink}}
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time> <time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>

View File

@ -1,4 +1,4 @@
<div class='shout card {{ .Params.feed_name }} filter-item' data-section="{{ .Section }}" data-cats='{{- partial "data/categories.html" . -}}' data-authors='{{- partial "data/authors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'> <div class='shout card {{ .Params.feed_name }} filter-item' data-section="{{ .Section }}" data-sources='{{- partial "data/sources.html" . -}}' data-contributors='{{- partial "data/contributors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'>
<article class="h-entry shout"> <article class="h-entry shout">
<header> <header>
{{ $postPermalink := .Permalink}} {{ $postPermalink := .Permalink}}
@ -45,4 +45,4 @@
</a> </a>
</footer> </footer>
</article> </article>
</div> </div>

View File

@ -1,4 +1,4 @@
<div class='social card {{ range .Params.tags }}{{ if or (eq . "lumbungkios") (eq . "lumbunggallery")}}{{.}}{{ end }}{{ end }} filter-item' data-section="{{ .Section }}" data-cats='{{- partial "data/categories.html" . -}}' data-authors='{{- partial "data/authors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'> <div class='social card {{ range .Params.tags }}{{ if or (eq . "lumbungkios") (eq . "lumbungkiosproducts")}}lumbungkios{{else if (eq . "lumbunggallery")}}{{.}}{{ end }}{{ end }} filter-item' data-section="{{ .Section }}" data-sources='{{- partial "data/sources.html" . -}}' data-contributors='{{- partial "data/contributors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'>
<article class="h-entry social"> <article class="h-entry social">
<header> <header>
{{ $postPermalink := .Permalink}} {{ $postPermalink := .Permalink}}
@ -46,4 +46,4 @@
{{ end }} {{ end }}
</footer> </footer>
</article> </article>
</div> </div>

View File

@ -1,4 +1,4 @@
<div class='video-box card filter-item' data-section="{{ .Section }}" data-cats='{{- partial "data/categories.html" . -}}' data-authors='{{- partial "data/authors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'> <div class='video-box filter-item' data-section="{{ .Section }}" data-sources='{{- partial "data/sources.html" . -}}' data-contributors='{{- partial "data/contributors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'>
<div class='video channel tape-label'><a href='{{ .Params.channel_url }}'> {{ .Params.video_channel }}</a></div> <div class='video channel tape-label'><a href='{{ .Params.channel_url }}'> {{ .Params.video_channel }}</a></div>
<div class='media' id='media-{{ .Params.uuid }}'> <div class='media' id='media-{{ .Params.uuid }}'>
<span class='video-thumbnail' id='thumb-{{ .Params.uuid }}' <span class='video-thumbnail' id='thumb-{{ .Params.uuid }}'

View File

@ -53,6 +53,11 @@
/*Main Stuff*/ /*Main Stuff*/
html {
scroll-behavior: smooth;
}
body { body {
font-size: 21px; font-size: 21px;
font-family: Gudea, sans-serif; font-family: Gudea, sans-serif;
@ -127,15 +132,15 @@ a {
max-width: 400px; max-width: 400px;
} }
.card:nth-child(even) { .post:nth-child(even) {
transform: rotate(-1deg); transform: rotate(-1deg);
} }
.card:nth-child(odd) { .post:nth-child(odd) {
transform: rotate(1deg); transform: rotate(1deg);
} }
.card:nth-child(5) { .post:nth-child(5) {
transform: rotate(2deg); transform: rotate(2deg);
} }
@ -196,7 +201,7 @@ a {
.menu-row { .menu-row {
margin: 0 auto; margin: 0 auto;
max-width: fit-content; max-width: 80%;
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -204,6 +209,7 @@ a {
position: sticky; position: sticky;
top: 15px; top: 15px;
z-index: 99; z-index: 99;
max-width: fit-content;
} }
.menu-row .menu .filter-link { .menu-row .menu .filter-link {
@ -332,6 +338,7 @@ a {
align-items: center; align-items: center;
border: 2px solid #333; border: 2px solid #333;
padding: 0 1.5rem; padding: 0 1.5rem;
background: #fff;
} }
.login a { .login a {
@ -791,7 +798,7 @@ div.pen-source {
/* gallery cards */ /* gallery cards */
.card.social.lumbunggallery { .card.social.lumbunggallery, .card.social.lumbunggallery .post-footer a {
border-color: var(--gallery-dark); border-color: var(--gallery-dark);
background-color: var(--gallery-light); background-color: var(--gallery-light);
color: var(--gallery-dark); color: var(--gallery-dark);
@ -1096,6 +1103,8 @@ li.page-item:after {
z-index: -100; z-index: -100;
} }
/* Landingpage */ /* Landingpage */
.welcome-text { .welcome-text {
text-align: center; text-align: center;
@ -1115,6 +1124,7 @@ li.page-item:after {
text-align: center; text-align: center;
padding: 3.5%; padding: 3.5%;
} }
.app-column a { .app-column a {
text-decoration: none; text-decoration: none;
} }
@ -1137,6 +1147,7 @@ li.page-item:after {
margin-bottom: 0.2em; margin-bottom: 0.2em;
color: #333; color: #333;
} }
.app-description { .app-description {
font-size: 14px; font-size: 14px;
display: block; display: block;
@ -1144,6 +1155,7 @@ li.page-item:after {
margin-right: auto; margin-right: auto;
} }
/* FILTER */ /* FILTER */
.filter-item, .card, .video-box { .filter-item, .card, .video-box {
@ -1151,7 +1163,7 @@ li.page-item:after {
} }
.show-item { .show-item {
display: flex !important; display: block !important;
} }
.filter-container { .filter-container {
@ -1159,22 +1171,29 @@ li.page-item:after {
background: #fff; background: #fff;
padding: 1.5rem; padding: 1.5rem;
border: 2px solid #333; border: 2px solid #333;
position: absolute;
border-top: 0; border-top: 0;
position: absolute;
left: 0; left: 0;
z-index: 99; z-index: 99;
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
} }
.filter-information { .filter-information {
width: 15%; width: 15%;
} }
#load-more {
font-size: 0.8rem;
text-decoration: underline;
cursor: pointer;
}
.filter-buttons-container { .filter-buttons-container {
align-items: center; align-items: center;
display: flex; display: flex;
width: calc(85% - 30px); width: calc(85% - 30px);
} }
.filter-buttons-container-header { .filter-buttons-container-header {
display: flex; display: flex;
@ -1194,6 +1213,7 @@ li.page-item:after {
.filter-link:hover + .filter-container { .filter-link:hover + .filter-container {
display: flex; display: flex;
} }
.filter-container:hover { .filter-container:hover {
display: flex; display: flex;
} }
@ -1201,7 +1221,7 @@ li.page-item:after {
.filter-buttons-dropdown { .filter-buttons-dropdown {
position: absolute; position: absolute;
top: 41px; top: 41px;
width: calc(100% 2px); width: calc(100% + 2px);
left: -1px; left: -1px;
background: #fff; background: #fff;
max-height: 35vh; max-height: 35vh;
@ -1213,9 +1233,18 @@ li.page-item:after {
display: none; display: none;
} }
.post.tv {
margin: auto;
}
@media all and (min-width: 980px) { @media all and (min-width: 980px) {
.filter-buttons:hover .filter-buttons-dropdown { .filter-buttons:hover .filter-buttons-dropdown {
display: block; display: block;
}
.filter-buttons:hover {
display: block;
}
} }
.filter-buttons { .filter-buttons {
@ -1247,8 +1276,7 @@ li.page-item:after {
border-color: #333333 transparent transparent transparent; border-color: #333333 transparent transparent transparent;
position: absolute; position: absolute;
right: 0.5rem; right: 0.5rem;
} }
.filter-buttons button { .filter-buttons button {
display: flex; display: flex;
@ -1268,7 +1296,7 @@ li.page-item:after {
border-bottom: 1px solid; border-bottom: 1px solid;
} }
.filter-buttons .filter-button{ .filter-buttons .filter-button {
padding: 0.6rem 0.6rem 0.6rem 1.6rem; padding: 0.6rem 0.6rem 0.6rem 1.6rem;
} }
@ -1298,15 +1326,15 @@ li.page-item:after {
.filter-buttons-dropdown button:last-child { .filter-buttons-dropdown button:last-child {
border-bottom: 0; border-bottom: 0;
} }
.filter-buttons .filter-button.active { .filter-buttons .filter-button.active {
background: #c2c2ff; background: #c2c2ff;
} }
.disable-button { .disable-button {
display: none !important; display: none !important;
} }
.page-nav { .page-nav {
display: flex; display: flex;
@ -1335,6 +1363,7 @@ li.page-item:after {
left: 0; left: 0;
} }
/* ### Timeline ### */ /* ### Timeline ### */
/* Timeline Tags */ /* Timeline Tags */
@ -1486,11 +1515,6 @@ a.timeline-url {
text-decoration: underline; text-decoration: underline;
} }
.menu-row {
font-size: 1.78vw;
}
.link-svg { .link-svg {
height: 1.2vw; height: 1.2vw;
width: 1.2vw; width: 1.2vw;
@ -1668,6 +1692,119 @@ a.timeline-url {
} }
/* EVENT LIST */
.event-list {
border: 2px solid var(--calendar-dark);
background-color: var(--calendar-light);
color: var(--calendar-dark);
margin: 1rem 0 4rem;
}
.event-list .tape-label span {
background-color: var(--calendar-dark);
}
.event-list-item {
border-top: 1px solid;
display: flex;
flex-wrap: wrap;
}
.event-list-item-head {
display: flex;
}
.event-list-item a {
color: var(--calendar-dark);
}
.event-list-item .date-start, .event-list-item .title, .event-list-item .time, .event-list-item .duration, .event-list-item .location {
display: flex;
align-items: center;
border-right: 1px solid var(--calendar-dark);
padding: 0.8rem 0;
overflow: hidden;
}
.event-list-item .date-start {
font-size: 1.2rem;
width: 110px;
padding-left: 0.4rem;
border-right: 0;
}
.event-list-item .title {
width: calc(45% - 110px);
padding-left: 0.4rem;
}
.event-list-item .p-name {
margin: 0;
font-size: 1.2rem;
padding: 0;
display: block;
width: 100%;
}
.event-list-item .p-name a {
color: var(--calendar-dark);
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: calc(100% - 20px);
display: block;
}
.event-list-item .time {
width: 20%;
}
.event-list-item .time .start-scroller {
border-bottom: 0px;
}
.event-list-item .duration {
width: 12.5%;
font-size: 0.8rem;
padding: 0.8rem 0.4rem;
}
.event-list-item .duration b {
margin-left: 3px;
}
.event-list-item .location {
min-width: unset;
width: 15%;
font-size: 0.8rem;
padding: 0.8rem 0.4rem;
}
.event-list-item .button {
width: 7.5%;
}
.event-list-item .calendar {
width: 7.5%;
display: flex;
align-items: center;
padding: 0.8rem 0.4rem;
cursor: pointer;
}
.event-list-item .description {
display: none;
border-top: 1px solid;
font-size: 1.2rem;
}
input:checked + label + .description {
display: block;
transition: ease .5s;
}
/* Page footer */ /* Page footer */
#footer { #footer {
@ -1827,6 +1964,10 @@ a.timeline-url {
font-size: 1.8vw; font-size: 1.8vw;
vertical-align: top; vertical-align: top;
} }
.menu-row {
font-size: 1.78vw;
}
} }
@ -1841,14 +1982,12 @@ a.timeline-url {
width: 100%; width: 100%;
} }
.menu, .logo {
#login {
max-height: 50px; max-height: 50px;
} }
/* menu styles */ /* menu styles */
.menu-row, #top-menu { .menu-row, #top-menu {
position: fixed !important; position: fixed !important;
z-index: 97; z-index: 97;
@ -1941,6 +2080,7 @@ a.timeline-url {
-o-transform: rotate(45deg); -o-transform: rotate(45deg);
transform: rotate(45deg); transform: rotate(45deg);
} }
.menu-button.active .menu-button--line:nth-child(1) { .menu-button.active .menu-button--line:nth-child(1) {
-webkit-transform: translateY(8px); -webkit-transform: translateY(8px);
-ms-transform: translateY(8px); -ms-transform: translateY(8px);
@ -1964,6 +2104,13 @@ a.timeline-url {
-o-transition-delay: 0.3s; -o-transition-delay: 0.3s;
transition-delay: 0.3s; transition-delay: 0.3s;
} }
.filter {
position: fixed;
right: 20px;
top: clamp(25px, 7vw, 35px);
}
.filter-container { .filter-container {
flex-wrap: wrap; flex-wrap: wrap;
border-top: 2px solid #333; border-top: 2px solid #333;
@ -1981,7 +2128,11 @@ a.timeline-url {
.filter-information { .filter-information {
width: 100%; width: 100%;
margin-bottom: 15px; margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: space-between;
} }
.filter-buttons-container { .filter-buttons-container {
display: block; display: block;
width: 100%; width: 100%;
@ -1990,6 +2141,7 @@ a.timeline-url {
.filter-buttons-container.open { .filter-buttons-container.open {
display: block !important; display: block !important;
} }
.filter-buttons-dropdown { .filter-buttons-dropdown {
z-index: 99; z-index: 99;
} }
@ -2030,7 +2182,6 @@ a.timeline-url {
transform: rotate(180deg); transform: rotate(180deg);
} }
#top-menu div.mobile-menu { #top-menu div.mobile-menu {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -2135,6 +2286,38 @@ a.timeline-url {
.f-main .logo { .f-main .logo {
max-width: unset; max-width: unset;
} }
/* EVENT LIST */
.event-list .event-list-item:nth-child(2n) {
background: #c8efff;
}
.event-list-item .date-start {
border-bottom: 1px solid;
}
.event-list-item .title {
width: calc(100% - 110px);
border-bottom: 1px solid;
border-right: 0;
}
.event-list-item .time {
width: 100%;
border-bottom: 1px solid;
border-right: 0;
padding: 0;
}
.event-list-item .duration, .event-list-item .location {
width: 42%;
}
.event-list-item .calendar {
width: 16%;
}
} }
/* mobile styles */ /* mobile styles */
@ -2143,7 +2326,7 @@ a.timeline-url {
/* card styles */ /* card styles */
.card, .card,
.card.shout { .card.network {
max-width: 83vw; max-width: 83vw;
} }