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