Fix metrics link (#244)

Remove stale.html to be compatible with newer hugo versions, couldn't
figure out who to quickly update it and it's only used when blogs are
marked stale which we never did.

Also I usually go back and update config to make it work with latest
released coredns - if possible.

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2021-11-23 11:12:31 +01:00
committed by GitHub
parent b1637e3cfe
commit f28845fbe6
5 changed files with 3 additions and 25 deletions
-20
View File
@@ -1,20 +0,0 @@
<!-- if the post's date is 9 month (-9) in the past pop up a banner
that says it may be stale. Only done for posts that are tagged with
'stale' tag -->
{{ if (.Date) "le" (now.AddDate 0 -9 0) }}
{{ range .Params.tags }}
{{ if eq (lower .) "stale" }}
<div class="message focus text-center" data-component="message"> <span class="close small"></span>
<p>
This post is older than nine months.
Some examples may not work with the latest CoreDNS version.
</p>
</div>
{{ end }}
{{ end }}
{{ end }}
+1 -1
View File
@@ -16,7 +16,7 @@
{{ range .Paginator.Pages.ByWeight }} {{ partial "page-summary" . }} {{ end }}
<li>
<section>{{ partial "pagination" .}}</section>
</li>
</li>
</ul>
-2
View File
@@ -18,8 +18,6 @@
</div>
<div id="post-box">
{{ partial "stale.html" . }}
<div id="post" itemprop="articleBody">
{{.Content | safeHTML}}
+1 -1
View File
@@ -4,7 +4,7 @@
<div id="main">
<div class="hero">
<h1> {{ .Title}} </h1>
<i class="fa fa-code-fork" aria-hidden="true"></i> <a href="https://github.com/coredns/coredns/tree/master/plugin/{{.Title }} ">Source</a>
<i class="fa fa-code-fork" aria-hidden="true"></i> <a href="https://github.com/coredns/coredns/tree/master/plugin/{{ path.Base .Permalink }} ">Source</a>
<p class="hero-lead">
{{ .Params.description | markdownify }}
</p>
+1 -1
View File
@@ -31,7 +31,7 @@
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<p>{{ .Params.description | markdownify }}</p>
<p>
<i class="fa fa-code-fork" aria-hidden="true"></i> <a href="https://github.com/coredns/coredns/tree/master/plugin/{{ .Title }} ">Source</a>
<i class="fa fa-code-fork" aria-hidden="true"></i> <a href="https://github.com/coredns/coredns/tree/master/plugin/{{ path.Base .Permalink }} ">Source</a>
</p>
</div>
{{ end }}