summaryrefslogtreecommitdiffstats
path: root/layouts/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/home.html')
-rw-r--r--layouts/home.html40
1 files changed, 19 insertions, 21 deletions
diff --git a/layouts/home.html b/layouts/home.html
index f285b41..6328ee5 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -1,29 +1,27 @@
+{{ define "canvas-mode" }}hero{{ end }}
+
{{ define "main" }}
{{ partial "hero.html" . }}
- <div class="container feed-section">
- <div class="feed-label">Latest</div>
-
- <div class="feed-grid">
- {{ $articlesSection := .Site.GetPage "/articles" }}
- {{ if $articlesSection }}
- {{ $articles := $articlesSection.Pages }}
- {{ $articles := sort $articles "Date" "desc" }}
- {{ range first 6 $articles }}
- {{ $type := .Params.type }}
- {{ if not $type }}{{ $type = "article" }}{{ end }}
+ <section id="articles" class="section-container reveal-group">
+ {{ $articlesSection := .Site.GetPage "/articles" }}
+ {{ if $articlesSection }}
+ {{ $articles := $articlesSection.Pages }}
+ {{ $articles := sort $articles "Date" "desc" }}
+ {{ range first 6 $articles }}
+ {{ $type := .Params.type }}
+ {{ if not $type }}{{ $type = "article" }}{{ end }}
- {{ $excerpt := .Params.excerpt }}
- {{ if not $excerpt }}
- {{ $excerpt = .Summary | plainify | truncate 150 }}
- {{ end }}
-
- {{ $data := dict "title" .Title "type" $type "description" $excerpt "date" .Date "url" .RelPermalink "image" .Params.image "featured" .Params.featured }}
- {{ partial "post-card.html" $data }}
+ {{ $excerpt := .Params.excerpt }}
+ {{ if not $excerpt }}
+ {{ $excerpt = .Summary | plainify | truncate 150 }}
{{ end }}
+
+ {{ $data := dict "title" .Title "type" $type "description" $excerpt "date" .Date "url" .RelPermalink "image" .Params.image "featured" .Params.featured }}
+ {{ partial "post-card.html" $data }}
{{ end }}
- </div>
+ {{ end }}
- <a href="/articles/" class="feed-cta">View all articles</a>
- </div>
+ <a href="/articles/" class="btn btn-outline">View All Articles</a>
+ </section>
{{ end }}