Initial cut
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
<article class="pa3 pa4-ns nested-copy-line-height">
|
||||
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
{{- .Content -}}
|
||||
</section>
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Paginator.Pages }}
|
||||
<div class="relative w-100 w-30-l mb4 bg-white">
|
||||
{{ .Render "session-card" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{- template "_internal/pagination.html" . -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,18 @@
|
||||
{{ define "main" }}
|
||||
{{/*
|
||||
This template is the same as the default and is here to demonstrate that if you have a content directory called "post" you can create a layouts directory, just for that section.
|
||||
*/}}
|
||||
<article class="pa3 pa4-ns nested-copy-line-height">
|
||||
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
<aside class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range (.Paginate .Sections).Pages }}
|
||||
<div class="relative w-100 w-30-l mb4 bg-white">
|
||||
{{ .Render "table-card" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</aside>
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</article>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,16 @@
|
||||
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
|
||||
<div class="bg-white mb3 pa4 gray overflow-hidden">
|
||||
{{with .CurrentSection.Title }}<span class="f6 db">{{ . }}</span>{{end}}
|
||||
<h1 class="f3 near-black">
|
||||
<a href="{{ .RelPermalink }}" class="link black dim">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</h1>
|
||||
<div class="nested-links f5 lh-copy nested-copy-line-height">
|
||||
{{ .Summary }}
|
||||
{{ partial "session-details.html" . }}
|
||||
</div>
|
||||
<a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
|
||||
{{ define "main" }}
|
||||
<div class="flex-l mt2 mw8 center">
|
||||
<article class="flex-l flex-wrap justify-between mw8 center ph3">
|
||||
<header class="mt4 w-100">
|
||||
<h1 class="f1">
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
|
||||
<div class="bg-white mb3 pa4 gray overflow-hidden">
|
||||
<div class="nested-links f5 lh-copy nested-copy-line-height">
|
||||
{{ partial "session-details.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links {{ $.Param "text_color" | default "mid-gray" }} {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl4-l" "pr4-l" }} w-two-thirds-l">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,19 @@
|
||||
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
|
||||
<div class="bg-white mb3 pa4 gray overflow-hidden">
|
||||
<h1 class="f3 near-black">
|
||||
<a href="{{ .RelPermalink }}" class="link black dim">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</h1>
|
||||
<div class="nested-links f5 lh-copy nested-copy-line-height">
|
||||
{{ $gm := or .Params.GM .Parent.Params.GM }}
|
||||
<ul class="list">
|
||||
<li>Game Master: <a href='/gmprofile/{{ $gm }}' class="link">{{ $gm }}</a></li>
|
||||
{{ partial "session-type.html" . }}
|
||||
<li>Seat reservation fee<a href="/reservation-fee" ><img src="/info.png" class="w100 mw5-ns" style="width: 16px" alt="Info on seat reservation fees" /></a>: ${{ .Params.seat_fee }} {{- if ne nil .Params.patreon.seat_fee }} (Patreons<a href="/patreon-reservation-fee" ><img src="/info.png" class="w100 mw5-ns" style="width: 16px" alt="Info on Patreon seat reservation fees" /></a> {{if .Params.patreon.seat_fee}}${{ .Params.patreon.seat_fee }}{{else}}FREE{{- end}}){{else}}NON {{ .Params.patreon.seat_fee }}{{- end}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ .Parent.Param "read_more_copy" | default (i18n "readMore") }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user