diff --git a/Makefile b/Makefile index 7478d9a..a474e0a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -content := $(wildcard content/*.md themes/even/sass/*.scss themes/even/static/* themes/even/templates/*.html themes/even/templates/categories/*.html themes/even/templates/shortcodes/*.html themes/even/templates/tags/*.html) +content := $(wildcard content/*.md themes/even/sass/*.scss themes/even/static/* themes/even/templates/*.html themes/even/templates/categories/*.html themes/even/templates/shortcodes/*.html themes/even/templates/tags/*.html public/static/pdf/*.pdf public/static/img/*) build: content/.built static/pdf/resume-jeremy-wall.pdf all: build deploy @@ -7,13 +7,15 @@ content/.built: $(content) nix-shell -p zola --command "zola build -o public/" touch content/.built +resume: static/pdf/resume-jeremy-wall.pdf + static/pdf/resume-jeremy-wall.pdf: resume/resume.sil resume/resume.lua mkdir -p static/pdf/ mkdir -p ~/.local/share/fonts cp resume/.fonts/* ~/.local/share/fonts/ - nix-shell -p sile --command "sile -o $@ resume/resume.sil" + nix-shell -p sile --command "sile --debug classes -o $@ resume/resume.sil" -publish: build +publish: build static/pdf/resume-jeremy-wall.pdf cd public gsutil -m rsync -d -r public gs://jeremy.marzhillstudios.com/ diff --git a/resume/resume.lua b/resume/resume.lua index b7e313e..55051a2 100644 --- a/resume/resume.lua +++ b/resume/resume.lua @@ -12,6 +12,7 @@ -- See the License for the specific language governing permissions and -- limitations under the License. +local base = SILE.baseClass local plain = SILE.require("plain", "classes") local resume = plain { id = resume } @@ -53,6 +54,22 @@ SILE.settings.set("document.parindent", SILE.nodefactory.glue()) local simpletable = SILE.require("packages/simpletable") simpletable.init(SILE.documentState.documentClass, {tableTag = "table", trTag = "tr", tdTag = "td"}) +resume.defaultFrameset = { + content = { + left = "10%pw", + right = "90%pw", + top = "5%ph", + bottom = "92%ph" + } +} + +resume.endPage = function(self) + -- We skip calling plains endPage but we still need + -- to call the base classes endPage callback. + base.endPage(self) +end + + SILE.registerCommand("resume", function(opts, content) local author = SILE.settings.get("resume.author") if author == "" then diff --git a/static/pdf/resume-jeremy-wall.pdf b/static/pdf/resume-jeremy-wall.pdf deleted file mode 100644 index 0ce531b..0000000 Binary files a/static/pdf/resume-jeremy-wall.pdf and /dev/null differ