Skip to content

Commit

Permalink
Inline shortcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
pindab0ter committed Oct 21, 2023
1 parent 04ede31 commit 014f4f3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 47 deletions.
File renamed without changes.
20 changes: 0 additions & 20 deletions content/kittens/_index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
---
title: Kittens
resources:
- name: photo
title: De Avatarkittens
src: kittens-avatar.webp
---

{{< heading-block >}}
<div class="lg:text-end">
<h1 class="mt-0">De kittens van Hamana</h1>
<p class="font-serif">Gefokt met liefde en kennis</p>

<div class="block">
<a
href="/nieuws"
class="whitespace-nowrap rounded-full bg-orange px-4 py-3 font-light text-white transition hover:bg-orange/75"
>
Het laatste nieuws
</a>
</div>
</div>
{{< /heading-block >}}
34 changes: 33 additions & 1 deletion layouts/kittens/section.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
{{ define "main" }}
<main>
{{ .Content }}
<div class="bg-beige">
<div class="mx-auto max-w-screen-xl lg:grid lg:grid-cols-2">
{{ with resources.Get "photos/kittens-avatar.webp" }}
<img
src="{{ .RelPermalink }}"
alt="De Avatarkittensk"
class="aspect-[21/9] w-full object-cover lg:hidden"
/>

<div class="grid place-content-center lg:px-16">
<div class="py-20 lg:text-end">
<h1 class="mt-0">De kittens van Hamana</h1>
<p class="font-serif">Gefokt met liefde en kennis</p>

<div class="block">
<a
href="/nieuws"
class="whitespace-nowrap rounded-full bg-orange px-4 py-3 font-light text-white transition hover:bg-orange/75"
>
Het laatste nieuws
</a>
</div>
</div>
</div>

<img
src="{{ .RelPermalink }}"
alt="De Avatarkittensk"
class="hidden aspect-[16/9] w-full object-cover lg:block"
/>
{{ end }}
</div>
</div>

{{ range .Paginator.Pages }}
<div class="flex justify-center">
Expand Down
21 changes: 0 additions & 21 deletions layouts/shortcodes/heading-block.html

This file was deleted.

5 changes: 0 additions & 5 deletions layouts/shortcodes/text-block.html

This file was deleted.

0 comments on commit 014f4f3

Please sign in to comment.