📝 Add markdown output for resume
This commit is contained in:
parent
8b16ca8f91
commit
ded3c58f91
3 changed files with 76 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -53,9 +53,11 @@
|
|||
{{ $toc | safeHTML }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ with .Resources.GetMatch "dan-jones-resume.pdf" }}
|
||||
<p><a href="{{ .RelPermalink }}">Download a PDF</a></p>
|
||||
{{ end }}
|
||||
<p>
|
||||
<a href="dan-jones-resume.html">Printer-friendly format</a> |
|
||||
<a href="index.md">Markdown format</a> |
|
||||
{{ with .Resources.GetMatch "dan-jones-resume.pdf" }}<a href="{{ .RelPermalink }}">Download a PDF</a>{{ end }}
|
||||
</p>
|
||||
</nav>
|
||||
</aside>
|
||||
<hr />
|
||||
|
|
|
|||
70
layouts/_default/web-resume.markdown.md
Normal file
70
layouts/_default/web-resume.markdown.md
Normal file
|
|
@ -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 := "<ul>" -}}
|
||||
{{- range . -}}
|
||||
{{- $html = printf "%s%s" $html "<li>" -}}
|
||||
{{- $html = . | markdownify | printf "%s%s" $html -}}
|
||||
{{- $html = printf "%s%s" $html "</li>" -}}
|
||||
{{- end -}}
|
||||
{{ printf "%s%s" $html "</ul>" | 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue