Skip to content

Commit

Permalink
Don't use deprecated features
Browse files Browse the repository at this point in the history
In order to support upcoming v0.58.0 of Hugo

See gohugoio/hugoThemes#682
  • Loading branch information
eliasson committed Aug 28, 2019
1 parent 25c262d commit 4f2af3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="sixteen columns">
<h1>{{.Title}}</h1>
<ul class="li-article-list">
{{ range .Data.Pages }}
{{ range .Site.RegularPages }}
<li>
<time class="li-article-date">{{ .Date.Format "January, 2, 2006" }}</time>
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="row">
<div class="sixteen columns">
<div class="li-main-article-list">
{{ range first 10 .Data.Pages }}
{{ range first 10 .Site.RegularPages }}
<div class="li-article">
{{ .Render "summary"}}
</div>
Expand Down
6 changes: 4 additions & 2 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html xmlns="//www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />

Expand All @@ -11,6 +11,8 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/liquorice.css" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-144-precomposed.png" sizes="144x144" />
<link rel="alternate" href="{{ .RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
</head>
<body class="li-body">

0 comments on commit 4f2af3b

Please sign in to comment.