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

body-article-sidepage.html « partials « layouts - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4f172d2ba891fc04f3d5b92cb77868b93388a0e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-before/_index" "context" .) -}}
<div class="TableOfContents">
    <label>{{T "table-of-contents"}}</label>
    <nav>
        <ul >
            <li><a href="{{ .RelPermalink }}">{{.Title}}</a></li>
        </ul>
    </nav>
    {{ .TableOfContents }}
</div>
{{- 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.editWithNetlifyCMSURL }}
		    <li>
		    	{{$dir := replace .Dir "\\" "/"  }}{{if eq $dir "/" }}{{$dir=""}}{{end}}
		        <a href="{{ .Site.BaseURL }}{{ .Site.Params.editWithNetlifyCMSURL }}{{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="">
		          <i class='fas fa-user'></i>
		          {{T "last-update-by"}} {{ .AuthorName }}
		      </li>
		    {{end}}

    	</ul>
	</nav>
    
</div>