summaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2019-11-24 17:18:36 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2019-11-24 17:43:52 +0100
commit1f74c443405b2827217275bbdc428bd9320bb99a (patch)
treed97b3c35280ab24fdffd9b099fca0f318239986b /layouts/index.html
parentf752530692e7a3db2d75bc2c77b80839da64d5f3 (diff)
downloadblog-1f74c443405b2827217275bbdc428bd9320bb99a.tar.gz
blog-1f74c443405b2827217275bbdc428bd9320bb99a.zip
Rework index page layout to include projects
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html43
1 files changed, 31 insertions, 12 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 032e71f..703e5a5 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,16 +1,35 @@
{{ partial "header.html" . }}
- <main role="main">
- <h1 class="list-title">Tech</h1>
-{{ range (where .Data.Pages ".Section" "==" "tech") }}
- <article itemscope itemtype="http://schema.org/Blog">
- <h2 class="entry-title" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
- <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></span>
- <div>
- {{ .Summary }}
- </div>
- </article>
-{{ end }}
- </main>
+ <main role="main">
+ <h2 class="list-title">Projects</h2>
+ <div class="card-grid">
+ {{ range where .Site.RegularPages "Section" "projects" }}
+ <div class="card-wrapper">
+ <article itemscope itemtype="http://schema.org/Blog" class="card">
+ <img src="{{ .Params.image }}" class="card-image">
+ <div class="card-content">
+ <h3 class="card-title" itemprop="headline">
+ {{ .Title }}</a>
+ </h3>
+ <div class="card-text">
+ {{ .Summary }}
+ </div>
+ <div>
+ {{ if .Truncated }}
+ <a href="{{ .RelPermalink }}" class="card-link">Read Article</a>
+ {{ end }}
+ {{ if ne .Params.link nil }}
+ <a href="{{ .Params.link }}" class="card-link">Visit Project Website</a>
+ {{ end }}
+ <span class="card-date">
+ <time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>
+ </span>
+ </div>
+ </div>
+ </article>
+ </div>
+ {{ end }}
+ </div>
+ </main>
{{ partial "footer.html" . }}