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/partials | |
parent | 4d979d130ac0798f4e048f334d62b0e696ae5f36 (diff) |
refactored content
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/experiences.html | 19 | ||||
-rw-r--r-- | layouts/partials/schools.html | 19 | ||||
-rw-r--r-- | layouts/partials/section.html | 36 |
3 files changed, 36 insertions, 38 deletions
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> |