Templates white space fixes.
This commit is contained in:
parent
bfd78179c6
commit
e3861bb728
7 changed files with 17 additions and 17 deletions
|
|
@ -49,7 +49,7 @@
|
||||||
{{ range $set := split $srcset " " -}}
|
{{ range $set := split $srcset " " -}}
|
||||||
{{ $image := $resource.Resize (printf "%sx" $set) -}}
|
{{ $image := $resource.Resize (printf "%sx" $set) -}}
|
||||||
{{ $srcsetw = $srcsetw | append (printf "%s %sw" $image.RelPermalink $set) -}}
|
{{ $srcsetw = $srcsetw | append (printf "%s %sw" $image.RelPermalink $set) -}}
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
{{ $width = "" -}}
|
{{ $width = "" -}}
|
||||||
{{ $height = "" -}}
|
{{ $height = "" -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@
|
||||||
<language>{{ . }}</language>
|
<language>{{ . }}</language>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Author.email -}}
|
{{ with site.Author.email -}}
|
||||||
<managingEditor>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</managingEditor>
|
<managingEditor>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</managingEditor>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Author.email -}}
|
{{ with site.Author.email -}}
|
||||||
<webMaster>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</webMaster>
|
<webMaster>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</webMaster>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Copyright -}}
|
{{ with site.Copyright -}}
|
||||||
<copyright>{{ . }}</copyright>
|
<copyright>{{ . }}</copyright>
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
{{ with site.Author.email -}}
|
{{ with site.Author.email -}}
|
||||||
<author>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</author>
|
<author>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</author>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ .Content | html }}</description>
|
<description>{{ .Content | html }}</description>
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,15 @@
|
||||||
<h1 class="title">Micro posts</h1>
|
<h1 class="title">Micro posts</h1>
|
||||||
<p class="micro__follow"><a href="https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}">{{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }}</a></p>
|
<p class="micro__follow"><a href="https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}">{{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }}</a></p>
|
||||||
|
|
||||||
{{ with .Content }}
|
{{ with .Content -}}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
|
|
||||||
{{ $paginator := .Paginate (.Pages) -}}
|
{{ $paginator := .Paginate (.Pages) -}}
|
||||||
{{ range $paginator.Pages -}}
|
{{ range $paginator.Pages -}}
|
||||||
{{ .Render "summary"}}
|
{{ .Render "summary" }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
"version" : "https://jsonfeed.org/version/1",
|
"version" : "https://jsonfeed.org/version/1",
|
||||||
"title" : "Micro posts {{ i18n "string_on" }} {{ site.Title }}",
|
"title" : "Micro posts {{ i18n "string_on" }} {{ site.Title }}",
|
||||||
"description": "Micro blog {{ i18n "string_by" }} {{ with site.Author.name }}{{ . }}{{end}}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}",
|
"description": "Micro blog {{ i18n "string_by" }} {{ with site.Author.name }}{{ . }}{{ end }}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}",
|
||||||
"home_page_url" : "{{ site.BaseURL }}",
|
"home_page_url" : "{{ site.BaseURL }}",
|
||||||
{{ with .OutputFormats.Get "JSON" -}}
|
{{ with .OutputFormats.Get "JSON" -}}
|
||||||
"feed_url" : "{{ .Permalink }}",
|
"feed_url" : "{{ .Permalink }}",
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
<channel>
|
<channel>
|
||||||
<title>Micro posts {{ i18n "string_on" }} {{ site.Title }}</title>
|
<title>Micro posts {{ i18n "string_on" }} {{ site.Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>Micro blog {{ i18n "string_by" }} {{ with site.Author.name }}{{ . }}{{end}}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}</description>
|
<description>Micro blog {{ i18n "string_by" }} {{ with site.Author.name }}{{ . }}{{ end }}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
{{ with site.LanguageCode -}}
|
{{ with site.LanguageCode -}}
|
||||||
<language>{{ . }}</language>
|
<language>{{ . }}</language>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Author.email -}}
|
{{ with site.Author.email -}}
|
||||||
<managingEditor>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</managingEditor>
|
<managingEditor>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</managingEditor>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Author.email -}}
|
{{ with site.Author.email -}}
|
||||||
<webMaster>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</webMaster>
|
<webMaster>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</webMaster>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Copyright -}}
|
{{ with site.Copyright -}}
|
||||||
<copyright>{{ . }}</copyright>
|
<copyright>{{ . }}</copyright>
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,10 @@
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
<language>{{ site.Params.Podcast.Lang | default site.LanguageCode }}</language>
|
<language>{{ site.Params.Podcast.Lang | default site.LanguageCode }}</language>
|
||||||
{{ with site.Author.email -}}
|
{{ with site.Author.email -}}
|
||||||
<managingEditor>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</managingEditor>
|
<managingEditor>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</managingEditor>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Author.email -}}
|
{{ with site.Author.email -}}
|
||||||
<webMaster>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</webMaster>
|
<webMaster>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</webMaster>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Copyright -}}
|
{{ with site.Copyright -}}
|
||||||
<copyright>{{ . }}</copyright>
|
<copyright>{{ . }}</copyright>
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with site.Params.Podcast.Image }}{{ $image := resources.Get . }}<itunes:image href="{{ $image.Permalink }}" />{{ end }}
|
{{ with site.Params.Podcast.Image }}{{ $image := resources.Get . }}<itunes:image href="{{ $image.Permalink }}" />{{ end }}
|
||||||
{{ with site.Params.Podcast.Category -}}
|
{{ with site.Params.Podcast.Category -}}
|
||||||
<itunes:category {{ if .name }}text="{{ .name }}"{{end}}>
|
<itunes:category {{ if .name }}text="{{ .name }}"{{ end }}>
|
||||||
{{ range .subcategories }}<itunes:category text="{{ . }}" />{{ end }}
|
{{ range .subcategories }}<itunes:category text="{{ . }}" />{{ end }}
|
||||||
</itunes:category>
|
</itunes:category>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
{{ with site.Params.Podcast.Complete }}<itunes:complete>{{ . }}</itunes:complete>{{ end }}
|
{{ with site.Params.Podcast.Complete }}<itunes:complete>{{ . }}</itunes:complete>{{ end }}
|
||||||
{{ with site.Params.Podcast.NewFeed }}<itunes:new-feed-url>{{ . }}</itunes:new-feed-url>{{ end }}
|
{{ with site.Params.Podcast.NewFeed }}<itunes:new-feed-url>{{ . }}</itunes:new-feed-url>{{ end }}
|
||||||
<itunes:explicit>{{ if site.Params.Podcast.Explicit }}true{{ else }}false{{ end }}</itunes:explicit>
|
<itunes:explicit>{{ if site.Params.Podcast.Explicit }}true{{ else }}false{{ end }}</itunes:explicit>
|
||||||
{{ range .Pages }}
|
{{ range .Pages -}}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<itunes:title>{{ .Title }}</itunes:title>
|
<itunes:title>{{ .Title }}</itunes:title>
|
||||||
|
|
@ -61,6 +61,6 @@
|
||||||
{{ with .Params.podcast.block }}<itunes:block>{{ . }}</itunes:block>{{ end }}
|
{{ with .Params.podcast.block }}<itunes:block>{{ . }}</itunes:block>{{ end }}
|
||||||
<itunes:explicit>{{ if .Params.podcast.explicit }}true{{ else }}false{{ end }}</itunes:explicit>
|
<itunes:explicit>{{ if .Params.podcast.explicit }}true{{ else }}false{{ end }}</itunes:explicit>
|
||||||
</item>
|
</item>
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue