diff options
author | Tyler Lawson <tylerjlawson2@gmail.com> | 2020-10-08 05:05:11 +0300 |
---|---|---|
committer | Tyler Lawson <tylerjlawson2@gmail.com> | 2020-10-08 05:05:11 +0300 |
commit | 01e991cb056ab7d98200b3789abd470747587146 (patch) | |
tree | 2ec9d10d3341a670be76f56aec61de0de3688b9f /layouts |
first commit, theme is working in myResume, now needs to be buttoned up for hugo theme request.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 7 | ||||
-rw-r--r-- | layouts/_default/list.html | 0 | ||||
-rw-r--r-- | layouts/_default/single.html | 0 | ||||
-rw-r--r-- | layouts/index.html | 35 | ||||
-rw-r--r-- | layouts/partials/experiences.html | 16 | ||||
-rw-r--r-- | layouts/partials/head.html | 14 | ||||
-rw-r--r-- | layouts/partials/header.html | 22 | ||||
-rw-r--r-- | layouts/partials/schools.html | 16 |
8 files changed, 110 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..662f8c7 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,7 @@ +<!DOCTYPE html> +<html> + {{- partial "head.html" . -}} + <body> + {{- block "main" . }}{{- end }} + </body> +</html> diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/_default/list.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/_default/single.html diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..cfd0b41 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,35 @@ +{{ define "main" }} +<main> + {{ with .Site.Data.content }} + <div class="box"> + <div class="wrap"> + {{ partial "header.html" . }} + {{ with .objective}} + <div> + <h2>Objective</h2> + <p> + {{ . }} + </p> + </div> + {{ end }} + {{ with .schools }} + {{ partial "schools.html" . }} + {{ end }} + {{ with .experiences }} + {{ partial "experiences.html" . }} + {{ end }} + {{ range .info }} + <section> + <h2>{{ .name }}</h2> + <ul> + {{ range .points }} + <li>{{ . }}</li> + {{ end }} + </ul> + </section> + {{ end }} + </div> + </div> + {{ end }} +</main> +{{ end }} diff --git a/layouts/partials/experiences.html b/layouts/partials/experiences.html new file mode 100644 index 0000000..76acd71 --- /dev/null +++ b/layouts/partials/experiences.html @@ -0,0 +1,16 @@ +<section> + <h2>Experience</h2> + {{ range . }} + <div> + <div class="heading-line"> + <h3>{{ .position }} at {{ .company }} - {{ .location }}</h3> + <h3>{{ .startdate }} - {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }}</h3> + </div> + <ul> + {{ range .points }} + <li>{{ . }}</li> + {{ end }} + </ul> + </div> + {{ end }} +</section> diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..a18b3eb --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,14 @@ +<head> + <title>{{ .Site.Title }}</title> + <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap" rel="stylesheet"> + + {{ $style := resources.Get "main.scss" | toCSS }} + <link rel="stylesheet" href="{{ $style.RelPermalink }}" /> + + <link + rel="stylesheet" + href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" + integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" + crossorigin="anonymous" + /> +</head> diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..d7f5dfd --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,22 @@ +<header> + <div class="page-title"> + <h1>{{ .name }}</h1> + <div class="address">{{ .address }}</div> + </div> + <div> + {{ with .email }} + <a href="mailto:{{ . }}">{{ . }}</a> + {{ end }} + {{ with .phone }} + <a href="tel:{{ . }}">({{substr . 0 3}}) {{substr . 3 3}}-{{substr . 6 4}}</a> + {{ end }} + {{ with .website}} + <a href="https://{{ . }}">{{ . }}</a> + {{ end }} + {{ with .github }} + <a href="https://github.com/{{ . }}" + ><i class="fab fa-github"></i> {{ . }}</a + > + {{ end }} + </div> +</header> diff --git a/layouts/partials/schools.html b/layouts/partials/schools.html new file mode 100644 index 0000000..3daf5ac --- /dev/null +++ b/layouts/partials/schools.html @@ -0,0 +1,16 @@ +<section> + <h2>Education</h2> + {{ range . }} + <div class="school"> + <div class="heading-line"> + <h3>{{ .name }} - {{ .location }}</h3> + <h3>{{ .startdate }} - {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }}</h3> + </div> + {{ range .degrees }} + <p> + <em>{{ . }}</em> + </p> + {{ end }} + </div> + {{ end }} +</section> |