Fixup the resume margins properly

This commit is contained in:
Jeremy Wall 2021-10-04 18:23:09 -04:00
parent 3484458bf5
commit 47bb185659
3 changed files with 22 additions and 3 deletions

View File

@ -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/

View File

@ -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

Binary file not shown.