Browse Source

some article posting fine tuning

master
jk 3 years ago
parent
commit
f9d8a4bf9e
  1. 2
      config.toml
  2. 2
      themes/nipponalba/layouts/index.html
  3. 2
      themes/nipponalba/layouts/index.jp.html

2
config.toml

@ -29,7 +29,7 @@ preserveTaxonomyNames = true
autoHeadingIDType = "github"
[markup.goldmark.renderer]
hardWraps = false
unsafe = false
unsafe = true
xhtml = false
[taxonomies]

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 }}">
{{ range first 1 .Page.Params.image }} <img class="banner u-photo" src="{{ replace . "images" "images/300" }}"/>{{ 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>

2
themes/nipponalba/layouts/index.jp.html

@ -22,7 +22,7 @@
<section class="latest_articles"><h2>最新の記事</h2>
{{ range (first 3 (where .Site.RegularPages "Type" "=" "article")) }}
<article class="index-article h-entry entry"><a class="u-url" href="{{ .Permalink }}" title="{{ .Title }}">
{{ range first 1 .Page.Params.image }} <img class="banner u-photo" src="{{ replace . "images" "images/300" }}"/>{{ 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>最新の写真</h2>

Loading…
Cancel
Save