Skip to content

Commit

Permalink
Merge pull request #350 from voxpupuli/fix-edit-button
Browse files Browse the repository at this point in the history
Fix edit button consistency
  • Loading branch information
bastelfreak authored Mar 12, 2024
2 parents 37ae124 + bfa4b99 commit 62efcf6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions _includes/edit_button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a style="float: right;" role="button" class="btn btn-outline-primary" href="https://github.com/{{ site.github_username }}/{{ site.github_username }}.github.io/edit/master/{{ page.path}}">Edit <i class="fa fa-pencil-square-o"></i></a>
2 changes: 1 addition & 1 deletion _layouts/architecture.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
---
<h1>{{ page.title }}
<a style="float: right;" class="btn btn-raised btn-xs" href="https://github.com/{{ site.github_username }}/{{ site.github_username }}.github.io/edit/master/{{ page.path}}">Edit <i class="glyphicon glyphicon-edit"></i></a>
{% include edit_button.html %}
</h1>
<p>
<i>Version {{ page.version}}</i><br />
Expand Down
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

<h1>
{{ page.title }}
<a style="float: right;" role="button" class="btn btn-outline-primary" href="https://github.com/{{ site.github_username }}/{{ site.github_username }}.github.io/edit/master/{{ page.path}}">Edit <i class="fa fa-pencil-square-o"></i></a>
{% include edit_button.html %}
</h1>
{{ content }}
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
---
<h1>{{ page.title }}
<a style="float: right;" class="btn btn-raised btn-xs" href="https://github.com/{{ site.github_username }}/{{ site.github_username }}.github.io/edit/master/{{ page.path}}">Edit <i class="glyphicon glyphicon-edit"></i></a>
{% include edit_button.html %}
</h1>
<p>Published on {{ page.date | date: "%b %-d, %Y" }}{% if page.github_username %} by <a href="https://github.com/{{page.github_username}}">{{ page.github_username }}</a>{% endif %}. {% if page.last_updater %}Last updated on {{ page.last_modified_at | date: "%b %-d, %Y" }}{% if page.last_updater %} by <a href="https://github.com/{{page.last_updater}}">{{ page.last_updater }}{% endif %}</a>.{% endif %}</p>
<article>
Expand Down

0 comments on commit 62efcf6

Please sign in to comment.