Update the resume template and styles

This commit is contained in:
Eryn Wells 2022-09-25 07:53:07 -07:00
parent ee9da5b829
commit 4800d22fb6
2 changed files with 19 additions and 30 deletions

View file

@ -13,10 +13,7 @@
font-style: italic; font-style: italic;
} }
header h3 { header h3 { margin-block-end: 0.5rem; }
margin-bottom: 0;
}
ul { ul { margin-top: 0; }
margin-top: 0; li { margin-block-end: 0.75rem; }
}

View file

@ -1,25 +1,17 @@
{{ define "main" }} {{ define "header" }}
{{ partial "header.html" . }}
<article id="resume" class="post-single"> {{ end }}
<header class="post-title">
<h1>{{ .Title }}</h1> {{ define "main" }}
</header> <header class="post-title">
<h1>{{ .Title }}</h1>
<section class="post-content"> </header>
{{ .Content }}
</section> <section class="post-content">
{{ .Content }}
<!-- Post Nav --> </section>
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}<!----> {{ end }}
{{ if and (gt (len $pages) 1) (in $pages . ) }}
<nav class="post-nav"> {{ define "footer" }}
{{ with $pages.Next . }} {{ partial "footer.html" . }}
<a class="prev" href="{{ .Permalink }}"><span></span><span>{{ .Name }}</span></a>
{{ end }} {{ with $pages.Prev . }}
<a class="next" href="{{ .Permalink }}"><span>{{ .Name }}</span><span></span></a>
{{ end }}
</nav>
{{ end }}
</article>
{{ end }} {{ end }}