adding my own layouts to tweak the theme and homepage
This commit is contained in:
parent
674e3769ae
commit
b2ed33d41d
8 changed files with 269 additions and 24 deletions
27
layouts/partials/home/page.html
Normal file
27
layouts/partials/home/page.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue