Repository navigation
Expand file tree
/
Copy pathindex.hbs
More file actions
51 lines (41 loc) · 2 KB
/
Copy pathindex.hbs
File metadata and controls
51 lines (41 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{{!< default}} <div class="container mx-auto w-full sm:px-4 md:px-6 lg:px-8 py-8 md:py-12">
<!-- Hero Section -->
{{#match @custom.enable_title_and_description "==" true}}
{{#is "home"}}
<section class="container mx-auto w-full">
<h1
class="text-4xl sm:text-5xl lg:text-6xl leading-[1.1] tracking-[-0.03em] font-black text-on-surface dark:text-on-surface-dark mb-6">
{{@custom.title}}
</h1>
<p class="text-lg sm:text-xl text-on-surface-variant max-w-2xl leading-relaxed">
{{@custom.description}}
</p>
</section>
{{/is}}
{{/match}}
{{!-- Show tags only on the first page --}}
{{#match pagination.page "==" 1}}
{{#get "tags" limit="5" include="count.posts" order="count.posts desc"}}
{{#if tags}}
<section class="my-20 flex flex-wrap items-start gap-5">
<a href="{{@site.url}}"
class="inline-flex justify-center items-center px-5 py-2.5 text-sm font-semibold tracking-wide rounded-full bg-primary text-on-primary border border-primary hover:opacity-90 hover:scale-105 active:scale-95 transition-all duration-200 shadow-xs">
All Posts
</a>
{{#foreach tags}}
<a href="{{url}}"
class="inline-flex min-w-24 justify-center items-center px-5 py-2.5 text-sm font-medium rounded-full bg-surface-alt/60 dark:bg-surface-dark-alt/60 border border-outline/15 text-on-surface-variant dark:text-on-surface-dark/80 hover:text-on-surface dark:hover:text-on-surface-dark hover:border-primary/50 dark:hover:border-primary-dark/50 hover:bg-surface-alt dark:hover:bg-surface-dark-alt hover:shadow-sm hover:scale-105 active:scale-95 transition-all duration-200">
{{name}}
</a>
{{/foreach}}
</section>
{{/if}}
{{/get}}
{{/match}}
{{!-- Posts --}}
{{> "layout/posts" posts=posts layout=@custom.layout }}
{{!-- pagination --}}
<div class="flex items-center mt-12 justify-center">
{{pagination}}
</div>
</div>