working draft of thoughts
This commit is contained in:
17
layouts/_partials/thoughts_preview.html
Normal file
17
layouts/_partials/thoughts_preview.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{- $thoughts := where site.RegularPages "Type" "thoughts" -}}
|
||||
{{- $thoughts = $thoughts.ByDate.Reverse -}}
|
||||
{{- with first 3 $thoughts -}}
|
||||
<section class="thoughts-preview" aria-labelledby="thoughts-preview-heading">
|
||||
<div class="thoughts-preview-header">
|
||||
<h2 id="thoughts-preview-heading">Thoughts</h2>
|
||||
<a class="thoughts-all-link" href="{{ "thoughts/" | relLangURL }}">All thoughts <span aria-hidden="true">→</span></a>
|
||||
</div>
|
||||
<div class="thoughts-grid">
|
||||
{{- range . }}
|
||||
<a class="thought-card" href="{{ "thoughts/" | relLangURL }}#{{ partial "thought_anchor.html" . }}">
|
||||
<span class="thought-card-text">{{ partial "thought_text.html" . }}</span>
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
</section>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user