diff options
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/boxes-section-summaries.html')
-rw-r--r-- | docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/boxes-section-summaries.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/boxes-section-summaries.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/boxes-section-summaries.html new file mode 100644 index 000000000..b7e37c47c --- /dev/null +++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/boxes-section-summaries.html @@ -0,0 +1,35 @@ +<div class="relative {{ .classes }} weight-{{ .context.Weight }}"> + + <div class="bg-white mb2 pa3 pa4-l gray"> + {{ if eq .context.Section "news" }} + <date class="f6 db" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> + {{ .context.Date.Format "January 2, 2006" }} + </date> + {{ end }} + + <h1 class="near-black f3"> + <a href="{{ .context.RelPermalink }}" class="link primary-color dim"> + {{- if eq .context.Section "functions" -}} + {{ .context.LinkTitle }} + {{- else -}} + {{ .context.Title }} + {{- end -}} + </a> + </h1> + + <div class="lh-copy links"> + {{ if .context.Params.description }} + {{ .context.Params.description | markdownify }} + {{ else }} + {{ .context.Summary }} + {{ end }} + + <a href="{{ .context.RelPermalink }}" class="f6 mt2 db link primary-color dim"> + Read More » + </a> + + </div> + + + </div> +</div> |