go-cv/templates/cv.gohtml

119 lines
3.8 KiB
Plaintext

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<title>{{ .Title }}</title>
<link rel="stylesheet" type="text/css" href="assets/style.css"/>
</head>
<body>
<div class="page">
<header>
<ul class="header-links">
<li class="web-only">
<a href="javascript:window.print();">Print</a>
</li>
<li class="web-only">
<a href="index.pdf">PDF</a>
</li>
<li class="print-only">
<a href="{{ .BaseURL }}">{{ prettyUrl .BaseURL }}</a>
</li>
<li>
<a href="{{ .Info.Contacts.LinkedIn }}" target="_blank">{{ prettyUrl .Info.Contacts.LinkedIn }}</a>
</li>
</ul>
<img class="image" src="assets/headshot.jpg" alt="Picture"/>
{{with .Info}}
<h1>{{ .Name }}</h1>
<h2>{{ .Title }}</h2>
<ul class="contact-info">
<li>{{ .BirthDate }}</li>
<li><a href="mailto:{{ .Contacts.Email }}">{{ .Contacts.Email }}</a></li>
{{if notEmpty .Contacts.Phone}}
<li><a href="tel:{{ .Contacts.Phone }}">{{ .Contacts.Phone }}</a></li>
{{end}}
<li>{{ .Location }}</li>
</ul>
{{end}}
</header>
<div class="columm-left">
<h2 class="title">Profile</h2>
<p>{{ .Info.Profile }}</p>
<h2 class="title">Skills</h2>
{{range $section, $tags := .Skills}}
<h3 class="subtitle">{{ $section }}</h3>
<ul class="tags">
{{ with $tags }}
{{ range . }}
<li>{{ . }}</li>
{{end}}
{{end}}
</ul>
{{end}}
</div>
<div class="column-right">
<div class="break-wrapper">
<h2 class="title">Professional Experience</h2>
<ul class="timeline">
{{range .Experience }}
<li>
<i class="orb"><i class="inner"></i></i>
<div class="content">
<h2>{{ .Title }}</h2>
<h3>{{ .Company }} ▪ {{ .Date }}</h3>
<p>
{{range .Tasks}}
▪ {{ . }}<br/>
{{end}}
</p>
</div>
</li>
{{end}}
</ul>
</div>
<div class="break-wrapper">
<h2 class="title">Projects</h2>
<ul class="timeline">
{{range .Projects}}
<li>
<i class="orb"><i class="inner"></i></i>
<div class="content">
{{if eq .Link ""}}
<h2>{{ .Title }}</h2>
{{else}}
<h2><a href="{{ .Link }}" title="{{ .Title }}" target="_blank">{{ .Title }}</a>
</h2>
{{end}}
{{if ne .Date ""}}
<h3>{{ .Date }}</h3>
{{end}}
{{if ne .Description ""}}
<h3>{{ .Description }}</h3>
{{end}}
<p>
{{if notEmpty .Tasks}}
{{range .Tasks}}
▪ {{ . }}<br/>
{{end}}
{{else if notEmpty .Links}}
{{range .Links}}
<p>
<a href="{{ .Link }}">{{ .Text }}<br/>{{ prettyUrl .Link }}</a>
</p>
{{end}}
{{end}}
</p>
</div>
</li>
{{end}}
</ul>
</div>
</div>
<footer>
Generated by <a href="https://git.meow.tf/tyler/go-cv">Go CV</a> using <a href="https://github.com/tystuyfzand/less-go">less-go</a>.
</footer>
</div>
</body>
</html>