Skip to content

Commit bcdabf5

Browse files
committed
Add "Edit this page" link at the bottom of simple page
1 parent 025a998 commit bcdabf5

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

layouts/partials/header-include.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
@media (max-width: 767px) {
1010
.post-content pre { margin-left: -30px; margin-right: -30px; border-radius: 0; }
1111
}
12+
.post-footer-include {margin-top: 80px; }
13+
.edit-this-page { padding-bottom: 2px; border-bottom: 1.5px solid rgba(0, 0, 0, .8); }
1214
</style>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="post-footer-include">
2+
<a class="edit-this-page" href="https://github.com/superbrothers/text.superbrothers.dev/tree/master/content/{{$.Page.File.Path}}">Edit this page</a>
3+
</div>

themes/paper/layouts/_default/single.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ <h1 class="post-title">{{ .Title }}</h1>
1717
{{ end }}
1818
</ul>
1919
{{ end }}
20+
{{ partial "post-footer-include.html" . }}
2021
</footer>
2122
<!-- Comments system area start -->
2223
{{ if not (eq .Params.comments false) }}

themes/paper/layouts/partials/post-footer-include.html

Whitespace-only changes.

0 commit comments

Comments
 (0)