jekyll-zettel 0.6.2 → 0.6.7
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 +30 -0
- data/lib/jekyll/stubs/blatt.md +19 -19
- data/lib/jekyll/stubs/glosse.md +6 -1
- data/lib/jekyll/stubs/timeline.json +25 -0
- data/lib/jekyll/stubs/zeitleiste.md +31 -0
- data/lib/jekyll/stubs/zettel.md +6 -1
- 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: 9c4db208d02a866492ebe7c1ab57dbddce523f938e11a9517d0c854c7a09d77c
|
4
|
+
data.tar.gz: 7ba11cd14471a988e96624412b2915d60d1df7d0b46a57b98f80583debef4e79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3447ceb9e3fa7bacba4a4f08d82d91c5cb3f2297118102e0f2770882b418bdd273e2218fcc53581cf09e41d5f2b684d6076e1b7e94f68d72d1a504f5e8b2fb4a
|
7
|
+
data.tar.gz: 98261f5c55c30218ca932c58b6a38a8aa5edd459b1e9fbce2f15794b6a0f4700e0fd26ca1b91736d5906b239b30a31cf6f147d8695d0e242ca10d4cdc89a1729
|
@@ -0,0 +1,30 @@
|
|
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
|
+
# Die Dokumentation aller Properties findest du unter
|
12
|
+
# https://jessas.org/projekt/dokumentation/arbeitsblatt/#frontmatter
|
13
|
+
#
|
14
|
+
title: #{args['title']}
|
15
|
+
description:
|
16
|
+
#
|
17
|
+
# Optionale Properties
|
18
|
+
#
|
19
|
+
# tags: []
|
20
|
+
# folgezettel: []
|
21
|
+
# image:
|
22
|
+
# via:
|
23
|
+
# text:
|
24
|
+
# href:
|
25
|
+
# annotation:
|
26
|
+
---
|
27
|
+
|
28
|
+
<!-- Fußnoten -->
|
29
|
+
|
30
|
+
<!-- Links -->
|
data/lib/jekyll/stubs/blatt.md
CHANGED
@@ -1,30 +1,30 @@
|
|
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.
|
8
|
-
#
|
9
|
-
page_id: #{args['id']}
|
2
|
+
layout: blatt
|
10
3
|
#
|
4
|
+
# created_at: #{Time.now}
|
11
5
|
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
layout: page
|
6
|
+
# Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
|
7
|
+
# Dieser Wert darf auf keinen Fall geändert werden!
|
16
8
|
#
|
9
|
+
id: #{args['slug']}
|
17
10
|
#
|
18
|
-
#
|
11
|
+
# Die Dokumentation aller Properties findest du unter
|
12
|
+
# https://jessas.org/projekt/dokumentation/arbeitsblatt/#frontmatter
|
19
13
|
#
|
20
|
-
title:
|
14
|
+
title: #{args['title']}
|
21
15
|
description:
|
22
16
|
#
|
17
|
+
# Optionale Properties
|
23
18
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
# character at the beginning of the corresponding lines.
|
27
|
-
#
|
28
|
-
# kicker:
|
19
|
+
# tags: []
|
20
|
+
# folgezettel: []
|
29
21
|
# image:
|
22
|
+
# via:
|
23
|
+
# text:
|
24
|
+
# href:
|
25
|
+
# annotation:
|
30
26
|
---
|
27
|
+
|
28
|
+
<!-- Fußnoten -->
|
29
|
+
|
30
|
+
<!-- Links -->
|
data/lib/jekyll/stubs/glosse.md
CHANGED
@@ -6,7 +6,7 @@ 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
|
-
|
9
|
+
id: #{args['slug']}
|
10
10
|
tag: #{args['title']}
|
11
11
|
#
|
12
12
|
# Die Dokumentation aller Properties findest du unter
|
@@ -21,3 +21,8 @@ author:
|
|
21
21
|
# tags: []
|
22
22
|
# image:
|
23
23
|
---
|
24
|
+
|
25
|
+
|
26
|
+
<!-- Fußnoten -->
|
27
|
+
|
28
|
+
<!-- Links -->
|
@@ -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,31 @@
|
|
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
|
+
# Die Dokumentation aller Properties findest du unter
|
12
|
+
# https://jessas.org/projekt/dokumentation/timeline/#frontmatter
|
13
|
+
#
|
14
|
+
title: #{args['title']}
|
15
|
+
description:
|
16
|
+
#
|
17
|
+
# Optionale Properties
|
18
|
+
#
|
19
|
+
# tags: []
|
20
|
+
# folgezettel: []
|
21
|
+
# image:
|
22
|
+
# video:
|
23
|
+
# via:
|
24
|
+
# text:
|
25
|
+
# href:
|
26
|
+
# annotation:
|
27
|
+
---
|
28
|
+
|
29
|
+
<!-- Fußnoten -->
|
30
|
+
|
31
|
+
<!-- Links -->
|
data/lib/jekyll/stubs/zettel.md
CHANGED
@@ -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
|
-
|
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 -->
|
@@ -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.7
|
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-27 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
|