forked from ruangrupa/lumbung.space
parent
ce945e77db
commit
0e2f6a71a1
@ -0,0 +1,29 @@ |
||||
{{ define "main" }} |
||||
<main> |
||||
<section class='entries'> |
||||
|
||||
{{ $now := (now.Format "060102" ) }} |
||||
<div class="upcoming event-list"> |
||||
<div class='tape-label'><span>upcoming events</span></div> |
||||
{{ range .Pages }} |
||||
{{ $t := (substr .Params.event_end 2 8) }} |
||||
{{ $time := ( replace $t "-" "") }} |
||||
{{ if ge $time $now }} |
||||
{{- partial "event_list_item.html" . -}} |
||||
{{ end }} |
||||
{{ end }} |
||||
</div> |
||||
<div class="past event-list"> |
||||
<div class='tape-label'><span>past events</span></div> |
||||
{{ range .Pages }} |
||||
{{ $t := (substr .Params.event_end 2 8) }} |
||||
{{ $time := ( replace $t "-" "") }} |
||||
{{ if gt $now $time }} |
||||
{{- partial "event_list_item.html" . -}} |
||||
{{ end }} |
||||
{{ end }} |
||||
</div> |
||||
|
||||
</section> |
||||
</main> |
||||
{{ end }} |
@ -1,39 +1,39 @@ |
||||
<div class='book card'> |
||||
<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> |
||||
|
||||
{{ $postPermalink := .Permalink}} |
||||
</header> |
||||
<div class='book card filter-item'> |
||||
<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> |
||||
|
||||
{{ $postPermalink := .Permalink}} |
||||
</header> |
||||
|
||||
{{ with (index (.Resources.ByType "image") 0) }} |
||||
{{ $height := add .Height 0.0}} |
||||
{{ $ratio := div $height .Width}} |
||||
{{ $thumb := .Fit "540x540 q80 webp"}} |
||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a> |
||||
</div> |
||||
{{ else }} |
||||
<div class="p-summary"> |
||||
{{ end }} |
||||
<header> |
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url"> |
||||
{{.Title}}</a></h2> |
||||
</header> |
||||
<div class="summary-text"> |
||||
{{ .Summary }} |
||||
</div> |
||||
</div> |
||||
<div class="shout-source"></div> |
||||
|
||||
<footer class='post-footer'> |
||||
<div class='footer-metadata'> |
||||
<span class="from p-author">{{ if .Params.authors }}By {{range .Params.authors}}<b> <a href='{{ "/authors/" | relLangURL }}{{ . | urlize }}/'> {{ . }}</a> {{end}}</b> on{{ end }}</span> |
||||
|
||||
{{ if .Truncated }} |
||||
<div class="footer-filler"></div> |
||||
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div> |
||||
{{ end }} |
||||
</footer> |
||||
</article> |
||||
{{ with (index (.Resources.ByType "image") 0) }} |
||||
{{ $height := add .Height 0.0}} |
||||
{{ $ratio := div $height .Width}} |
||||
{{ $thumb := .Fit "540x540 q80 webp"}} |
||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a> |
||||
</div> |
||||
{{ else }} |
||||
<div class="p-summary"> |
||||
{{ end }} |
||||
<header> |
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url"> |
||||
{{.Title}}</a></h2> |
||||
</header> |
||||
<div class="summary-text"> |
||||
{{ .Summary }} |
||||
</div> |
||||
</div> |
||||
<div class="shout-source"></div> |
||||
|
||||
<footer class='post-footer'> |
||||
<div class='footer-metadata'> |
||||
<span class="from p-author">{{ if .Params.authors }}By {{range .Params.authors}}<b> <a href='{{ "/authors/" | relLangURL }}{{ . | urlize }}/'> {{ . }}</a> {{end}}</b> on{{ end }}</span> |
||||
|
||||
{{ if .Truncated }} |
||||
<div class="footer-filler"></div> |
||||
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div> |
||||
{{ end }} |
||||
</footer> |
||||
</article> |
||||
</div> |
||||
|
@ -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}} |
@ -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}} |
@ -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> |
@ -1,48 +1,48 @@ |
||||
<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" . -}}'> |
||||
<article class="h-entry shout"> |
||||
<header> |
||||
{{ $postPermalink := .Permalink}} |
||||
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time> |
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2> |
||||
</header> |
||||
|
||||
<div class="shout-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='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"> |
||||
<header> |
||||
{{ $postPermalink := .Permalink}} |
||||
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time> |
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2> |
||||
</header> |
||||
|
||||
<div class="shout-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> |
||||
|
||||
{{ if .Params.featured_image }} |
||||
{{ with $img := .Resources.GetMatch .Params.featured_image }} |
||||
{{ $height := add $img.Height 0.0}} |
||||
{{ $ratio := div $height $img.Width}} |
||||
{{ $thumb := $img.Fit "540x540 q80 webp"}} |
||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a> |
||||
</div> |
||||
{{end}} |
||||
{{ else if (.Resources.ByType "image") }} |
||||
{{ with (index (.Resources.ByType "image") 0) }} |
||||
{{ $img := . }} |
||||
{{ $height := add .Height 0.0}} |
||||
{{ $ratio := div $height .Width}} |
||||
{{ $thumb := .Fit "540x540 q80 webp"}} |
||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a> |
||||
</div> |
||||
{{ end }} |
||||
{{ else }} |
||||
<div class="p-summary"> |
||||
{{ end }} |
||||
<div class="summary-text"> |
||||
{{ .Summary }} |
||||
</div> |
||||
</div> |
||||
|
||||
<footer class='post-footer'> |
||||
<a href="{{ .RelPermalink }}"> |
||||
<svg width="11" height="11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> |
||||
<path d="M10.2172 3.892C9.86979 3.02585 9.33722 2.34509 8.61023 1.77874C8.23826 1.49028 7.72957 1.04191 7.21547 0.839212C7.21382 0.703503 7.14487 0.575079 6.97767 0.503871C5.42624 -0.162284 3.69503 0.311299 2.52647 1.51482C1.94635 2.11223 1.51951 2.8478 1.21108 3.62501C0.914861 4.3676 0.507572 5.32483 0.948415 6.07996C1.00646 6.17836 1.09356 6.24193 1.1908 6.27306C1.2735 7.35573 1.57765 8.46801 2.37847 9.21874C3.2325 10.0162 4.43613 10.3053 5.5673 10.1773C6.72371 10.0468 7.96432 9.57061 8.8816 8.82474C9.01086 8.71974 9.1274 8.60844 9.23337 8.49296C9.27968 8.4924 9.32805 8.4875 9.37839 8.4718C11.3643 7.82491 10.8101 5.37347 10.2172 3.892Z" /> |
||||
</svg> |
||||
</a> |
||||
</footer> |
||||
</article> |
||||
{{ if .Params.featured_image }} |
||||
{{ with $img := .Resources.GetMatch .Params.featured_image }} |
||||
{{ $height := add $img.Height 0.0}} |
||||
{{ $ratio := div $height $img.Width}} |
||||
{{ $thumb := $img.Fit "540x540 q80 webp"}} |
||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a> |
||||
</div> |
||||
{{end}} |
||||
{{ else if (.Resources.ByType "image") }} |
||||
{{ with (index (.Resources.ByType "image") 0) }} |
||||
{{ $img := . }} |
||||
{{ $height := add .Height 0.0}} |
||||
{{ $ratio := div $height .Width}} |
||||
{{ $thumb := .Fit "540x540 q80 webp"}} |
||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a> |
||||
</div> |
||||
{{ end }} |
||||
{{ else }} |
||||
<div class="p-summary"> |
||||
{{ end }} |
||||
<div class="summary-text"> |
||||
{{ .Summary }} |
||||
</div> |
||||
</div> |
||||
|
||||
<footer class='post-footer'> |
||||
<a href="{{ .RelPermalink }}"> |
||||
<svg width="11" height="11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> |
||||
<path d="M10.2172 3.892C9.86979 3.02585 9.33722 2.34509 8.61023 1.77874C8.23826 1.49028 7.72957 1.04191 7.21547 0.839212C7.21382 0.703503 7.14487 0.575079 6.97767 0.503871C5.42624 -0.162284 3.69503 0.311299 2.52647 1.51482C1.94635 2.11223 1.51951 2.8478 1.21108 3.62501C0.914861 4.3676 0.507572 5.32483 0.948415 6.07996C1.00646 6.17836 1.09356 6.24193 1.1908 6.27306C1.2735 7.35573 1.57765 8.46801 2.37847 9.21874C3.2325 10.0162 4.43613 10.3053 5.5673 10.1773C6.72371 10.0468 7.96432 9.57061 8.8816 8.82474C9.01086 8.71974 9.1274 8.60844 9.23337 8.49296C9.27968 8.4924 9.32805 8.4875 9.37839 8.4718C11.3643 7.82491 10.8101 5.37347 10.2172 3.892Z" /> |
||||
</svg> |
||||
</a> |
||||
</footer> |
||||
</article> |
||||
</div> |
||||
|
@ -1,49 +1,49 @@ |
||||
<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" . -}}'> |
||||
<article class="h-entry social"> |
||||
<header> |
||||
{{ $postPermalink := .Permalink}} |
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url"> |
||||
{{ range $i, $e := .Params.tags -}} |
||||
{{- if $i -}} {{ end -}} |
||||
<a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>#{{ $e | humanize | lower }}</a> |
||||
{{- end -}} |
||||
</a></h2> |
||||
</header> |
||||
<div class='social card {{ range .Params.tags }}{{ if or (eq . "lumbungkios") (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"> |
||||
<header> |
||||
{{ $postPermalink := .Permalink}} |
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url"> |
||||
{{ range $i, $e := .Params.tags -}} |
||||
{{- if $i -}} {{ end -}} |
||||
<a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>#{{ $e | humanize | lower }}</a> |
||||
{{- end -}} |
||||
</a></h2> |
||||
</header> |
||||
|
||||
{{ with (index (.Resources.ByType "video") 0) }} |
||||
{{/* TODO this current logic does not suport video & image mixed */}} |
||||
<div class="p-summary"> |
||||
<video controls width="540px" preload="none" poster="{{ $postPermalink }}/thumbnail.png"> |
||||
<source src="{{.Permalink}}" type="video/mp4"> |
||||
</video> |
||||
{{ else}} |
||||
{{ with (index (.Resources.ByType "image") 0) }} |
||||
{{ $height := add .Height 0.0}} |
||||
{{ $ratio := div $height .Width}} |
||||
{{ $thumb := .Fit "540x540 q80 webp"}} |
||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a> |
||||
</div> |
||||
{{ else }} |
||||
<div class="p-summary"> |
||||
{{ end }} |
||||
{{ end }} |
||||
<div class="summary-text"> |
||||
{{ .Summary }} |
||||
</div> |
||||
</div> |
||||
<div class="social-source"></div> |
||||
|
||||
<footer class='post-footer'> |
||||
<div class='footer-metadata'> |
||||
<span class="from p-author">{{ if .Params.contributors }}From {{range .Params.contributors}}<b> <a href='{{ "/contributors/" | relLangURL }}{{ . | urlize }}/'> {{ . }}</a> {{end}}</b> on{{ end }}</span> |
||||
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time> |
||||
</div> |
||||
{{ if .Truncated }} |
||||
<div class="footer-filler"></div> |
||||
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div> |
||||
{{ end }} |
||||
</footer> |
||||
</article> |
||||
{{ with (index (.Resources.ByType "video") 0) }} |
||||
{{/* TODO this current logic does not suport video & image mixed */}} |
||||
<div class="p-summary"> |
||||
<video controls width="540px" preload="none" poster="{{ $postPermalink }}/thumbnail.png"> |
||||
<source src="{{.Permalink}}" type="video/mp4"> |
||||
</video> |
||||
{{ else}} |
||||
{{ with (index (.Resources.ByType "image") 0) }} |
||||
{{ $height := add .Height 0.0}} |
||||
{{ $ratio := div $height .Width}} |
||||
{{ $thumb := .Fit "540x540 q80 webp"}} |
||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |
||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a> |
||||
</div> |
||||
{{ else }} |
||||
<div class="p-summary"> |
||||
{{ end }} |
||||
{{ end }} |
||||
<div class="summary-text"> |
||||
{{ .Summary }} |
||||
</div> |
||||
</div> |
||||
<div class="social-source"></div> |
||||
|
||||
<footer class='post-footer'> |
||||
<div class='footer-metadata'> |
||||
<span class="from p-author">{{ if .Params.contributors }}From {{range .Params.contributors}}<b> <a href='{{ "/contributors/" | relLangURL }}{{ . | urlize }}/'> {{ . }}</a> {{end}}</b> on{{ end }}</span> |
||||
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time> |
||||
</div> |
||||
{{ if .Truncated }} |
||||
<div class="footer-filler"></div> |
||||
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div> |
||||
{{ end }} |
||||
</footer> |
||||
</article> |
||||
</div> |
Loading…
Reference in new issue