jekyll-zettel 0.6.0 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12c74e815bb55368376966e3efc0a84ef0635c0ee8d66cf02cded71b02c06f45
4
- data.tar.gz: 24da14c57cb4a4105b5f6683613115635c67e96731e2936d893f39b0bbcdf1cd
3
+ metadata.gz: b046f4c66ee4451186722f4a2ef98f1f49713ded9973e68b4d53ef2b3a8c42b7
4
+ data.tar.gz: f841cb4e262b1d14046838a54fc9d69d6b38d3a9d1a66f451e77601a74746610
5
5
  SHA512:
6
- metadata.gz: 60e2815612ca85eae9dab3aa0c351e5086f2e221889884e14b3f1da70a953a8523c90064af774f6b9e18681fb3372b75fc479fbf09a2c9820c903e269459e833
7
- data.tar.gz: 6c12f7259736d3ac70a07f207004a17558966fd9e6479829b7fceeffaf9b84f3254d74bdb5b6644602b965f3187da95ca28f1863c62906ca9320b3b51e288c35
6
+ metadata.gz: 81e570c58d1d407ce5db3ac8e27cf18a724c6b0b26cfacec36d9a06d741931cdcc6973eb7845a0e9e98e5132439d4de1ae8bc730a0ddf742babe107bca47d6ff
7
+ data.tar.gz: 6d37000c96dbe08cf5104c5d2671c2b889a7c268c5abf35a8162a85fb91e8827ffa6da29ee1433c82b96eb9bbaf32f1e5cb3b5bc7a348c955d8126e08a51fa9a
@@ -6,7 +6,7 @@
6
6
  # If you want to move or rename the page do it within the realms of
7
7
  # this project.
8
8
  #
9
- page_id: #{args['id']}
9
+ id: #{args['id']}
10
10
  #
11
11
  #
12
12
  # Be careful in changing the layout of this page.
@@ -28,3 +28,8 @@ description:
28
28
  # kicker:
29
29
  # image:
30
30
  ---
31
+
32
+
33
+ <!-- Fußnoten -->
34
+
35
+ <!-- Links -->
@@ -6,12 +6,13 @@ layout: glosse
6
6
  # Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
7
7
  # Dieser Wert darf auf keinen Fall geändert werden!
8
8
  #
9
- glosse: #{args['slug']}
9
+ id: #{args['slug']}
10
+ tag: #{args['title']}
10
11
  #
11
12
  # Die Dokumentation aller Properties findest du unter
12
13
  # https://jessas.org/projekt/dokumentation/glosse/#frontmatter
13
14
  #
14
- title: #{args['title']}
15
+ title:
15
16
  description:
16
17
  author:
17
18
  #
@@ -20,3 +21,8 @@ author:
20
21
  # tags: []
21
22
  # image:
22
23
  ---
24
+
25
+
26
+ <!-- Fußnoten -->
27
+
28
+ <!-- Links -->
@@ -6,7 +6,7 @@ layout: zettel
6
6
  # Die UUID des Zettels entspricht dem Namen des Unterverzeichnisses.
7
7
  # Dieser Wert darf auf keinen Fall geändert werden!
8
8
  #
9
- zettel: #{args['uuid']}
9
+ id: #{args['uuid']}
10
10
  #
11
11
  # Die Dokumentation aller Properties findest du unter
12
12
  # https://jessas.org/projekt/dokumentation/zettel/#frontmatter
@@ -26,3 +26,8 @@ author:
26
26
  # href:
27
27
  # annotation:
28
28
  ---
29
+
30
+
31
+ <!-- Fußnoten -->
32
+
33
+ <!-- Links -->
@@ -2,7 +2,7 @@ module Jekyll
2
2
  module Zettel
3
3
  # Enrich page front matter with object meta data
4
4
  class References < Jekyll::Generator
5
- include Zettel
5
+ include Jekyll::Zettel
6
6
 
7
7
  priority :highest
8
8
 
@@ -2,7 +2,7 @@ module Jekyll
2
2
  module Zettel
3
3
  # Generate tags.json from page front matter
4
4
  class Tags < Jekyll::Generator
5
- include Zettel
5
+ include Jekyll::Zettel
6
6
 
7
7
  SLUG_FORMAT = %r{glosse/(?<slug>.*)/index.(?<ext>html|md)}i.freeze
8
8
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Zettel
3
- VERSION = '0.6.0'.freeze
3
+ VERSION = '0.6.4'.freeze
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@ module Jekyll
2
2
  module Zettel
3
3
  # Generate tags.json from page front matter
4
4
  class Zettelkasten < Jekyll::Generator
5
- include Zettel
5
+ include Jekyll::Zettel
6
6
 
7
7
  priority :low
8
8
 
@@ -27,8 +27,8 @@ module Jekyll
27
27
  end
28
28
 
29
29
  def register_zettel(doc)
30
- @site.data['zettelkasten'][doc.data['zettel']] = {
31
- 'zettel' => doc.data['zettel'],
30
+ @site.data['zettelkasten'][doc.data['id']] = {
31
+ 'zettel' => doc.data['id'],
32
32
  'title' => doc.data['title'],
33
33
  'description' => doc.data['description'],
34
34
  'author' => doc.data['author'],
data/lib/jekyll/zettel.rb CHANGED
@@ -66,7 +66,7 @@ module Jekyll
66
66
  dir = File.dirname(file)
67
67
  if File.directory?(dir)
68
68
  if File.exist?(file)
69
- Jekyll.logger.error Jekyll::Zettel::LOG_KEY, "#{infotype} `#{slug}` already present"
69
+ Jekyll.logger.error LOG_KEY, "#{infotype} `#{slug}` already present"
70
70
  nil
71
71
  else
72
72
  dir
@@ -79,19 +79,19 @@ module Jekyll
79
79
  def args_empty?(args)
80
80
  return false unless args.empty?
81
81
 
82
- Jekyll.logger.error Jekyll::Zettel::LOG_KEY, 'Missing argument slug'
83
- Jekyll.logger.info Jekyll::Zettel::LOG_KEY, 'usage: jekyll scaffold --glosse <slug>'
82
+ Jekyll.logger.error LOG_KEY, 'Missing argument slug'
83
+ Jekyll.logger.info LOG_KEY, 'usage: jekyll scaffold --glosse <slug>'
84
84
  true
85
85
  end
86
86
  end
87
87
  end
88
88
 
89
+ require 'jekyll/commands/scaffold'
89
90
  require 'jekyll/zettel/globals'
90
- require 'jekyll/zettel/references'
91
+ require 'jekyll/zettel/glosse'
91
92
  require 'jekyll/zettel/reference'
92
- require 'jekyll/zettel/timeline'
93
+ require 'jekyll/zettel/references'
93
94
  require 'jekyll/zettel/tags'
94
- require 'jekyll/zettel/zettelkasten'
95
- require 'jekyll/commands/scaffold'
96
- require 'jekyll/zettel/glosse'
95
+ require 'jekyll/zettel/timeline'
97
96
  require 'jekyll/zettel/zettel'
97
+ require 'jekyll/zettel/zettelkasten'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-zettel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Gerzabek
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-20 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: citeproc-ruby