Browse Source

updating templates for blogging via quill

master
jk 3 years ago
parent
commit
c4042b11fe
  1. 2
      themes/nipponalba/layouts/_default/section.html
  2. 2
      themes/nipponalba/layouts/_default/section.jp.html
  3. 2
      themes/nipponalba/layouts/_default/single.html
  4. 2
      themes/nipponalba/layouts/_default/single.jp.html
  5. 2
      themes/nipponalba/layouts/index.html

2
themes/nipponalba/layouts/_default/section.html

@ -6,7 +6,7 @@
<span id="pagination-top">{{ partial "pagination.html" . }}</span>
{{ range .Paginator.Pages}}
{{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="feed h-entry {{.Type }}">
{{ with .Page.Params.Image }}<center>{{ partial "image.html" . }}</center>{{ end }}
{{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} <img class="banner u-photo" src="{{ replace . "images" "images/300" }}"/>{{ end }}{{ end }}
<article class="index_content">
{{if eq .Type "article"}}<a href="{{ .Permalink }}" class="u-url"><h3 class="p-name entry-title">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }}
{{ if eq .Type "article" }}<section class="info">

2
themes/nipponalba/layouts/_default/section.jp.html

@ -6,7 +6,7 @@
<span id="pagination-top">{{ partial "pagination.html" . }}</span>
{{ range .Paginator.Pages}}
{{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="feed h-entry {{.Type }}">
{{ with .Page.Params.Image }}<center>{{ partial "image.html" . }}</center>{{ end }}
{{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} <img class="banner u-photo" src="{{ replace . "images" "images/300" }}"/>{{ end }}{{ end }}
<article class="index_content">
{{if eq .Type "article"}}<a href="{{ .Permalink }}" class="u-url"><h3 class="p-name entry-title">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }}
{{ if eq .Type "article" }}<section class="info">

2
themes/nipponalba/layouts/_default/single.html

@ -4,7 +4,7 @@
<section class="author" style="display:none;">
<a rel="author" class="p-author h-card" rel="me" href="https://jon.kelbie.scot">{{ .Site.Params.Author }}<img src="/images/profile1.jpg"/></a>
</section>
{{ with .Page.Params.Image }}{{ partial "image.html" . }}{{ end }}
{{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} <img class="banner u-photo" src="{{ replace . "images" "images/300" }}"/>{{ end }}{{ end }}
<section class="post_content">{{ if eq .Type "article" }}<h3 class="p-name entry-title">{{ .Title }}</h3><b>{{ .Description }}</b><section class="info">
<span class="blogs_span">{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}</span><span class="info-date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span><br/>
<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="reading-time">{{ .ReadingTime }}-minute read</span><br/>

2
themes/nipponalba/layouts/_default/single.jp.html

@ -4,7 +4,7 @@
<section class="author" style="display:none;">
<a rel="author" class="p-author h-card" rel="me" href="https://jon.kelbie.scot">{{ .Site.Params.Author }}<img src="/images/profile1.jpg"/></a>
</section>
{{ with .Page.Params.Image }}{{ partial "image.html" . }}{{ end }}
{{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} <img class="banner u-photo" src="{{ replace . "images" "images/300" }}"/>{{ end }}{{ end }}
<section class="post_content">{{ if eq .Type "article" }}<h3 class="p-name entry-title">{{ .Title }}</h3><b>{{ .Description }}</b><section class="info">
<span class="blogs_span">{{ with .Page.Params.Blog }}ブログ: {{ partial "taxonomy/blog.html" . }}{{ end }}</span><span class="info-date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span><br/>
<span class="categories_span">{{ with .Page.Params.category }}カテゴリー: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="reading-time">{{ .ReadingTime }}分間の読み取り</span><br/>

2
themes/nipponalba/layouts/index.html

@ -22,7 +22,7 @@
<section class="latest_articles"><h2>Latest articles</h2>
{{ range (first 3 (where .Site.RegularPages "Type" "=" "article")) }}
<article class="index-article h-entry entry"><a class="u-url" href="{{ .Permalink }}" title="{{ .Title }}">
{{ if .Page.Params.image }}{{ range first 1 (.Page.Params.image | safeURL) }} <img class="banner u-photo" src="{{ replace . "images" "images/300" }}"/>{{ end }}{{ end }}<span class="p-name entry-title">{{ .Title }}</span>
{{ if .Page.Params.image }}{{ range first 1 .Page.Params.image }} <img class="banner u-photo" src="{{ replace . "images" "images/300" }}"/>{{ end }}{{ end }}<span class="p-name entry-title">{{ .Title }}</span>
<section class="e-content">{{ .Description }}</section>
</a></article>{{ end }}</section>
<section class="latest_photos"><h2>Latest photos</h2>

Loading…
Cancel
Save