mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
230a495941
93f7baf80 netlify: Hugo 0.92.2 ecd8a6b6b Merge branch 'tempv0.92.2' ee04caf9f Fix validation of Page Kind in cascade target map 3fce03ed2 Remove the "check" command 70ad71b25 Fix typo (#1651) dfd1dc570 Fix internal link (#1650) b5e0e0d38 Update rotten Fedora package link 78276390a Add missing word in types.md (#1645) 45eb945f8 Remove hugo gen autocomplete 2f84d0896 netlify: Hugo 0.92.1 b55f5773b Update complement.md 7013ee43e Remove deprecated RSSLink from page variables 1c3fb6ed3 Remove deprecated page vars (#1638) 9bd0af3ab Update union.md 4576487a0 Update symdiff.md 58f1b26c7 Update starter-kits.md (#1521) 285356c1d Move inline partials section (#1635) 4d08625d2 Improve directions for editing Win 10 path env var (#1632) 41d9c7804 Update page content (#1629) d05536cad Removed unpaired quote character (#1630) 3b0fdcd88 netlify: Bump to Hugo 0.92.0 cdb068346 docs: Regenerate docshelper 778503ca8 Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb' 2d2401c91 docs: Add dependency table to maintainance page 6bc95c386 Add hugo.Deps 19d0b5e23 docs. Regen CLI docs 76a750d96 docs: Regenerate CLI docs 70156962a docs: Regenerate docshelper git-subtree-dir: docs git-subtree-split: 93f7baf80bd03176ad44701cd2452433d492ea0b
68 lines
No EOL
3 KiB
HTML
68 lines
No EOL
3 KiB
HTML
{{ define "main" }}
|
|
<div class="w-100 ph4 pb5 pb6-ns pt1 mt4 pt3-ns">
|
|
<div class="flex-l">
|
|
<div class="order-2 w-100 w-20-l ph5-m ph0-l mb4 sticky">
|
|
<aside class="fixed-lTK mw5-l right-0 f6 bl-l b--moon-gray pv4 pv0-ns ph4-l nested-list-reset nested-links nested-copy-line-height">
|
|
<p class="b">What's on this Page</p>
|
|
<ul>
|
|
<li><a href="#last-updated">Last Updated</a></li>
|
|
<li><a href="#least-recently-updated">Least Recently Updated</a></li>
|
|
<li><a href="#todos">Pages marked with TODO</a></li>
|
|
<li><a href="#dependencies">Project dependencies (Hugo Modules)</a></li>
|
|
</ul>
|
|
</aside>
|
|
</div>
|
|
<div class="w-100">
|
|
{{ $byLastMod := .Site.RegularPages.ByLastmod }}
|
|
{{ $recent := ($byLastMod | last 30).Reverse }}
|
|
{{ $leastRecent := $byLastMod | first 10 }}
|
|
<h2 id="last-updated">Last Updated</h2>
|
|
{{ partial "maintenance-pages-table" $recent }}
|
|
<h2 id="least-recently-updated">Least Recently Updated</h2>
|
|
{{ 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") }}
|
|
|
|
<h2 id="dependencies">Dependencies</h2>
|
|
<table class="collapse ba br2 b--black-10 pv2 ph3">
|
|
<thead>
|
|
<tr>
|
|
<th class="pv2 ph3 tl f6 fw6 ttu">#</th>
|
|
<th class="pv2 ph3 tl f6 fw6 ttu">Owner</th>
|
|
<th class="pv2 ph3 tl f6 fw6 ttu">Path</th>
|
|
<th class="pv2 ph3 tl f6 fw6 ttu">Version</th>
|
|
<th class="pv2 ph3 tl f6 fw6 ttu">Time</th>
|
|
<th class="pv2 ph3 tl f6 fw6 ttu">Vendor</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $index, $element := hugo.Deps }}
|
|
<tr class="striped--light-gray">
|
|
<th class="pv2 ph3">{{ add $index 1 }}</th>
|
|
<td class="pv2 ph3">{{ with $element.Owner }}{{.Path }}{{ end }}</td>
|
|
<td class="pv2 ph3">
|
|
{{ $element.Path }}
|
|
{{ with $element.Replace}}
|
|
=> {{ .Path }}
|
|
{{ end }}
|
|
</td>
|
|
<td class="pv2 ph3">{{ $element.Version }}</td>
|
|
<td class="pv2 ph3">{{ with $element.Time }}{{ . }}{{ end }}</td>
|
|
<td class="pv2 ph3">{{ $element.Vendor }}</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }} |