Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add "Edit this page" link at the bottom of simple page
  • Loading branch information
superbrothers committed Jun 16, 2019
1 parent 025a998 commit bcdabf5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/header-include.html
Expand Up @@ -9,4 +9,6 @@
@media (max-width: 767px) {
.post-content pre { margin-left: -30px; margin-right: -30px; border-radius: 0; }
}
.post-footer-include {margin-top: 80px; }
.edit-this-page { padding-bottom: 2px; border-bottom: 1.5px solid rgba(0, 0, 0, .8); }
</style>
3 changes: 3 additions & 0 deletions layouts/partials/post-footer-include.html
@@ -0,0 +1,3 @@
<div class="post-footer-include">
<a class="edit-this-page" href="https://github.com/superbrothers/text.superbrothers.dev/tree/master/content/{{$.Page.File.Path}}">Edit this page</a>
</div>
1 change: 1 addition & 0 deletions themes/paper/layouts/_default/single.html
Expand Up @@ -17,6 +17,7 @@ <h1 class="post-title">{{ .Title }}</h1>
{{ end }}
</ul>
{{ end }}
{{ partial "post-footer-include.html" . }}
</footer>
<!-- Comments system area start -->
{{ if not (eq .Params.comments false) }}
Expand Down
Empty file.

0 comments on commit bcdabf5

Please sign in to comment.