jekyll-zettel 0.6.3 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/stubs/akteur.md +35 -0
- data/lib/jekyll/stubs/blatt.md +18 -18
- data/lib/jekyll/stubs/glosse.md +6 -1
- data/lib/jekyll/stubs/timeline.json +25 -0
- data/lib/jekyll/stubs/zeitleiste.md +36 -0
- data/lib/jekyll/stubs/zettel.md +5 -0
- data/lib/jekyll/zettel/akteur.rb +22 -0
- data/lib/jekyll/zettel/blatt.rb +22 -0
- data/lib/jekyll/zettel/version.rb +1 -1
- data/lib/jekyll/zettel/zeitleiste.rb +23 -0
- data/lib/jekyll/zettel/zettelkasten.rb +2 -2
- data/lib/jekyll/zettel.rb +3 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29649f733d538f436b123e0d30fecdd10128e7818fbad3c5191939ed2f350f8c
|
4
|
+
data.tar.gz: bf96f17c9f7042a03e070b3743875acb8617c7dc3bbf14dd8ee4c6ba60e6c537
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5323a2ec3f2dcb617dff426d5a2e5201ca12092efff07fe8350eaad564358fbfbbcc2618cb09d985fd3b407416afb6b92d4997bb2e5444e468ff385fc9eac2e5
|
7
|
+
data.tar.gz: '06979ee7a379a8d22a5d66a3b841d84f048412c489d48dda6771f2694910d9d75cd3feb7928cffa8d770bfe79057c0c6a949e642c16d2894112270463c137280'
|
@@ -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 -->
|
data/lib/jekyll/stubs/blatt.md
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
---
|
2
|
-
|
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
|
-
|
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
|
-
#
|
13
|
-
# Additional meta data may be required.
|
9
|
+
id: #{args['slug']}
|
14
10
|
#
|
15
|
-
|
11
|
+
# Der Status des Infotypen
|
12
|
+
# https://jessas.org/projekt/dokumentation/infotype/#status
|
16
13
|
#
|
14
|
+
status: draft
|
17
15
|
#
|
18
|
-
#
|
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
|
-
#
|
25
|
-
#
|
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 -->
|
data/lib/jekyll/stubs/glosse.md
CHANGED
@@ -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 -->
|
data/lib/jekyll/stubs/zettel.md
CHANGED
@@ -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
|
@@ -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
|
@@ -27,8 +27,8 @@ module Jekyll
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def register_zettel(doc)
|
30
|
-
@site.data['zettelkasten'][doc.data['
|
31
|
-
'zettel' => doc.data['
|
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
@@ -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
|
+
version: 0.6.8
|
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-
|
11
|
+
date: 2022-01-28 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
|