aboutsummaryrefslogtreecommitdiff
path: root/website/themes
diff options
context:
space:
mode:
authorSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2022-03-25 20:44:24 +0000
committerSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2022-03-25 20:45:18 +0000
commit352543bff308aed820f8fcf85c4dc3bde7a3f614 (patch)
tree550d09b5012ad145190002e65243359a72ce5cad /website/themes
parentf1d0f449f407d0103553e702539a4dde73d75589 (diff)
downloaddoc-352543bff308aed820f8fcf85c4dc3bde7a3f614.tar.gz
doc-352543bff308aed820f8fcf85c4dc3bde7a3f614.zip
Add last modified to documentation and website
Add the last modified information to the articles and books in the Documentation Portal and in the website.
Diffstat (limited to 'website/themes')
-rw-r--r--website/themes/beastie/i18n/en.toml6
-rw-r--r--website/themes/beastie/layouts/_default/list.html6
-rw-r--r--website/themes/beastie/layouts/_default/single.html6
-rw-r--r--website/themes/beastie/layouts/commercial/list.html6
-rw-r--r--website/themes/beastie/layouts/commercial/single.html6
-rw-r--r--website/themes/beastie/layouts/events/list.html6
-rw-r--r--website/themes/beastie/layouts/events/single.html6
-rw-r--r--website/themes/beastie/layouts/news/list.html6
-rw-r--r--website/themes/beastie/layouts/news/single.html6
-rw-r--r--website/themes/beastie/layouts/press/list.html6
-rw-r--r--website/themes/beastie/layouts/press/single.html6
-rw-r--r--website/themes/beastie/layouts/security/list.html6
-rw-r--r--website/themes/beastie/layouts/security/single.html6
-rw-r--r--website/themes/beastie/layouts/usergroups/section.html7
14 files changed, 84 insertions, 1 deletions
diff --git a/website/themes/beastie/i18n/en.toml b/website/themes/beastie/i18n/en.toml
index 50ef8159b9..8767ae2140 100644
--- a/website/themes/beastie/i18n/en.toml
+++ b/website/themes/beastie/i18n/en.toml
@@ -17,6 +17,12 @@ other = "Download FreeBSD"
[production]
other = "Production"
+[last-modified]
+other = "Last modified on"
+
+[by]
+other = "by"
+
# Header
[donate]
other = "Donate to FreeBSD"
diff --git a/website/themes/beastie/layouts/_default/list.html b/website/themes/beastie/layouts/_default/list.html
index 5e6bbd97a4..286e9ccd5e 100644
--- a/website/themes/beastie/layouts/_default/list.html
+++ b/website/themes/beastie/layouts/_default/list.html
@@ -8,6 +8,12 @@
<div id="contentwrap">
<h1>{{ .Title }}</h1>
{{- .Content -}}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/_default/single.html b/website/themes/beastie/layouts/_default/single.html
index 5e6bbd97a4..286e9ccd5e 100644
--- a/website/themes/beastie/layouts/_default/single.html
+++ b/website/themes/beastie/layouts/_default/single.html
@@ -8,6 +8,12 @@
<div id="contentwrap">
<h1>{{ .Title }}</h1>
{{- .Content -}}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/commercial/list.html b/website/themes/beastie/layouts/commercial/list.html
index 1449315e77..241b529958 100644
--- a/website/themes/beastie/layouts/commercial/list.html
+++ b/website/themes/beastie/layouts/commercial/list.html
@@ -27,6 +27,12 @@
{{ if eq .Params.vendor "misc" }}
{{ partial "commercial-misc.html" . }}
{{ end }}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/commercial/single.html b/website/themes/beastie/layouts/commercial/single.html
index 1449315e77..241b529958 100644
--- a/website/themes/beastie/layouts/commercial/single.html
+++ b/website/themes/beastie/layouts/commercial/single.html
@@ -27,6 +27,12 @@
{{ if eq .Params.vendor "misc" }}
{{ partial "commercial-misc.html" . }}
{{ end }}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/events/list.html b/website/themes/beastie/layouts/events/list.html
index 3af630914e..5d7ac526d6 100644
--- a/website/themes/beastie/layouts/events/list.html
+++ b/website/themes/beastie/layouts/events/list.html
@@ -253,6 +253,12 @@
<a href="2003/">2003</a>
</li>
</ul>
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/events/single.html b/website/themes/beastie/layouts/events/single.html
index 3af630914e..5d7ac526d6 100644
--- a/website/themes/beastie/layouts/events/single.html
+++ b/website/themes/beastie/layouts/events/single.html
@@ -253,6 +253,12 @@
<a href="2003/">2003</a>
</li>
</ul>
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/news/list.html b/website/themes/beastie/layouts/news/list.html
index d9e3ac3e42..a09ce25d88 100644
--- a/website/themes/beastie/layouts/news/list.html
+++ b/website/themes/beastie/layouts/news/list.html
@@ -73,6 +73,12 @@
{{ end }}
{{ end }}
{{ end }}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/news/single.html b/website/themes/beastie/layouts/news/single.html
index d9e3ac3e42..a09ce25d88 100644
--- a/website/themes/beastie/layouts/news/single.html
+++ b/website/themes/beastie/layouts/news/single.html
@@ -73,6 +73,12 @@
{{ end }}
{{ end }}
{{ end }}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/press/list.html b/website/themes/beastie/layouts/press/list.html
index 88c591492a..ee9fc61001 100644
--- a/website/themes/beastie/layouts/press/list.html
+++ b/website/themes/beastie/layouts/press/list.html
@@ -77,6 +77,12 @@
{{ end }}
{{ end }}
{{ end }}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/press/single.html b/website/themes/beastie/layouts/press/single.html
index 88c591492a..ee9fc61001 100644
--- a/website/themes/beastie/layouts/press/single.html
+++ b/website/themes/beastie/layouts/press/single.html
@@ -77,6 +77,12 @@
{{ end }}
{{ end }}
{{ end }}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/security/list.html b/website/themes/beastie/layouts/security/list.html
index fab09a2323..11f204d301 100644
--- a/website/themes/beastie/layouts/security/list.html
+++ b/website/themes/beastie/layouts/security/list.html
@@ -45,6 +45,12 @@
</tbody>
</table>
{{ end }}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/security/single.html b/website/themes/beastie/layouts/security/single.html
index fab09a2323..11f204d301 100644
--- a/website/themes/beastie/layouts/security/single.html
+++ b/website/themes/beastie/layouts/security/single.html
@@ -45,6 +45,12 @@
</tbody>
</table>
{{ end }}
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}
diff --git a/website/themes/beastie/layouts/usergroups/section.html b/website/themes/beastie/layouts/usergroups/section.html
index 49c48c10c5..2466fbb057 100644
--- a/website/themes/beastie/layouts/usergroups/section.html
+++ b/website/themes/beastie/layouts/usergroups/section.html
@@ -156,7 +156,12 @@
{{ end }}
</dl>
{{ end }}
-
+ {{ if .GitInfo }}
+ <hr />
+ <div class="last-modified">
+ <p><strong>{{ i18n "last-modified" }}</strong>: {{ .GitInfo.AuthorDate | time.Format ":date_long" }} {{ i18n "by" }} <a href="https://cgit.freebsd.org/doc/commit/?id={{ .GitInfo.AbbreviatedHash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
+ </div>
+ {{ end }}
</div>
</div>
{{ end }}