Merge commit 'e186c5d6f740bbdb62d2c6ea304977603a55e59a' as 'themes/paperesque'
This commit is contained in:
53
themes/paperesque/layouts/_default/baseof.html
Normal file
53
themes/paperesque/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
lang="{{ .Site.LanguageCode }}"
|
||||
prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"
|
||||
>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
{{ partial "meta.html" . }}
|
||||
|
||||
<title>{{ .Title }}{{ if ne $.Site.Title .Title }} || {{ $.Site.Title }}{{ end }}</title>
|
||||
<link rel="canonical" href="{{ .Permalink }}" />
|
||||
|
||||
{{ with .Site.Params.RSSCanonicalLink }}
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ . | absURL }}" title="{{$.Site.Title}}" />
|
||||
{{ else }}
|
||||
{{- with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "head_includes.html" . }}
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
</head>
|
||||
<body
|
||||
class="{{ block "body-classes" . }}{{ end }}"
|
||||
lang="{{ .Site.LanguageCode }}">
|
||||
<div class="nav-bkg">
|
||||
<nav class="content-container pagewide-bar-padding">
|
||||
<span class="divider">/ </span>
|
||||
<a href="{{ .Site.Home.RelPermalink }}" >{{ .Site.Title }}</a>
|
||||
{{ block "breadcrumbs" . }}
|
||||
{{- with .Parent -}}
|
||||
{{- if not .IsHome -}}
|
||||
<span class="divider">/ </span>
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{- with .Params.breadcrumb_label -}}
|
||||
{{- . -}}
|
||||
{{- else -}}
|
||||
{{- .Title -}}
|
||||
{{- end -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
{{ partial "right-links" . }}
|
||||
</nav>
|
||||
</div>
|
||||
{{ block "content" . }}{{ end }}
|
||||
{{ block "footer" .}}{{ end }}
|
||||
</body>
|
||||
</html>
|
24
themes/paperesque/layouts/_default/list.html
Normal file
24
themes/paperesque/layouts/_default/list.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{{ define "content" }}
|
||||
<section id="main" class="content-container article-pad-v">
|
||||
<div>
|
||||
<h1 id="title" style="margin-bottom: 0.75em">{{.Title}}</h1>
|
||||
<ul id="list" class="list-unstyled list-of-titles">
|
||||
{{ range .Data.Pages.ByDate.Reverse }}
|
||||
<li class="{{if .Draft }}draft{{ end }}">
|
||||
<a href="{{ .RelPermalink}}">
|
||||
<span class="post-title">{{ .Title }}</span>
|
||||
<br>
|
||||
<span class="post-meta">{{ .Date.Format "January 2, 2006" }}</span>
|
||||
<br>
|
||||
<span class="post-meta">
|
||||
{{ range .Params.tags }}
|
||||
#{{ . }}
|
||||
{{ end }}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
3
themes/paperesque/layouts/_default/single.droplist
Normal file
3
themes/paperesque/layouts/_default/single.droplist
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ with (.Page.Scratch.Get "droplist") }}
|
||||
{{- range (. | sort | uniq) }}{{.}}
|
||||
{{end -}}{{end}}
|
37
themes/paperesque/layouts/_default/single.html
Normal file
37
themes/paperesque/layouts/_default/single.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{{ define "body-classes" -}}
|
||||
{{ if .Draft }}draft{{ end }} look-sheet-bkg
|
||||
{{- end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{- partial "single-article" . -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
|
||||
<!-- TODO: right now, this gets weird when there's a big title on the right.
|
||||
There might be better info here: https://stackoverflow.com/questions/34995740/css-when-inline-block-elements-line-break-parent-wrapper-does-not-fit-new-width
|
||||
and you can test on the android-development-developer-productivity article.
|
||||
|
||||
Would also be cool to make this fold on mobile so there's two links on separate lines.
|
||||
-->
|
||||
{{if (and (not .Parent.IsHome) (or .PrevInSection .NextInSection)) }}
|
||||
<div class="nav-bkg-50 content-container-narrow-pad bottom-links text-0p75">
|
||||
<nav class="flex-row">
|
||||
{{if .PrevInSection}}
|
||||
<a href="{{.PrevInSection.Permalink}}" class="flex-row v-center no-underline" style="max-width:45%;">
|
||||
<span class="text-1p5">←</span> <span class="re-underline">Previous: {{ .PrevInSection.Title }}</span>
|
||||
</a>
|
||||
{{else}}
|
||||
<span class="flex-row v-center"></span>
|
||||
{{end}}
|
||||
{{if .NextInSection}}
|
||||
<a href="{{.NextInSection.Permalink}}" class="flex-row v-center no-underline" style="max-width: 45%;">
|
||||
<span class="re-underline">Next: {{.NextInSection.Title}}</span> <span class="text-1p5">→</span>
|
||||
</a>
|
||||
{{else}}
|
||||
<span class="flex-row v-center"></span>
|
||||
{{end}}
|
||||
</nav>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user