Skip to content

Commit 19555c4

Browse files
committed
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 bc29562 commit 19555c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jekyll-archives/archive.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Archive < Jekyll::Page
1515
path
1616
url
1717
permalink
18+
slug
1819
).freeze
1920

2021
# Initialize a new Archive page

0 commit comments

Comments
 (0)