Skip to content

Commit 70924aa

Browse files
authored
Use slug in liquid templates
I needed to use the slug on a layout and nothing was being printed until I realized the attribute isn't available in liquid :)
1 parent 815e72b commit 70924aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jekyll-archives/archive.rb

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Archive < Jekyll::Page
1313
path
1414
url
1515
permalink
16+
slug
1617
).freeze
1718

1819
# Initialize a new Archive page

0 commit comments

Comments
 (0)