Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/body-article-sidepage.html')
-rw-r--r--layouts/partials/body-article-sidepage.html47
1 files changed, 44 insertions, 3 deletions
diff --git a/layouts/partials/body-article-sidepage.html b/layouts/partials/body-article-sidepage.html
index 5a4aa75..dead969 100644
--- a/layouts/partials/body-article-sidepage.html
+++ b/layouts/partials/body-article-sidepage.html
@@ -1,6 +1,4 @@
{{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-before/_index" "context" .) -}}
-<div class="actions">
-</div>
<div class="TableOfContents">
<label>{{T "table-of-contents"}}</label>
<nav>
@@ -10,4 +8,47 @@
</nav>
{{ .TableOfContents }}
</div>
-{{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-after/_index" "context" .) -}} \ No newline at end of file
+{{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-after/_index" "context" .) -}}
+
+
+<div class="Actions">
+ <nav>
+ <ul>
+ {{ if .Site.Params.editURL }}
+ <li>
+ <a href="{{ .Site.Params.editURL }}{{with .File}}{{ replace .Dir "\\" "/" | safeURL }}{{ .LogicalName }}{{end}}" target="blank">
+ <i class="fab fa-github"></i>
+ {{T "Edit-this-page"}}
+ </a>
+ </li>
+ {{end}}
+
+ {{ if .Site.Params.editWithNetlifyCMSCollection }}
+ <li>
+ <a href="{{.Site.BaseURL}}/admin/#/collections/{{ .Site.Params.editWithNetlifyCMSCollection }}/entries/{{with .File}}{{ replace .Dir "\\" "/" | safeURL }}{{ .BaseFileName }}{{end}}" target="blank">
+ <i class="fab fa-github"></i>
+ {{T "Edit-this-page"}}</a>
+ </li>
+ {{end}}
+ {{ if not .Page.Lastmod.IsZero }}
+ <li>
+ <i class='fas fa-calendar'></i>
+ {{T "last-update-on"}} {{ .Page.Lastmod.Format "02 January 2006" }}
+ </li>
+ {{end}}
+ {{with .GitInfo}}
+ <li title="{{.AuthorDate}}">
+ <i class='fas fa-user'></i>
+ {{T "last-update-by"}} {{ .AuthorName }}
+ </li>
+ {{end}}
+
+
+
+
+
+
+ </ul>
+ </nav>
+
+</div> \ No newline at end of file