about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-08-08 10:13:48 +0100
committerAlan Pearce2014-08-08 10:13:48 +0100
commit8760b88691e626319bdc9af1d5f50803d1ff873c (patch)
tree2f0b0ce9ae465252d40f9067819604880fe9253b
parenteee025c9e54197406d3e8b2753473f2d5c7a609a (diff)
downloadhyde-8760b88691e626319bdc9af1d5f50803d1ff873c.tar.lz
hyde-8760b88691e626319bdc9af1d5f50803d1ff873c.tar.zst
hyde-8760b88691e626319bdc9af1d5f50803d1ff873c.zip
Use Site.Taxonomies instead of Site.Indexes
The latter is deprecated
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/sidebar.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 88cc1ae..854bab2 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -4,7 +4,7 @@
 			<section class="categories">
 				<h2>Categories</h2>
 				<ul>
-					{{ range $key, $value := .Site.Indexes.categories }}
+					{{ range $key, $value := .Site.Taxonomies.categories }}
 					<li>
 						<a href="/categories/{{ $key | urlize }}/">{{ $key | title }}</a>
 					</li>
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index ec883ad..01babc6 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -13,7 +13,7 @@
 				<nav>
 					<ul class="sidebar-nav">
 						<li><a href="/" itemprop="url">Home</a> </li>
-						{{ range $key, $value := .Site.Indexes.categories }}
+						{{ range $key, $value := .Site.Taxonomies.categories }}
 						<li>
 							<a href="/categories/{{ $key | urlize }}/">{{ $key | title }}</a>
 						</li>