adding my own layouts to tweak the theme and homepage

This commit is contained in:
Chris Cochrun 2022-10-28 09:31:43 -05:00
parent 674e3769ae
commit b2ed33d41d
8 changed files with 269 additions and 24 deletions

View file

@ -0,0 +1,27 @@
<article class="max-w-full prose dark:prose-invert">
<div class="relative shadow-xl sm:overflow-hidden rounded-2xl">
<div class="absolute inset-0">
{{ with .Site.Params.homepage.homepageImage }}
{{ $homepageImage := resources.Get . }}
{{ if $homepageImage }}
<img class="h-full w-full object-cover m-0 nozoom" src="{{ $homepageImage.RelPermalink }}">
<div
class="absolute inset-0 bg-gradient-to-r from-primary-500 to-secondary-700 dark:from-primary-600 dark:to-secondary-800 mix-blend-multiply">
</div>
{{ end }}
{{ end }}
</div>
</div>
{{ with .Title }}
<header>
<h1>{{ . | emojify }}</h1>
</header>
{{ end }}
<section>{{ .Content | emojify }}</section>
<section>
{{ partial "disciplemaking.html" . }}
</section>
</article>
<section>
{{ partial "recent-articles.html" . }}
</section>