diff options
author | Tyler Lawson <tylerjlawson2@gmail.com> | 2021-01-22 08:59:38 +0300 |
---|---|---|
committer | Tyler Lawson <tylerjlawson2@gmail.com> | 2021-01-22 08:59:38 +0300 |
commit | 39ea0b3a0e525d70a7b695b07bac97266b2fa004 (patch) | |
tree | 35a9f2be26c99cb07582e5dbe97a779529b85043 /layouts | |
parent | 4d979d130ac0798f4e048f334d62b0e696ae5f36 (diff) |
refactored content
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 25 | ||||
-rw-r--r-- | layouts/partials/experiences.html | 19 | ||||
-rw-r--r-- | layouts/partials/schools.html | 19 | ||||
-rw-r--r-- | layouts/partials/section.html | 36 |
4 files changed, 37 insertions, 62 deletions
diff --git a/layouts/index.html b/layouts/index.html index b851493..728cb68 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,30 +4,7 @@ <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>{{ . | markdownify }}</li> - {{ end }} - </ul> - </section> - {{ end }} + {{ range .sections }} {{ partial "section.html" . }} {{ end }} </div> </div> {{ end }} diff --git a/layouts/partials/experiences.html b/layouts/partials/experiences.html deleted file mode 100644 index 950c5b3..0000000 --- a/layouts/partials/experiences.html +++ /dev/null @@ -1,19 +0,0 @@ -<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>{{ . | markdownify }}</li> - {{ end }} - </ul> - </div> - {{ end }} -</section> diff --git a/layouts/partials/schools.html b/layouts/partials/schools.html deleted file mode 100644 index 390d022..0000000 --- a/layouts/partials/schools.html +++ /dev/null @@ -1,19 +0,0 @@ -<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> diff --git a/layouts/partials/section.html b/layouts/partials/section.html new file mode 100644 index 0000000..6dcf406 --- /dev/null +++ b/layouts/partials/section.html @@ -0,0 +1,36 @@ +<section> + <h2>{{ .heading }}</h2> + {{ with .body }}<p>{{ . }}</p>{{ end }} + {{ with .points }} + <ul> + {{ range . }} + <li>{{ . | markdownify }}</li> + {{ end }} + </ul> + {{ end }} + {{ range .subsections }} + <div> + {{ with .heading }} + <div class="heading-line"> + <h3>{{ .label }}</h3> + <h3> + {{ .startdate }} - + {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }} + </h3> + </div> + {{ end }} + {{ range .degrees }} + <p> + <em>{{ . }}</em> + </p> + {{ end }} + {{ with .points }} + <ul> + {{ range . }} + <li>{{ . | markdownify }}</li> + {{ end }} + </ul> + {{ end }} + </div> + {{ end }} +</section> |