diff --git a/config.yaml b/config.yaml index 35aeb77a..ae2a08c6 100644 --- a/config.yaml +++ b/config.yaml @@ -4,7 +4,6 @@ title: "Scientific Python blog" theme: ["hugo-atom-feed", "scientific-python-hugo-theme"] relativeURLs: true disableKinds: ["RSS", "taxonomy"] -ignoreErrors: ["error-disable-taxonomy"] markup: highlight: @@ -28,7 +27,10 @@ frontmatter: date: [":filename", ":default"] permalinks: - posts: "/:sections[1:]/:filename" + page: + posts: "/:sections[1:]/:filename" + section: + posts: "/:sections[1:]" outputs: home: ["HTML", "ATOM"] diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 00000000..558e6b32 --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,3 @@ +--- +url: /posts +--- diff --git a/content/posts/networkx/_index.md b/content/posts/networkx/_index.md new file mode 100644 index 00000000..e69de29b diff --git a/layouts/posts/list.html b/layouts/posts/list.html index fe7204be..5e46d12c 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -32,8 +32,13 @@

{{ i18n "tags" }}

- {{ $latest := (where $.Site.RegularPages.ByPublishDate.Reverse "Section" "posts") }} - {{ partial "posts.html" $latest }} + + + {{ if (eq .Page.RelPermalink "/posts/") }} + {{ partial "posts.html" (where .Site.RegularPages.ByPublishDate.Reverse "Section" .Section) }} + {{ else }} + {{ partial "posts.html" (where $.RegularPagesRecursive.ByPublishDate.Reverse "Section" .Section) }} + {{ end }}