Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,11 @@ a:hover {
display: block;
}
}

.content__reading-time {
font-size: var(--font-step--1);
color: oklch(var(--color-footer-text));
}
}

.headerlink {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ doctypes:
title: Installing NGINX Open Source
toc: true
weight: 200
nd-reading-time: true
---

![hero-graphic](/hero-graphic.webp)
Expand Down
5 changes: 5 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
{{ partial "banner" .}}

<h1>{{ .Title }}</h1>
<div class="content__reading-time">
{{ if index .Params "nd-reading-time" }}
{{ printf "~%d min read" .ReadingTime }}
{{ end }}
</div>

{{ $content | safeHTML }}

Expand Down