Skip to content

Commit a8e8127

Browse files
committed
🧹
1 parent efa4a6e commit a8e8127

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*.tar
77
*.tar.*
88
typst-x86_64-unknown-linux-musl
9+
assets/henrik-becker*.*
910

1011
.DS_Store
1112
.sass-cache

_plugins/Hooks.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
module Jekyll
1515
Hooks.register :site, :post_write do |site|
16-
next unless Jekyll.env == "production"
1716
cv = site.data['cv']
1817
path = "#{site.source}/assets/henrik-becker"
1918

@@ -24,7 +23,7 @@ module Jekyll
2423
File.binwrite("#{path}.bson", BSON::Document.new(cv).to_bson())
2524

2625
puts " Generating CV as YAML..."
27-
File.write("#{path}yaml", YAML.dump(cv))
26+
File.write("#{path}.yml", YAML.dump(cv))
2827

2928
puts " Generating CV as TOML..."
3029
File.write("#{path}.toml", TomlRB.dump(cv))
@@ -42,7 +41,7 @@ module Jekyll
4241
File.write("#{path}.ttl", Yertle.dump(cv))
4342

4443
puts " Generating CV as PDF..."
45-
system("typst compile --font-path assets/fonts #{site.dest}/assets/henrik-becker.typ #{site.dest}/assets/henrik-becker.pdf --font-path fonts")
44+
system("typst compile --font-path assets/fonts #{path}.typ #{path}.pdf --font-path fonts")
4645

4746
puts " Generating Agreemets as PDF..."
4847
Dir.foreach("#{site.source}/_agreements") do |filename|

0 commit comments

Comments
 (0)