Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rw-r--r--README.md8
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/index.xml2
-rw-r--r--layouts/partials/footer.html14
-rw-r--r--static/css/style.css4
7 files changed, 23 insertions, 14 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a222dc3..45222f8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,11 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
+### Fixed
+- Breaking changes in article lists introduced in Hugo 0.57 per [#52](https://github.com/AngeloStavrow/indigo/issues/52)
+- Newer/Older links in article footers now work as expected in Hugo 0.50 and later per [#54](https://github.com/AngeloStavrow/indigo/issues/54)
## [1.0.6]
### Fixed
- Fixed some copy/paste errors in CSS `font-family` definitions per [#38](https://github.com/AngeloStavrow/indigo/issues/38)
-- Fixes `<h1>` font-sizing per [#41](https://github.com/AngeloStavrow/indigo/issues/41)
+- Fixed `<h1>` font-sizing per [#41](https://github.com/AngeloStavrow/indigo/issues/41)
## [1.0.5]
### Fixed
diff --git a/README.md b/README.md
index 872366e..1de7cb8 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ These instructions will get you a copy of the project up and running on your loc
### Prerequisites
-Some portions of the templates use variable rewriting, introduced in Hugo 0.48, so you'll need to make sure you're running at least this version. You can check what version you're running with
+This theme is built and tested against the latest version of Hugo and currently requires a minimum version of 0.50. You can check what version you're running with
```
$ hugo version
@@ -46,6 +46,12 @@ Or, if you use `config.yaml`:
theme: indigo
```
+## Indigo IndieWeb Features
+
+A thorough writeup of the theme has been graciously written by @infominer33.
+
+* [Indigo IndieWeb Features](https://web-work.tools/indieweb/indigo-indieweb-features/)
+
## Contributing
Please read [CONTRIBUTING.md](https://github.com/AngeloStavrow/indigo/blob/master/CONTRIBUTING.md) for details on the code of conduct, and the process for submitting pull requests.
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 0f1abe2..4af97c7 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,7 +1,7 @@
{{ partial "header.html" . }}
<h2>{{ .Title }}</h2>
<div id="content">
-{{ range $index, $page := (.Paginate (where .Data.Pages "Type" "post")).Pages }}
+{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "post")).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
diff --git a/layouts/index.html b/layouts/index.html
index c39fbb5..4e973ac 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -3,7 +3,7 @@
<!-- Content goes here -->
<div id="content">
-{{ range $index, $page := (.Paginate (where (where .Data.Pages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }}
+{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
diff --git a/layouts/index.xml b/layouts/index.xml
index 6605035..faf0a1c 100644
--- a/layouts/index.xml
+++ b/layouts/index.xml
@@ -12,7 +12,7 @@
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
- {{ range .Pages }}
+ {{ range .Site.RegularPages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 6e227c0..864138b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -14,11 +14,11 @@
</div>
{{ end }}
<div id="footer">
- {{ if or (.Prev) (.Next) }}
+ {{ if or (.NextPage) (.PrevPage) }}
<nav id="article-skip">
- <div class="prev">
- {{ if and (.Prev) (not .Params.Menu) }}
- <a alt="Newer article" href="{{ .Prev.Permalink }}">&larr; Newer</a>
+ <div class="next">
+ {{ if and (.NextPage) (not .Params.Menu) }}
+ <a alt="Newer article" href="{{ .NextPage.Permalink }}">&larr; Newer</a>
{{ else }}
<p>&nbsp;</p>
{{ end }}
@@ -26,9 +26,9 @@
<div class="top">
<a alt="Top of page" href="#">Top</a>
</div>
- <div class="next">
- {{ if and (.Next) (not .Params.Menu) }}
- <a alt="Older article" href="{{ .Next.Permalink }}">Older &rarr;</a>
+ <div class="prev">
+ {{ if and (.PrevPage) (not .Params.Menu) }}
+ <a alt="Older article" href="{{ .PrevPage.Permalink }}">Older &rarr;</a>
{{ else }}
<p>&nbsp;</p>
{{ end }}
diff --git a/static/css/style.css b/static/css/style.css
index 676124b..37d2453 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -404,11 +404,11 @@ nav#article-skip {
}
.next {
- text-align: right;
+ text-align: left;
}
.prev {
- text-align: left;
+ text-align: right;
}
.top {