diff options
Diffstat (limited to 'layouts/index.html')
| -rw-r--r-- | layouts/index.html | 43 |
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" . }} |
