lib/jekyll/zettel/zettelkasten.rb in jekyll-zettel-0.6.3 vs lib/jekyll/zettel/zettelkasten.rb in jekyll-zettel-0.6.4
- old
+ new
@@ -25,11 +25,11 @@
write_catalog 'zettelkasten'
write_catalog 'tag2zettel'
end
def register_zettel(doc)
- @site.data['zettelkasten'][doc.data['zettel']] = {
- 'zettel' => doc.data['zettel'],
+ @site.data['zettelkasten'][doc.data['id']] = {
+ 'zettel' => doc.data['id'],
'title' => doc.data['title'],
'description' => doc.data['description'],
'author' => doc.data['author'],
'tags' => doc.data['tags'],
'folgezettel' => doc.data['folgezettel'],