danielrayjones/layouts/_default/web-resume.resume.html

70 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>{{ .Title }}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Scope+One&display=swap" rel="stylesheet">
{{ $options := (dict "targetPath" "resume.css" "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $style := resources.Get "scss/resume.scss" | css.Sass $options | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
</head>
<body>
<header>
<h1>{{ with .Params.post_title }}{{ . | markdownify }}{{ else }}{{ .Title | markdownify }}{{ end }}</h1>
{{ with .Params.Description }}<p>{{ . | markdownify }}</p>{{ end }}
</header>
{{ with .Resources.Get "sections/head-005-contact.md" }}
<aside id="{{ .Params.id }}" class="{{ .Params.class }}">
{{ .Content }}
</aside>
{{ end }}
{{ with .Resources.Get "sections/head-007-summary.md" }}
<aside id="{{ .Params.id }}" class="{{ .Params.class }}">
<h2>Objectives</h3>
{{ .Content }}
</aside>
{{ end }}
{{ with .Resources.Get "sections/head-010-skills.md" }}
<aside id="{{ .Params.id }}" class="{{ .Params.class }}">
{{ .Content }}
</aside>
{{ end }}
{{ with .Resources.Get "data/jobs.yaml" }}
{{ with . | transform.Unmarshal -}}
<div class="post-content">
<section id="workhistory">
{{ $.Content }}
{{ partial "jobs.resume.html" . }}
</section>
</div>
{{ else }}
{{ errorf "Unable to parse jobs" }}
{{ end }}
{{ else }}
{{ errorf "Unable to read jobs" }}
{{ end }}
{{ with .Resources.Get "sections/foot-015-edu.md" }}
<aside id="{{ .Params.id }}" class="{{ .Params.class }}">
{{ .Content }}
</aside>
{{ end }}
{{ with .Resources.Get "data/projects.toml" }}
<aside id="projects">
{{ partial "projects.resume.html" . }}
</aside>
{{ end }}
</body>
</html>