Skip to content

Commit

Permalink
Hugo: same footer on overview as content in docs
Browse files Browse the repository at this point in the history
Add the same article footer on the docs overview pages (/docs/howto) as
the content pages (/docs/howto/use-the-preprocessor).

For testing: other than "last modified", the overview page now also has
a share button and optional tags.

For https://linear.app/usmedia/issue/CUE-341

Closes #435 as merged as of commit e28d599e.

Signed-off-by: Anne van Gorkom <[email protected]>
Change-Id: Id8b363dd87d6e8d934dd0abedeec1f190618fec9
Preview-Path: /docs/howto
Preview-Path: /docs/howto/use-the-preprocessor
Dispatch-Trailer: {"type":"trybot","CL":1172177,"patchset":2,"ref":"refs/changes/77/1172177/2","targetBranch":"alpha"}
  • Loading branch information
anne-usmedia authored and cueckoo committed Nov 14, 2023
1 parent 191f228 commit 7383a5d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hugo/layouts/docs/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

<article class="article article--docs">
<div class="article__container">

<div class="article__content">
{{ .Content }}

Expand All @@ -14,14 +13,13 @@
{{ end }}
</div>

<footer class="article__footer">
{{ partial "last-modified.html" . }}
</footer>
{{- partial "article--footer" . -}}
</div>
</article>

{{ partial "paging/prev-next.html" . }}
</div>

<div id="docs-menu" class="docs__aside">
<div class="docs__backdrop" data-docs-close="docs"></div>
<div class="docs__nav">
Expand Down

0 comments on commit 7383a5d

Please sign in to comment.