Add Edit on GitHub
#116
|
@ -12,3 +12,6 @@
|
|||
|
||||
- id: page_next
|
||||
translation: "Next"
|
||||
|
||||
- id: edit_this_page
|
||||
translation: "Edit this page"
|
||||
|
|
|
@ -12,3 +12,6 @@
|
|||
|
||||
- id: page_next
|
||||
translation: "Volgende"
|
||||
|
||||
- id: edit_this_page
|
||||
translation: "Bewerk deze pagina"
|
||||
|
|
|
@ -12,3 +12,6 @@
|
|||
|
||||
- id: page_next
|
||||
translation: "Próximo"
|
||||
|
||||
- id: edit_this_page
|
||||
translation: "Edite essa página"
|
||||
|
|
|
@ -12,3 +12,6 @@
|
|||
|
||||
- id: page_next
|
||||
translation: "后一页"
|
||||
|
||||
- id: edit_this_page
|
||||
translation: "编辑此页面"
|
||||
|
|
|
@ -12,3 +12,6 @@
|
|||
|
||||
- id: page_next
|
||||
translation: "下一頁"
|
||||
|
||||
- id: edit_this_page
|
||||
translation: "編輯此頁面"
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
<div class="column is-three-quarters">
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
<hr>
|
||||
{{ partial "edit_this_page" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
<div class="column">
|
||||
<div class=" content">
|
||||
{{ .Content }}
|
||||
<hr>
|
||||
{{ partial "edit_this_page" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
3
layouts/partials/edit-this-page.html
Normal file
3
layouts/partials/edit-this-page.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{- if and .Site.Params.repo .File -}}
|
||||
<a href="{{ .Site.Params.repo }}/edit/main/{{ .Site.Params.docContentPath }}/{{ .File.Path }}">{{- T "edit_this_page" -}}</a>
|
||||
{{- end -}}
|
Reference in New Issue
Block a user