jekyll-zettel 0.6.4 → 0.6.9

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: b046f4c66ee4451186722f4a2ef98f1f49713ded9973e68b4d53ef2b3a8c42b7
4
- data.tar.gz: f841cb4e262b1d14046838a54fc9d69d6b38d3a9d1a66f451e77601a74746610
3
+ metadata.gz: 13765caa336e4d532e0ff3e7e7bf5ed4124188686280912bcc9781d81401ddb5
4
+ data.tar.gz: e9e091bc97869599365da6a34f78bc626be7501f0a794b3c4279765e578aaeae
5
5
  SHA512:
6
- metadata.gz: 81e570c58d1d407ce5db3ac8e27cf18a724c6b0b26cfacec36d9a06d741931cdcc6973eb7845a0e9e98e5132439d4de1ae8bc730a0ddf742babe107bca47d6ff
7
- data.tar.gz: 6d37000c96dbe08cf5104c5d2671c2b889a7c268c5abf35a8162a85fb91e8827ffa6da29ee1433c82b96eb9bbaf32f1e5cb3b5bc7a348c955d8126e08a51fa9a
6
+ metadata.gz: fd15b3a18a957dbb0eac1d3d459858a3cc1cbe82e58ce084c95c0971640145620d7ecafb7ad7e46c7177ed61824693f9b0e4ff5f4807b390f0840442c30a1aa1
7
+ data.tar.gz: '09cfc36154bf4bccd6dfaa5cfc36f4a7f847024ff03f0e94c8e041bfdfc1fed0f14d219a974999a0f8fbe3a34e4460130241cfb2a748cbc4ce78f8b53a107f87'
@@ -0,0 +1,35 @@
1
+ ---
2
+ layout: akteur
3
+ #
4
+ # created_at: #{Time.now}
5
+ #
6
+ # Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
7
+ # Dieser Wert darf auf keinen Fall geändert werden!
8
+ #
9
+ id: #{args['slug']}
10
+ #
11
+ # Der Status des Infotypen
12
+ # https://jessas.org/projekt/dokumentation/infotype/#status
13
+ #
14
+ status: draft
15
+ #
16
+ # Die Dokumentation aller Properties findest du unter
17
+ # https://jessas.org/projekt/dokumentation/arbeitsblatt/#frontmatter
18
+ #
19
+ title: #{args['title']}
20
+ description:
21
+ #
22
+ # Optionale Properties
23
+ #
24
+ # tags: []
25
+ # folgezettel: []
26
+ # image:
27
+ # via:
28
+ # text:
29
+ # href:
30
+ # annotation:
31
+ ---
32
+
33
+ <!-- Fußnoten -->
34
+
35
+ <!-- Links -->
@@ -1,35 +1,35 @@
1
1
  ---
2
- # created_at: #{Time.now}
3
- #
4
- # Never ever change the id of your page!
5
- # Changing the id has manifold side effects. Most of them unwanted.
6
- # If you want to move or rename the page do it within the realms of
7
- # this project.
2
+ layout: blatt
8
3
  #
9
- id: #{args['id']}
4
+ # created_at: #{Time.now}
10
5
  #
6
+ # Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
7
+ # Dieser Wert darf auf keinen Fall geändert werden!
11
8
  #
12
- # Be careful in changing the layout of this page.
13
- # Additional meta data may be required.
9
+ id: #{args['slug']}
14
10
  #
15
- layout: page
11
+ # Der Status des Infotypen
12
+ # https://jessas.org/projekt/dokumentation/infotype/#status
16
13
  #
14
+ status: draft
17
15
  #
18
- # The following front-matter attributes are mandatory
16
+ # Die Dokumentation aller Properties findest du unter
17
+ # https://jessas.org/projekt/dokumentation/arbeitsblatt/#frontmatter
19
18
  #
20
- title:
19
+ title: #{args['title']}
21
20
  description:
22
21
  #
22
+ # Optionale Properties
23
23
  #
24
- # These front-matter attributes are optional, but support a nice
25
- # look-and-feel. If you want to use them just delete the hash
26
- # character at the beginning of the corresponding lines.
27
- #
28
- # kicker:
24
+ # tags: []
25
+ # folgezettel: []
29
26
  # image:
27
+ # via:
28
+ # text:
29
+ # href:
30
+ # annotation:
30
31
  ---
31
32
 
32
-
33
33
  <!-- Fußnoten -->
34
34
 
35
35
  <!-- Links -->
@@ -6,7 +6,12 @@ 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
- id: #{args['slug']}
9
+ id: #{args['slug']}
10
+ #
11
+ # Der Status des Infotypen
12
+ # https://jessas.org/projekt/dokumentation/infotype/#status
13
+ #
14
+ status: draft
10
15
  tag: #{args['title']}
11
16
  #
12
17
  # Die Dokumentation aller Properties findest du unter
@@ -0,0 +1,25 @@
1
+ {
2
+ "title": {
3
+ "text": {
4
+ "headline": "Titel der Zeitleiste",
5
+ "text": "Text…"
6
+ }
7
+ },
8
+ "events": [
9
+ {
10
+ "start_date": {
11
+ "year": ""
12
+ },
13
+ "display_date": "",
14
+ "media": {
15
+ "url": "/assets/<infotype.pn>",
16
+ "link": "/<infotype>/<slug>/",
17
+ "link_target": "_parent"
18
+ },
19
+ "text": {
20
+ "headline": "Titel der Folie",
21
+ "text": "Folientext…"
22
+ }
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,36 @@
1
+ ---
2
+ layout: zeitleiste
3
+ #
4
+ # created_at: #{Time.now}
5
+ #
6
+ # Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
7
+ # Dieser Wert darf auf keinen Fall geändert werden!
8
+ #
9
+ id: #{args['slug']}
10
+ #
11
+ # Der Status des Infotypen
12
+ # https://jessas.org/projekt/dokumentation/infotype/#status
13
+ #
14
+ status: draft
15
+ #
16
+ # Die Dokumentation aller Properties findest du unter
17
+ # https://jessas.org/projekt/dokumentation/timeline/#frontmatter
18
+ #
19
+ title: #{args['title']}
20
+ description:
21
+ #
22
+ # Optionale Properties
23
+ #
24
+ # tags: []
25
+ # folgezettel: []
26
+ # image:
27
+ # video:
28
+ # via:
29
+ # text:
30
+ # href:
31
+ # annotation:
32
+ ---
33
+
34
+ <!-- Fußnoten -->
35
+
36
+ <!-- Links -->
@@ -8,6 +8,11 @@ layout: zettel
8
8
  #
9
9
  id: #{args['uuid']}
10
10
  #
11
+ # Der Status des Infotypen
12
+ # https://jessas.org/projekt/dokumentation/infotype/#status
13
+ #
14
+ status: draft
15
+ #
11
16
  # Die Dokumentation aller Properties findest du unter
12
17
  # https://jessas.org/projekt/dokumentation/zettel/#frontmatter
13
18
  #
@@ -0,0 +1,22 @@
1
+ module Jekyll
2
+ module Zettel
3
+ # Scaffolder for infotype Glosse
4
+ class Akteur
5
+
6
+ include Jekyll::Zettel
7
+
8
+ def scaffold(args)
9
+ return nil if args_empty?(args)
10
+
11
+ slug = create_slug(args.first)
12
+ file = "akteur/#{slug}/index.md"
13
+ return file if create_dir_defensively('Akteur', slug, file).nil?
14
+
15
+ create_page({ 'slug' => slug, 'title' => args.first }, file, 'akteur.md')
16
+
17
+ Jekyll.logger.info '✓', "Created akteur with slug `#{slug}`"
18
+ file
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ module Jekyll
2
+ module Zettel
3
+ # Scaffolder for infotype Glosse
4
+ class Blatt
5
+
6
+ include Jekyll::Zettel
7
+
8
+ def scaffold(args)
9
+ return nil if args_empty?(args)
10
+
11
+ slug = create_slug(args.first)
12
+ file = "arbeitsblatt/#{slug}/index.md"
13
+ return file if create_dir_defensively('Arbeitsblatt', slug, file).nil?
14
+
15
+ create_page({ 'slug' => slug, 'title' => args.first }, file, 'blatt.md')
16
+
17
+ Jekyll.logger.info '✓', "Created blatt with slug `#{slug}`"
18
+ file
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Zettel
3
- VERSION = '0.6.4'.freeze
3
+ VERSION = '0.6.9'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,23 @@
1
+ module Jekyll
2
+ module Zettel
3
+ # Scaffolder for infotype Glosse
4
+ class Zeitleiste
5
+
6
+ include Jekyll::Zettel
7
+
8
+ def scaffold(args)
9
+ return nil if args_empty?(args)
10
+
11
+ slug = create_slug(args.first)
12
+ file = "zeitleiste/#{slug}/index.md"
13
+ return file if create_dir_defensively('Zeitleiste', slug, file).nil?
14
+
15
+ create_page({ 'slug' => slug, 'title' => args.first }, file, 'zeitleiste.md')
16
+ string = File.read(File.expand_path('../stubs/timeline.json', __dir__))
17
+ File.open("zeitleiste/#{slug}/timeline.json", 'w') { |out| out.write string }
18
+ Jekyll.logger.info '✓', "Created zeitleiste with slug `#{slug}`"
19
+ file
20
+ end
21
+ end
22
+ end
23
+ end
@@ -45,7 +45,7 @@ module Jekyll
45
45
  doc.data['tags'].each { |tag|
46
46
  @site.data['tag2zettel'][tag] = [] unless @site.data['tag2zettel'].key?(tag)
47
47
 
48
- @site.data['tag2zettel'][tag] << doc.data['zettel']
48
+ @site.data['tag2zettel'][tag] << doc.data['id']
49
49
  }
50
50
  end
51
51
  end
data/lib/jekyll/zettel.rb CHANGED
@@ -87,11 +87,14 @@ module Jekyll
87
87
  end
88
88
 
89
89
  require 'jekyll/commands/scaffold'
90
+ require 'jekyll/zettel/akteur'
91
+ require 'jekyll/zettel/blatt'
90
92
  require 'jekyll/zettel/globals'
91
93
  require 'jekyll/zettel/glosse'
92
94
  require 'jekyll/zettel/reference'
93
95
  require 'jekyll/zettel/references'
94
96
  require 'jekyll/zettel/tags'
95
97
  require 'jekyll/zettel/timeline'
98
+ require 'jekyll/zettel/zeitleiste'
96
99
  require 'jekyll/zettel/zettel'
97
100
  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.4
4
+ version: 0.6.9
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-26 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: citeproc-ruby
@@ -106,10 +106,15 @@ files:
106
106
  - Rakefile
107
107
  - jekyll-zettel.gemspec
108
108
  - lib/jekyll/commands/scaffold.rb
109
+ - lib/jekyll/stubs/akteur.md
109
110
  - lib/jekyll/stubs/blatt.md
110
111
  - lib/jekyll/stubs/glosse.md
112
+ - lib/jekyll/stubs/timeline.json
113
+ - lib/jekyll/stubs/zeitleiste.md
111
114
  - lib/jekyll/stubs/zettel.md
112
115
  - lib/jekyll/zettel.rb
116
+ - lib/jekyll/zettel/akteur.rb
117
+ - lib/jekyll/zettel/blatt.rb
113
118
  - lib/jekyll/zettel/globals.rb
114
119
  - lib/jekyll/zettel/glosse.rb
115
120
  - lib/jekyll/zettel/reference.rb
@@ -117,6 +122,7 @@ files:
117
122
  - lib/jekyll/zettel/tags.rb
118
123
  - lib/jekyll/zettel/timeline.rb
119
124
  - lib/jekyll/zettel/version.rb
125
+ - lib/jekyll/zettel/zeitleiste.rb
120
126
  - lib/jekyll/zettel/zettel.rb
121
127
  - lib/jekyll/zettel/zettelkasten.rb
122
128
  homepage: https://michaelgerzabek.com/gems/jekyll-zettel