diff options
Diffstat (limited to 'docs/layouts/partials/boxes-section-summaries.html')
-rw-r--r-- | docs/layouts/partials/boxes-section-summaries.html | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/docs/layouts/partials/boxes-section-summaries.html b/docs/layouts/partials/boxes-section-summaries.html index 7568539e4..268336cf5 100644 --- a/docs/layouts/partials/boxes-section-summaries.html +++ b/docs/layouts/partials/boxes-section-summaries.html @@ -1,14 +1,16 @@ <div class="relative {{ .classes }} weight-{{ .context.Weight }}"> - <div class="bg-white mb2 pa3 pa4-l gray"> + + {{ $href := .context.RelPermalink }} {{ if eq .context.Section "news" }} - <date class="f6 db" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> + {{ $href = .context.Permalink }} + <time class="f6 db" datetime="{{ .context.Date.Format `2006-01-02T15:04:05Z07:00` }}"> {{ .context.Date.Format "January 2, 2006" }} - </date> + </time> {{ end }} <h1 class="near-black f3"> - <a href="{{ .context.RelPermalink }}" class="link primary-color dim"> + <a href="{{ $href }}" class="link primary-color dim"> {{- if eq .context.Section "functions" -}} {{ .context.LinkTitle }} {{- else -}} @@ -27,13 +29,10 @@ {{ .context.Summary }} {{ end }} {{ end }} - - <a href="{{ .context.RelPermalink }}" class="f6 mt2 db link primary-color dim"> - Read More » - </a> - + <a href="{{ $href }}" class="f6 mt2 db link primary-color dim"> + Read More » + </a> </div> - </div> </div> |