Skip to content

Commit

Permalink
Add a link to edit a post on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Oct 5, 2018
1 parent ac56e6e commit a28a14a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ outputs:
- HTML
- RSS
- Algolia

params:
sourceCodeRepo: https://github.com/dguo/dguo.github.io/blob/master
7 changes: 7 additions & 0 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ <h1>{{ .Title }}</h1>

<hr class="separator">

<p class="edit-message">
Found an error or typo? Feel free to open a pull request on
<a href="{{ .Site.Params.sourceCodeRepo }}/content/{{ .File.Path }}">GitHub</a>.
</p>

<hr class="separator">

{{ template "_internal/disqus.html" . }}

<div class="separator">
Expand Down
4 changes: 4 additions & 0 deletions static/css/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ h1 {
margin-top: 0.8em;
}

.edit-message {
color: #999999;
}

.previous-link {
float: left;
text-align: left;
Expand Down

0 comments on commit a28a14a

Please sign in to comment.