mirror of
https://github.com/zaphar/jeremy.marzhillstudios.com.git
synced 2025-07-21 19:29:48 -04:00
sile pdf medata api changed
This commit is contained in:
parent
d544b214d2
commit
21d138e58d
@ -1,4 +1,4 @@
|
|||||||
-- Copyright 2021 Jeremy Wall
|
-- Copyright 2022 Jeremy Wall
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -75,13 +75,13 @@ SILE.registerCommand("resume", function(opts, content)
|
|||||||
if author == "" then
|
if author == "" then
|
||||||
SILE.warn("resume.author was empty. Author info will be missing.")
|
SILE.warn("resume.author was empty. Author info will be missing.")
|
||||||
else
|
else
|
||||||
SILE.call("pdf:metadata", {key="Author", val=author}, "")
|
SILE.call("pdf:metadata", {key="Author", value=author}, "")
|
||||||
end
|
end
|
||||||
local keywords = SILE.settings.get("resume.keywords")
|
local keywords = SILE.settings.get("resume.keywords")
|
||||||
if keywords == "" then
|
if keywords == "" then
|
||||||
SILE.warn("resume.keywords was empty. site keywords will be missing.")
|
SILE.warn("resume.keywords was empty. site keywords will be missing.")
|
||||||
else
|
else
|
||||||
SILE.call("pdf:metadata", {key="Keywords", val=keywords}, "")
|
SILE.call("pdf:metadata", {key="Keywords", value=keywords}, "")
|
||||||
end
|
end
|
||||||
local email = SILE.settings.get("resume.email")
|
local email = SILE.settings.get("resume.email")
|
||||||
if email == "" then
|
if email == "" then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user