Archived
This commit is contained in:
@@ -1,23 +1,32 @@
|
||||
{{ define "main" }}
|
||||
<section class="entries">
|
||||
<section class='entries'>
|
||||
<div class="h-feed">
|
||||
{{ range .Pages }}
|
||||
<div class='card'>
|
||||
<article class="h-entry">
|
||||
<header>
|
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
||||
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
||||
</header>
|
||||
{{ if .Truncated }}
|
||||
<div class="p-summary truncated">
|
||||
{{ .Summary }}
|
||||
<p><a href="{{ .RelPermalink }}">Read More…</a></p>
|
||||
{{ else }}
|
||||
<div class="p-summary">
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
{{ 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 }}
|
||||
|
||||
{{- partial "card.html" . -}}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<nav class="pagination">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</nav>
|
||||
|
||||
</main>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<section class='entries'>
|
||||
<div class="h-feed">
|
||||
{{ range (.Paginator 10).Pages }}
|
||||
{{ range (.Paginator 13).Pages }}
|
||||
|
||||
{{ if in .Params.categories "tv"}}
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
|
||||
{{- partial "calendar_card.html" . -}}
|
||||
|
||||
{{ else if in .Params.categories "network" }}
|
||||
|
||||
{{- partial "network_card.html" . -}}
|
||||
|
||||
{{ else }}
|
||||
|
||||
{{- partial "card.html" . -}}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<div class='card calendar'>
|
||||
<article class="h-entry calendar">
|
||||
{{ $t := (time .Params.event_end) }}
|
||||
<div class='card calendar {{ if $t.Before now }}past{{end}}'>
|
||||
<article class="h-event calendar ">
|
||||
<header>
|
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
||||
</header>
|
||||
@@ -15,9 +16,9 @@
|
||||
<div class='calendar-duration'>Duration: <b>{{ .Params.duration }}</b></div>
|
||||
<input class='descr_button' type='checkbox' id='toggle-{{ .Params.uid }}'/>
|
||||
<label class='calendar' for='toggle-{{ .Params.uid }}'>↕</label>
|
||||
<div class='calendar-location'>{{ .Params.location | markdownify }}</div>
|
||||
<div class='calendar-location p-location'>{{ .Params.location | markdownify }}</div>
|
||||
|
||||
<div class='calendar description' id='event-{{ .Params.uid }}'>
|
||||
<div class='calendar description p-description' id='event-{{ .Params.uid }}'>
|
||||
{{.Content}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,4 +26,5 @@
|
||||
|
||||
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<div class='card calendar'>
|
||||
<article class="h-entry calendar">
|
||||
<header>
|
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
||||
</header>
|
||||
<div class='start-scroller'>
|
||||
<marquee behavior="scroll" direction="left">
|
||||
{{ .Params.localized_begin | markdownify }}
|
||||
</marquee>
|
||||
</div>
|
||||
<div class='calendar metadata'>
|
||||
<div class='calendar-duration'>Duration: <b>{{ .Params.duration }}</b></div>
|
||||
<input class='descr_button' type='checkbox' id='toggle-{{ .Params.uid }}'/>
|
||||
<label class='calendar' for='toggle-{{ .Params.uid }}'>↕</label>
|
||||
<div class='calendar-location'>{{ .Params.location | markdownify }}</div>
|
||||
<div class='calendar description' id='event-{{ .Params.uid }}'>
|
||||
{{.Content}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
</div>
|
||||
@@ -0,0 +1,33 @@
|
||||
<div class='network card'>
|
||||
<article class="h-entry network">
|
||||
<header>
|
||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
||||
<div class="header-metadata">
|
||||
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
||||
<div class="filler"></div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="network-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="p-summary {{if .Truncated}} truncated {{end}} img" >
|
||||
{{ with (index (.Resources.ByType "image") 0) }}
|
||||
{{ $thumb := .Fit "540x360"}}
|
||||
<div class="summary-image">
|
||||
<img src="{{ $thumb.Permalink }}" alt="{{ .Title }}">
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="summary-text">
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ if .Truncated }}
|
||||
<footer class='post-footer'>
|
||||
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div>
|
||||
<div class='footer-filler'></div>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
||||
</article>
|
||||
</div>
|
||||
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="../../static/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class='side-bar calendar'>
|
||||
<article class="h-entry calendar">
|
||||
<header>
|
||||
<h3 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
||||
|
||||
</header>
|
||||
<div class='start-scroller'>
|
||||
<marquee behavior="scroll" direction="left">
|
||||
{{ .Params.localized_begin | markdownify }}
|
||||
</marquee>
|
||||
</div>
|
||||
<div class='calendar metadata'>
|
||||
<div class='calendar-duration'>Duration: <b>{{ .Params.duration }}</b></div>
|
||||
<input class='descr_button' type='checkbox' id='toggle-{{ .Params.uid }}'/>
|
||||
<label class='calendar' for='toggle-{{ .Params.uid }}'>↕</label>
|
||||
<div class='calendar-location'>{{ .Params.location | markdownify }}</div>
|
||||
<div class='calendar description' id='event-{{ .Params.uid }}'>
|
||||
{{.Content}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user