mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 04:34:51 -04:00
maintenance: Add TODO list
And add the section to the menu.
This commit is contained in:
parent
3b5f27835e
commit
bf93a46eaa
@ -1,9 +1,12 @@
|
|||||||
---
|
---
|
||||||
title: Documentation Maintenance Lists
|
title: Maintenance
|
||||||
description: Some lists useful for the maintenance of the Hugo docs site.
|
description: Some lists useful for the maintenance of the Hugo docs site.
|
||||||
date: 2018-02-09
|
date: 2018-02-09
|
||||||
categories: [maintenance]
|
categories: [maintenance]
|
||||||
keywords: [maintenance]
|
keywords: [maintenance]
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
weight: 200
|
||||||
slug:
|
slug:
|
||||||
aliases: []
|
aliases: []
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -7,17 +7,29 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#last-updated">Last Updated</a></li>
|
<li><a href="#last-updated">Last Updated</a></li>
|
||||||
<li><a href="#least-recently-updated">Least Recently Updated</a></li>
|
<li><a href="#least-recently-updated">Least Recently Updated</a></li>
|
||||||
|
<li><a href="#todos">Pages marked with TODO</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-100">
|
<div class="w-100">
|
||||||
{{ $byLastMod := .Site.RegularPages.ByLastmod }}
|
{{ $byLastMod := .Site.RegularPages.ByLastmod }}
|
||||||
{{ $recent := ($byLastMod | last 10).Reverse }}
|
{{ $recent := ($byLastMod | last 10).Reverse }}
|
||||||
{{ $leastRecent := $byLastMod | first 10 }}
|
{{ $leastRecent := $byLastMod | first 10 }}
|
||||||
<h2 id="last-updated">Last Updated</h2>
|
<h2 id="last-updated">Last Updated</h2>
|
||||||
{{ partial "maintenance-pages-table" $recent }}
|
{{ partial "maintenance-pages-table" $recent }}
|
||||||
<h2 id="least-recently-updated">Least Recently Updated</h2>
|
<h2 id="least-recently-updated">Least Recently Updated</h2>
|
||||||
{{ partial "maintenance-pages-table" $leastRecent }}
|
{{ partial "maintenance-pages-table" $leastRecent }}
|
||||||
|
|
||||||
|
{{/* Don't think this is possible with where directly. Should investigate. */}}
|
||||||
|
{{ .Scratch.Set "todos" slice }}
|
||||||
|
{{ range .Site.RegularPages }}
|
||||||
|
{{ if .HasShortcode "todo" }}
|
||||||
|
{{ $.Scratch.Add "todos" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
<h2 id="todos">Pages marked with TODO</h2>
|
||||||
|
{{ partial "maintenance-pages-table" (.Scratch.Get "todos") }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user