Add services list from data template
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
</div>
|
||||
<div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white">
|
||||
<header class="mb-8">
|
||||
<h2 class="text-2xl font-bold">{{ .Title }}</h1>
|
||||
<h1 class="text-2xl font-bold">{{ .Title }}</h1>
|
||||
{{ if .Description }}
|
||||
<p class="mt-2 text-lg text-zinc-500">{{ .Description }}</p>
|
||||
{{ end }}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</div>
|
||||
<div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white">
|
||||
<header class="mb-8">
|
||||
<h2 class="text-2xl font-bold">{{ .Title }}</h1>
|
||||
<h1 class="text-2xl font-bold">{{ .Title }}</h1>
|
||||
{{ if .Description }}
|
||||
<p class="mt-2 text-lg text-zinc-500">{{ .Description }}</p>
|
||||
{{ end }}
|
||||
|
||||
13
themes/kosmos-22/layouts/partials/services/community.html
Normal file
13
themes/kosmos-22/layouts/partials/services/community.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ range site.Data.services.community }}
|
||||
<h3 class="mb-4 text-sm uppercase text-zinc-500">{{ .category }}</h3>
|
||||
<ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8">
|
||||
{{ range .items }}
|
||||
<li>
|
||||
<h4 class="text-lg font-bold mb-2">
|
||||
<a href="{{ .url }}" class="border-b border-zinc-400">{{ .name }}</a>
|
||||
</h4>
|
||||
<p>{{ .description }}</p>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
1
themes/kosmos-22/layouts/shortcodes/partial.html
Normal file
1
themes/kosmos-22/layouts/shortcodes/partial.html
Normal file
@@ -0,0 +1 @@
|
||||
{{ partial (.Get 0) (.Get 1) }}
|
||||
Reference in New Issue
Block a user