forked from ruangrupa/lumbung.space
ack + repos
This commit is contained in:
@ -0,0 +1,2 @@
|
||||
{{- $image := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) -}}
|
||||
<img width = "{{- $image.Width -}}" height = "{{- $image.Height -}}" alt = "{{- .PlainText | htmlUnescape -}}" src = "{{- $image.RelPermalink -}}">
|
30
lumbung-theme/layouts/_default/baseof.html
Normal file
30
lumbung-theme/layouts/_default/baseof.html
Normal file
@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
<script>
|
||||
function toggleDescription(id){
|
||||
document.querySelector(id).classList.toggle("collapsed");
|
||||
}
|
||||
function loadPlayer(id, embed_path){
|
||||
media = document.querySelector('#media-'+ id)
|
||||
|
||||
var iframe = document.createElement('iframe');
|
||||
iframe.src = embed_path + '?autoplay=1&title=0';
|
||||
iframe.width = 560;
|
||||
iframe.height = 315;
|
||||
iframe.frameBorder = 0;
|
||||
iframe.sandbox = "allow-same-origin allow-scripts allow-popups" ;
|
||||
media.appendChild(iframe);
|
||||
document.querySelector('#thumb-'+ id).remove();
|
||||
}
|
||||
</script>
|
||||
|
||||
</html>
|
||||
|
36
lumbung-theme/layouts/_default/list.html
Normal file
36
lumbung-theme/layouts/_default/list.html
Normal file
@ -0,0 +1,36 @@
|
||||
{{ define "main" }}
|
||||
<section class='entries'>
|
||||
<div class="h-feed">
|
||||
{{ range (.Paginator 13).Pages }}
|
||||
|
||||
{{ if in .Params.categories "tv"}}
|
||||
|
||||
{{- partial "video_box.html" . -}}
|
||||
|
||||
{{ else if in .Params.categories "calendar" }}
|
||||
|
||||
{{- partial "calendar_card.html" . -}}
|
||||
|
||||
{{ else if in .Params.categories "network" }}
|
||||
|
||||
{{- partial "network_card.html" . -}}
|
||||
|
||||
{{ else if in .Params.categories "shouts" }}
|
||||
|
||||
{{- partial "shout_card.html" . -}}
|
||||
|
||||
{{ else }}
|
||||
|
||||
{{- partial "card.html" . -}}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<nav class="pagination">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</nav>
|
||||
|
||||
</main>
|
||||
{{ end }}
|
16
lumbung-theme/layouts/_default/single.html
Normal file
16
lumbung-theme/layouts/_default/single.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<main class="main">
|
||||
<article class="h-entry">
|
||||
<header>
|
||||
<h1 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h1>
|
||||
<p>
|
||||
Published by <a class="p-author" href="/about">{{ $.Param "author" }}</a>
|
||||
on <time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
||||
</p>
|
||||
|
||||
<div class="e-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
Reference in New Issue
Block a user