diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-11-17 16:16:19 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-11-17 16:16:19 +0100 |
commit | f04cc581e195bb13803c9e18ca3a3865219e17d4 (patch) | |
tree | 04a8a239f75fd81c8ac7a792d8fb96f401bfa651 /docs/layouts | |
parent | cdd83bf3c885c16dc7976ed3697e600029f82bab (diff) | |
parent | 00c4484c7092181729f6f470805bc7d72e8ad17b (diff) |
Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'
Diffstat (limited to 'docs/layouts')
-rw-r--r-- | docs/layouts/partials/boxes-section-summaries.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/layouts/partials/boxes-section-summaries.html b/docs/layouts/partials/boxes-section-summaries.html new file mode 100644 index 000000000..7568539e4 --- /dev/null +++ b/docs/layouts/partials/boxes-section-summaries.html @@ -0,0 +1,39 @@ +<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 eq .context.Section "commands" }} + {{ replaceRE `(?s).*?##\s.*?\n\n(.*?)\n.*` "$1" .context.RawContent }} + {{ else }} + {{ if .context.Params.description }} + {{ .context.Params.description | markdownify }} + {{ else }} + {{ .context.Summary }} + {{ end }} + {{ end }} + + <a href="{{ .context.RelPermalink }}" class="f6 mt2 db link primary-color dim"> + Read More » + </a> + + </div> + + + </div> +</div> |