Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1296b29

Browse files
committed
Merge pull request elixir-lang#698 from whatyouhide/better-edit-on-gh-link
Better "Edit on GitHub" link in the Getting Started guide
2 parents 7ff82ad + af43ca6 commit 1296b29

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

_includes/bottom.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
<div class="clear"></div>
44

5-
<a id="edit-on-github" href="{{ site.github.repository_url }}/edit/{{ site.branch }}/{{ page.path }}">
6-
Something is wrong? Edit this page on GitHub.
7-
</a>
8-
95
<div id="copyright">
106
&copy; 2012-2016 <a href="http://plataformatec.com.br/">Plataformatec</a>. All rights reserved.
117
</div>

_layouts/getting-started.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ <h3 class="widget-title">{{guide.title}}</h3>
5555
{% endif %}
5656
{% endfor %}
5757

58+
<div id="edit-on-github">
59+
<span>Something is wrong?</span>
60+
<a href="{{ site.github.repository_url }}/edit/{{ site.branch }}/{{ page.path }}">
61+
Edit this page on GitHub.
62+
</a>
63+
</div>
64+
5865
</div><!-- #content -->
5966

6067
{% include bottom.html %}

css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ li.image {
766766
}
767767

768768
#edit-on-github {
769-
display: block;
769+
padding: 5px 0;
770770
text-align: center;
771771
font-size: 12px;
772772
}

0 commit comments

Comments
 (0)