From ded3c58f91e2cb792c1ceac0d423012ef4fb7677 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Sun, 23 Nov 2025 16:56:57 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20markdown=20output=20for=20?= =?UTF-8?q?resume?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/web/index.md | 2 +- layouts/_default/web-resume.html | 8 +-- layouts/_default/web-resume.markdown.md | 70 +++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 layouts/_default/web-resume.markdown.md diff --git a/content/web/index.md b/content/web/index.md index b108f7f..52fef1c 100644 --- a/content/web/index.md +++ b/content/web/index.md @@ -4,6 +4,6 @@ post_title = "🧑‍💻 Dan Jones" toc = true layout = "web-resume" Description = "Software Engineer and Architect" -outputs = ['html','resume'] +outputs = ['html','resume','markdown'] +++ ## Work Experience diff --git a/layouts/_default/web-resume.html b/layouts/_default/web-resume.html index d210794..8b04c30 100644 --- a/layouts/_default/web-resume.html +++ b/layouts/_default/web-resume.html @@ -53,9 +53,11 @@ {{ $toc | safeHTML }} {{ end }} - {{ with .Resources.GetMatch "dan-jones-resume.pdf" }} -

Download a PDF

- {{ end }} +

+ Printer-friendly format | + Markdown format | + {{ with .Resources.GetMatch "dan-jones-resume.pdf" }}Download a PDF{{ end }} +


diff --git a/layouts/_default/web-resume.markdown.md b/layouts/_default/web-resume.markdown.md new file mode 100644 index 0000000..e1d4da3 --- /dev/null +++ b/layouts/_default/web-resume.markdown.md @@ -0,0 +1,70 @@ +# {{ with .Params.post_title }}{{ . }}{{ else }}{{ .Title | markdownify }}{{ end }} + +{{ with .Params.Description }}{{ . }}{{ end }} + +{{ with .Resources.Get "sections/head-005-contact.md" }}{{ .Content | transform.HTMLToMarkdown | safeHTML }}{{ end }} + +{{ with .Resources.Get "sections/head-007-summary.md" -}} +## Objectives + +{{ .Content | transform.HTMLToMarkdown | safeHTML }}{{ end }} + +{{ with .Resources.Get "sections/head-010-skills.md" }}{{ .Content | transform.HTMLToMarkdown | safeHTML }}{{ end }} + +{{ with .Resources.Get "data/jobs.yaml" -}} +{{- with . | transform.Unmarshal -}} +{{ $.Content | transform.HTMLToMarkdown | safeHTML }} + +{{ range . -}} +{{- with .title }}**{{ . }}** / {{ end -}} +{{- if .url }}[{{ end -}} +{{- .name | safeHTML -}} +{{- with .url }}]({{ . }}){{ end }}{{- if or .start .end}} +{{ with .start }}{{ .text }}{{ end }} +{{- if and .start .end}} - {{ end -}} +{{- with .end -}}{{ .text }}{{ end -}} +{{- end }} + +{{ with .headline }}{{ . | safeHTML }} + +{{ end -}} +{{- with .res -}} +{{- $html := "" | transform.HTMLToMarkdown | safeHTML }} + +{{ end -}} +{{- with .tech }}Used: {{ . }} + +{{ end -}} + +{{- end }} +{{- else -}} +{{- errorf "Unable to parse jobs" -}} +{{- end -}} +{{- else -}} +{{- errorf "Unable to read jobs" -}} +{{- end -}} + +{{- with .Resources.Get "data/projects.toml" -}} +{{- with . | transform.Unmarshal -}} + +## Selected Open Source Projects + +{{ range . }}{{ range . }}- [{{ .name }}]({{ .url }}): {{ .desc }} +{{ end }}{{ end }} + + +{{- else -}} +{{- errorf "Unable to parse projects" -}} +{{- end -}} +{{- else -}} +{{- errorf "Unable to read projects" -}} +{{- end -}} + +{{- with .Resources.Get "sections/foot-015-edu.md" }} +{{ .Content | transform.HTMLToMarkdown | safeHTML }}{{ end }}