Compare commits
	
		
			22 Commits
		
	
	
		
			feature/le
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b74b419197 | |||
| 16194c23a1 | |||
| 5fe7cacea3 | |||
| f68fc86ca3 | |||
| a722904938 | |||
| 856ff9851e | |||
| e07393b97e | |||
| 600d242be8 | |||
| 5b06fee300 | |||
| 73f3d53fff | |||
| 6886deae8c | |||
| 90669cc2af | |||
| d3797f83dd | |||
| 8e05b2b975 | |||
| 1a8e642351 | |||
| a15379a028 | |||
| 5b5db0654e | |||
| 29c68ea84c | |||
| 3d974383f5 | |||
| b017e20443 | |||
| a9ced785ba | |||
| 51b89b404c | 
| @ -153,7 +153,7 @@ networks: | |||||||
|  |  | ||||||
| configs: | configs: | ||||||
|   feeds_list: |   feeds_list: | ||||||
|     name: beta_lumbung_space_feeds_list_v4 |     name: beta_lumbung_space_feeds_list_v8 | ||||||
|     file: feeds_list.txt |     file: feeds_list.txt | ||||||
|   feeds_list_pen: |   feeds_list_pen: | ||||||
|     name: beta_lumbung_space_feeds_list_pen_v2 |     name: beta_lumbung_space_feeds_list_pen_v2 | ||||||
|  | |||||||
| @ -4,6 +4,7 @@ title = "lumbung.space" | |||||||
| theme = "lumbung-theme" | theme = "lumbung-theme" | ||||||
| pluralizeListTitles = "false" | pluralizeListTitles = "false" | ||||||
| paginate = 20 | paginate = 20 | ||||||
|  | hasCJKlanguage = "true" | ||||||
|  |  | ||||||
| [params] | [params] | ||||||
|     logo = "/img/logo.svg" |     logo = "/img/logo.svg" | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [31.501803673432892, 34.46684826773766] |         "coordinates": [34.46684826773766, 31.501803673432892] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "The Question of Funding" |         "groupName": "The Question of Funding" | ||||||
| @ -207,16 +207,6 @@ | |||||||
|         "groupName": "Jumana Emil Abboud" |         "groupName": "Jumana Emil Abboud" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     { |  | ||||||
|       "type": "Feature", |  | ||||||
|       "geometry": { |  | ||||||
|         "type": "Point", |  | ||||||
|         "coordinates": [-58.424717920825884, -34.60590628674898] |  | ||||||
|       }, |  | ||||||
|       "properties": { |  | ||||||
|         "groupName": "La Intermundial Holobiente" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |     { | ||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
| @ -432,7 +422,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [5.560014, -0.200965] |         "coordinates": [-0.200965, 5.560014] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Nubuke Foundation - Arts Collaboratory" |         "groupName": "Nubuke Foundation - Arts Collaboratory" | ||||||
| @ -452,7 +442,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [33.897204, 35.513829] |         "coordinates": [35.513829, 33.897204] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Temporary Art Platform - Arts Collaboratory" |         "groupName": "Temporary Art Platform - Arts Collaboratory" | ||||||
| @ -472,7 +462,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [4.635649, -74.087834] |         "coordinates": [-74.087834, 4.635649] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Lugar a Dudas - Arts Collaboratory" |         "groupName": "Lugar a Dudas - Arts Collaboratory" | ||||||
| @ -482,7 +472,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [3.451646, -76.549099] |         "coordinates": [-76.549099, 3.451646] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Helena Producciones - Arts Collaboratory" |         "groupName": "Helena Producciones - Arts Collaboratory" | ||||||
| @ -492,7 +482,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-33.940484, 18.463735] |         "coordinates": [18.463735, -33.940484] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Gugulective - Arts Collaboratory" |         "groupName": "Gugulective - Arts Collaboratory" | ||||||
| @ -512,7 +502,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [14.624033, -90.516175] |         "coordinates": [-90.516175, 14.624033] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "La Torana - Arts Collaboratory" |         "groupName": "La Torana - Arts Collaboratory" | ||||||
| @ -522,7 +512,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-6.218968, 106.832686] |         "coordinates": [106.832686, -6.218968] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "ruangrupa" |         "groupName": "ruangrupa" | ||||||
| @ -532,7 +522,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-26.204103, 28.047305] |         "coordinates": [28.047305, -26.204103] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Keleketla! Library - Arts Collaboratory", |         "groupName": "Keleketla! Library - Arts Collaboratory", | ||||||
| @ -544,7 +534,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [24.861462, 67.063473] |         "coordinates": [67.063473, 24.861462] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Vasl Artists' Association - Arts Collaboratory" |         "groupName": "Vasl Artists' Association - Arts Collaboratory" | ||||||
| @ -554,7 +544,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [6.453060, 3.379206] |         "coordinates": [3.379206, 6.453060] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Video Art Network Lagos - Arts Collaboratory" |         "groupName": "Video Art Network Lagos - Arts Collaboratory" | ||||||
| @ -564,7 +554,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-16.507456, -68.122441] |         "coordinates": [-68.122441, -16.507456] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Casa Tres Patios - Arts Collaboratory" |         "groupName": "Casa Tres Patios - Arts Collaboratory" | ||||||
| @ -574,7 +564,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-12.046374, -77.033966] |         "coordinates": [-77.033966, -12.046374] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Bisagra - Arts Collaboratory" |         "groupName": "Bisagra - Arts Collaboratory" | ||||||
| @ -584,7 +574,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [14.565859, 121.028812] |         "coordinates": [121.028812, 14.565859] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Green Papaya Art Projects - Arts Collaboratory" |         "groupName": "Green Papaya Art Projects - Arts Collaboratory" | ||||||
| @ -594,7 +584,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-25.965053, 32.570926] |         "coordinates": [32.570926, -25.965053] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Nucleo de Arte - Arts Collaboratory" |         "groupName": "Nucleo de Arte - Arts Collaboratory" | ||||||
| @ -604,7 +594,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [19.433735, -99.127662] |         "coordinates": [-99.127662, 19.433735] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Casa Gallina - Arts Collaboratory" |         "groupName": "Casa Gallina - Arts Collaboratory" | ||||||
| @ -614,7 +604,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-34.905134, -56.168350] |         "coordinates": [-56.168350, -34.905134] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Espacio de Arte Contemporáneo - Arts Collaboratory" |         "groupName": "Espacio de Arte Contemporáneo - Arts Collaboratory" | ||||||
| @ -624,7 +614,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [18.964700, 72.825833] |         "coordinates": [72.825833, 18.964700] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Clark House Initiative - Arts Collaboratory" |         "groupName": "Clark House Initiative - Arts Collaboratory" | ||||||
| @ -634,7 +624,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [11.5636628, 104.9165275] |         "coordinates": [104.9165275, 11.5636628] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "SA SA BASSAC - Arts Collaboratory" |         "groupName": "SA SA BASSAC - Arts Collaboratory" | ||||||
| @ -664,7 +654,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-33.447503, -70.648204] |         "coordinates": [-70.648204, -33.447503] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Metales Pesados - Arts Collaboratory" |         "groupName": "Metales Pesados - Arts Collaboratory" | ||||||
| @ -674,7 +664,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-23.5351122, -46.6523816] |         "coordinates": [-46.6523816, -23.5351122] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "Casa do Povo - Arts Collaboratory" |         "groupName": "Casa do Povo - Arts Collaboratory" | ||||||
| @ -694,7 +684,7 @@ | |||||||
|       "type": "Feature", |       "type": "Feature", | ||||||
|       "geometry": { |       "geometry": { | ||||||
|         "type": "Point", |         "type": "Point", | ||||||
|         "coordinates": [-7.7830803, 110.3661793] |         "coordinates": [110.3661793, -7.7830803] | ||||||
|       }, |       }, | ||||||
|       "properties": { |       "properties": { | ||||||
|         "groupName": "KUNCI Cultural Studies Center - Arts Collaboratory" |         "groupName": "KUNCI Cultural Studies Center - Arts Collaboratory" | ||||||
|  | |||||||
| @ -12,3 +12,6 @@ https://ruangrupa.id/feed/ | |||||||
| https://wajukuuarts.wordpress.com/feed/ | https://wajukuuarts.wordpress.com/feed/ | ||||||
| https://www.masartemasaccion.org/feed/?lang=en | https://www.masartemasaccion.org/feed/?lang=en | ||||||
| https://www.ruralschoolofeconomics.info/rss.xml | https://www.ruralschoolofeconomics.info/rss.xml | ||||||
|  | https://riwanua.id/feed/ | ||||||
|  | https://zapier.com/engine/rss/9657521/balik | ||||||
|  |  | ||||||
|  | |||||||
| @ -22,6 +22,9 @@ | |||||||
|                   {{- partial "partials/shout_card.html" . -}} |                   {{- partial "partials/shout_card.html" . -}} | ||||||
|                 {{ end }} |                 {{ end }} | ||||||
|  |  | ||||||
|  |             {{ else if in .Params.sources "pen.lumbung.space" }} | ||||||
|  |                   {{- partial "partials/pen_card.html" . -}} | ||||||
|  |  | ||||||
|             {{ else if eq .Section "social" }} |             {{ else if eq .Section "social" }} | ||||||
|               {{- partial "partials/social_card.html" . -}} |               {{- partial "partials/social_card.html" . -}} | ||||||
|  |  | ||||||
|  | |||||||
| @ -2,13 +2,11 @@ | |||||||
|     <main class="main single"> |     <main class="main single"> | ||||||
|       <article class="h-entry"> |       <article class="h-entry"> | ||||||
|       <header> |       <header> | ||||||
|         <h1 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h1> |         <h1 class="p-name single"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h1> | ||||||
|         <p> |         <div class="metadata"><span class="from p-author">{{ if .Params.contributors }}By <b>{{range .Params.contributors}} <a href='{{ "/contributors/" | relLangURL }}{{ . | urlize }}/'> {{ . }},</a> {{ end }}</b>{{ end }} {{with .Params.original_link }}originally posted on <b><a href="{{ . }}">{{ end }}{{ .Params.feed_name }}</a></b> on <time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time></span></div> | ||||||
|           Published by <a class="p-author" href="/about">{{ $.Param "author" }}</a> |       </header> | ||||||
|           on <time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time> |  | ||||||
|         </p> |  | ||||||
|  |  | ||||||
|       <div class="e-content"> |       <div class="e-content"> | ||||||
|  |         {{with .Params.featured_image}}<img src="{{.}}"></img>{{end}} | ||||||
|         {{ .Content }} |         {{ .Content }} | ||||||
|       </div> |       </div> | ||||||
|       </article> |       </article> | ||||||
|  | |||||||
| @ -23,6 +23,16 @@ | |||||||
|                   {{- partial "partials/shout_card.html" . -}} |                   {{- partial "partials/shout_card.html" . -}} | ||||||
|                 {{ end }} |                 {{ end }} | ||||||
|  |  | ||||||
|  |             {{ else if eq .Section "pen" }} | ||||||
|  |                 {{ if in .Params.sources "pen.lumbung.space" }} | ||||||
|  |                   {{- partial "partials/pen_card.html" . -}} | ||||||
|  |                 {{ end }} | ||||||
|  |  | ||||||
|  |             {{ else if eq .Section "timeline"}} | ||||||
|  |                 {{ if in .Params.sources "pen.lumbung.space" }} | ||||||
|  |                   {{- partial "partials/pen_card.html" . -}} | ||||||
|  |                 {{ end }} | ||||||
|  |  | ||||||
|             {{ else if eq .Section "social" }} |             {{ else if eq .Section "social" }} | ||||||
|               {{- partial "partials/social_card.html" . -}} |               {{- partial "partials/social_card.html" . -}} | ||||||
|  |  | ||||||
|  | |||||||
| @ -9,8 +9,14 @@ | |||||||
|     <nav id="menu" class="menu"> |     <nav id="menu" class="menu"> | ||||||
|         <a href="#"><img class="menu-dot" src="/img/black-dot.svg" alt="black dot"></a> |         <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>  */}} | ||||||
|  |             <li class="has-submenu"><a href="/timeline">harvest</a> | ||||||
|  |                 <ul class="submenu"> | ||||||
|  |                     <li><a href="/timeline/">all harvests</a></li> | ||||||
|  |                     <li><a href="/timeline/damdam/">damdam</a></li> | ||||||
|  |                 </ul> | ||||||
|  |             </li> | ||||||
|             <li class="has-submenu">about |             <li class="has-submenu">about | ||||||
|                 <ul class="submenu"> |                 <ul class="submenu"> | ||||||
|                     <li><a href="/about/">about us</a></li> |                     <li><a href="/about/">about us</a></li> | ||||||
| @ -25,7 +31,7 @@ | |||||||
|             <li><a href="/publishers/">publishers</a></li> |             <li><a href="/publishers/">publishers</a></li> | ||||||
|             <li class="has-submenu">ekonomi |             <li class="has-submenu">ekonomi | ||||||
|                 <ul class="submenu"> |                 <ul class="submenu"> | ||||||
|                     {{/*  <li><a href="/tags/lumbungkiosproducts/">kios</a></li>  */}} |                     <li><a href="/tags/lumbungkiosproducts/">kios</a></li> | ||||||
|                     <li><a href="/tags/lumbunggallery/">gallery</a></li> |                     <li><a href="/tags/lumbunggallery/">gallery</a></li> | ||||||
|                 </ul> |                 </ul> | ||||||
|             </li> |             </li> | ||||||
|  | |||||||
| @ -1,30 +1,35 @@ | |||||||
|     <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" . -}}'> |     <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.author }}<b>{{.Params.author}}</b> at {{ end }}<a href="{{ "/categories/" | 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="{{ "/sources/" | 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> | ||||||
|           <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>  | ||||||
|            |  | ||||||
|         </header> |         </header> | ||||||
|          |         {{$first_image := ""}} | ||||||
|         {{ with (index (.Resources.ByType "image") 0) }} |         {{$matches := findRESubmatch `<img\s.*?src=(?:'|")([^'">]+)(?:'|")` .Content 1 }} | ||||||
|         {{ $height := add .Height 0.0}} |         {{range $matches}}{{$first_image = index . 1}}{{end}} | ||||||
|         {{ $ratio := div $height .Width}} |         {{with .Resources.Get $first_image}} | ||||||
|         {{ $thumb := .Fit "540x540 q80 webp"}} |         {{/* Check for resource type since some TIFFS show up as image, but can not do image operations. Then we can ignore them. */}} | ||||||
|         <div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}"> |           {{if .ResourceType}} | ||||||
|           <div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">  |             {{ $height := add .Height 0.0}} | ||||||
|             <a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}"  alt="{{ .Title }}"> </a> |             {{ $ratio := div $height .Width}} | ||||||
|           </div> |             {{ $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 }} |           {{ else }} | ||||||
|           <div class="p-summary"> |           <div class="p-summary"> | ||||||
|             {{ end }} |           {{ end }} | ||||||
|  |       {{ else }} | ||||||
|  |           <div class="p-summary"> | ||||||
|  |       {{end}} | ||||||
|             <div class="summary-text"> |             <div class="summary-text"> | ||||||
|               {{ .Summary }} |               {{ .Summary }} | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|            |  | ||||||
|           <footer class='post-footer'> |           <footer class='post-footer'> | ||||||
|             <a href="{{ .RelPermalink }}"> |             <a href="{{ .RelPermalink }}"> | ||||||
|               <svg width="11" height="11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> |               <svg width="11" height="11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> | ||||||
| @ -32,5 +37,5 @@ | |||||||
|               </svg> |               </svg> | ||||||
|             </a> |             </a> | ||||||
|           </footer>             |           </footer>             | ||||||
|         </article> |       </article> | ||||||
|       </div> |     </div> | ||||||
|  | |||||||
| @ -19,7 +19,8 @@ | |||||||
|         </div> |         </div> | ||||||
|       {{end}} |       {{end}} | ||||||
|     {{ else if (.Resources.ByType "image") }} |     {{ else if (.Resources.ByType "image") }} | ||||||
|       {{ with (index (.Resources.ByType "image") 0) }} |       {{/* Somehow the image resources are iterated in reverse, so we need to get the last one*/}} | ||||||
|  |       {{ range last 1 (.Resources.ByType "image") }} | ||||||
|         {{ $img := . }} |         {{ $img := . }} | ||||||
|         {{ $height := add .Height 0.0}} |         {{ $height := add .Height 0.0}} | ||||||
|         {{ $ratio := div $height .Width}} |         {{ $ratio := div $height .Width}} | ||||||
|  | |||||||
| @ -1,8 +1,15 @@ | |||||||
| <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" | <link | ||||||
|   integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin="" /> |   rel="stylesheet" | ||||||
|  |   href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" | ||||||
|  |   integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" | ||||||
|  |   crossorigin="" | ||||||
|  | /> | ||||||
|  |  | ||||||
| <script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js" | <script | ||||||
|   integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" crossorigin=""></script> |   src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js" | ||||||
|  |   integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" | ||||||
|  |   crossorigin="" | ||||||
|  | ></script> | ||||||
|  |  | ||||||
| <div id="map"></div> | <div id="map"></div> | ||||||
|  |  | ||||||
| @ -12,6 +19,11 @@ | |||||||
|     padding-bottom: 70%; |     padding-bottom: 70%; | ||||||
|     margin-bottom: 80px; |     margin-bottom: 80px; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   .black-dot { | ||||||
|  |     background-color: black; | ||||||
|  |     border-radius: 50%; | ||||||
|  |   } | ||||||
| </style> | </style> | ||||||
|  |  | ||||||
| <script> | <script> | ||||||
| @ -20,11 +32,21 @@ | |||||||
|     attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' |     attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|  |  | ||||||
|  |   var blackDotIcon = L.divIcon({ | ||||||
|  |     className: 'black-dot', | ||||||
|  |     iconSize: [20, 20], | ||||||
|  |     iconAnchor: [10, 10] | ||||||
|  |   }); | ||||||
|  |  | ||||||
|  |  | ||||||
|   // Create makers layer group |   // Create makers layer group | ||||||
|   var makers = L.layerGroup(); |   var makers = L.layerGroup(); | ||||||
|   {{ with getJSON "https://kios-admin.lumbung.space/api/makers"}} |   {{ with getJSON "https://kios-admin.lumbung.space/api/makers"}} | ||||||
|     {{ range .docs }} |     {{ range .docs }} | ||||||
|       var makerMarker = L.marker(L.GeoJSON.coordsToLatLng({{ .location }})); |     var makerMarker = L.marker(L.GeoJSON.coordsToLatLng({{ .location }}), { | ||||||
|  |       icon: blackDotIcon   | ||||||
|  |     }); | ||||||
|       makerMarker.bindPopup({{ .name }}) |       makerMarker.bindPopup({{ .name }}) | ||||||
|       makers.addLayer(makerMarker); |       makers.addLayer(makerMarker); | ||||||
|     {{ end }} |     {{ end }} | ||||||
| @ -34,7 +56,9 @@ | |||||||
|   var retailers = L.layerGroup(); |   var retailers = L.layerGroup(); | ||||||
|   {{ with getJSON "https://kios-admin.lumbung.space/api/retailers"}} |   {{ with getJSON "https://kios-admin.lumbung.space/api/retailers"}} | ||||||
|     {{ range .docs }} |     {{ range .docs }} | ||||||
|       var retailerMarker = L.marker(L.GeoJSON.coordsToLatLng({{ .location }})); |       var retailerMarker = L.marker(L.GeoJSON.coordsToLatLng({{ .location }}), { | ||||||
|  |         icon: blackDotIcon   | ||||||
|  |       }); | ||||||
|       retailerMarker.bindPopup({{ .name }}) |       retailerMarker.bindPopup({{ .name }}) | ||||||
|       retailers.addLayer(retailerMarker); |       retailers.addLayer(retailerMarker); | ||||||
|     {{ end }} |     {{ end }} | ||||||
| @ -45,11 +69,11 @@ | |||||||
|   {{ with getJSON "https://kios-admin.lumbung.space/api/dispatches"}} |   {{ with getJSON "https://kios-admin.lumbung.space/api/dispatches"}} | ||||||
|     {{ range .docs }} |     {{ range .docs }} | ||||||
|       var start = L.GeoJSON.coordsToLatLng({{ .startingPoint.location }}); |       var start = L.GeoJSON.coordsToLatLng({{ .startingPoint.location }}); | ||||||
|       var startMarker = L.marker(start); |       var startMarker = L.marker(start, {icon: blackDotIcon}); | ||||||
|       startMarker.bindPopup({{ .startingPoint.name }}); |       startMarker.bindPopup({{ .startingPoint.name }}); | ||||||
|  |  | ||||||
|       var end = L.GeoJSON.coordsToLatLng({{ .endPoint.location }}); |       var end = L.GeoJSON.coordsToLatLng({{ .endPoint.location }}); | ||||||
|       var endMarker = L.marker(end); |       var endMarker = L.marker(end, {icon: blackDotIcon}); | ||||||
|       endMarker.bindPopup({{ .endPoint.name }}); |       endMarker.bindPopup({{ .endPoint.name }}); | ||||||
|  |  | ||||||
|       // Add line to display dispatch route |       // Add line to display dispatch route | ||||||
| @ -75,8 +99,8 @@ | |||||||
|   {{ end }} |   {{ end }} | ||||||
|  |  | ||||||
|   var map = L.map('map', { |   var map = L.map('map', { | ||||||
|     center: [0, 0], |     center: [-6.1815, 106.8228], | ||||||
|     zoom: 2, |     zoom: 3, | ||||||
|     layers: [osm, dispatches] |     layers: [osm, dispatches] | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|  | |||||||
| @ -86,6 +86,7 @@ a { | |||||||
|  |  | ||||||
| .container .single { | .container .single { | ||||||
|     max-width: 65ch; |     max-width: 65ch; | ||||||
|  |     margin: auto; | ||||||
| } | } | ||||||
|  |  | ||||||
| .card { | .card { | ||||||
| @ -555,11 +556,11 @@ footer.post-footer { | |||||||
| } | } | ||||||
|  |  | ||||||
| .shout .p-summary.portrait { | .shout .p-summary.portrait { | ||||||
|     /* flex-direction: row; */ |     flex-direction: column;  | ||||||
| } | } | ||||||
|  |  | ||||||
| .shout .p-summary.landscape { | .shout .p-summary.landscape  | ||||||
|     flex-direction: column; | {    flex-direction: column; | ||||||
| } | } | ||||||
|  |  | ||||||
| .shout .summary-image > img { | .shout .summary-image > img { | ||||||
| @ -1011,10 +1012,10 @@ label:hover { | |||||||
|     display: flex; |     display: flex; | ||||||
| } | } | ||||||
|  |  | ||||||
| /* publishers map */ | /* leaflet map */ | ||||||
| #map { | #map { | ||||||
|     margin-top: 2rem; |     margin-top: 2rem; | ||||||
|     margin-bottom: 4rem; |     margin-bottom: 4rem !important; | ||||||
|  |  | ||||||
|     /* makes map "break out of container" and take full-width */ |     /* makes map "break out of container" and take full-width */ | ||||||
|     width: 100vw !important; |     width: 100vw !important; | ||||||
| @ -1942,6 +1943,10 @@ input:checked + label + .description { | |||||||
|     height: auto; |     height: auto; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .single header{ | ||||||
|  |     margin:0; | ||||||
|  | } | ||||||
|  |  | ||||||
| .single .h-entry figure{ | .single .h-entry figure{ | ||||||
|     margin: 0 0 20px; |     margin: 0 0 20px; | ||||||
| } | } | ||||||
| @ -1950,6 +1955,27 @@ input:checked + label + .description { | |||||||
|     margin: 0; |     margin: 0; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .single h1 { | ||||||
|  |   padding: 0.5rem; | ||||||
|  |   background: #fff; | ||||||
|  |   width:100%; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .e-content{ | ||||||
|  |     padding:1em; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .single .metadata{ | ||||||
|  |    border: 2px solid #333; | ||||||
|  |   font-size: 14px; | ||||||
|  |   padding: 0.5rem; | ||||||
|  |   align-items: center; | ||||||
|  |   background: #e8e8e8; | ||||||
|  |   position:relative; | ||||||
|  |   width:calc(100% + 2em); | ||||||
|  |   right:1em; | ||||||
|  | } | ||||||
|  |  | ||||||
| /* lumbung radio player widget  */ | /* lumbung radio player widget  */ | ||||||
| .lumbung-radio-player { | .lumbung-radio-player { | ||||||
|     display: flex; |     display: flex; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	