Skip to content

Commit

Permalink
upgrade supported hugo version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dim0627 committed Jul 2, 2018
1 parent 845ec8d commit 5c82624
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1 class="title">{{ .Title }}</h1>
</header>

<ul class="p-articles">
{{ range first 5 .Site.Pages }}<li>{{ .Render "li_sm" }}</li>{{ end }}
{{ range first 5 .Site.RegularPages }}<li>{{ .Render "li_sm" }}</li>{{ end }}
</ul>
</div>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<style amp-custom>
{{ replaceRE " +" " " (replaceRE "\n" "" (partial "styles.css" .)) | safeCSS }}

{{ range where .Site.Pages ".Params.thumbnail" "!=" nil }} .article-{{ .Source.Path | md5 }} .thumbnail { background-image: url({{ $.Site.BaseURL }}{{ .Params.thumbnail }}); } {{ end }}
{{ range where .Site.RegularPages ".Params.thumbnail" "!=" nil }} .article-{{ .Source.Path | md5 }} .thumbnail { background-image: url({{ $.Site.BaseURL }}{{ .Params.thumbnail }}); } {{ end }}
</style>
</head>

Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="l-container">
{{ .Render "summary" }}

{{ $recent_articles := (where (where .Site.Pages ".Source.Path" "!=" .Source.Path) "IsPage" true) }}
{{ $recent_articles := (where (where .Site.RegularPages ".Source.Path" "!=" .Source.Path) "IsPage" true) }}
{{ if ne 0 (len $recent_articles) }}
<section>
<header><span>Latests</span></header>
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Theme for Hugo that supports the Accelerated Mobile Pages Project
homepage = "https://github.com/dim0627/hugo_theme_aglaus"
tags = ["blog", "amp"]
features = ["amp", "responsive", "seo", "thumbnail", "share button", "structured data", "ogp", "twitter cards"]
min_version = 0.16
min_version = 0.42.2

[author]
name = "Daisuke Tsuji"
Expand Down

0 comments on commit 5c82624

Please sign in to comment.