Skip to content

Commit 75d70a0

Browse files
authored
Extract markup for Improve this page into an inclusion (#9675)
Merge pull request 9675
1 parent bc443c2 commit 75d70a0

6 files changed

Lines changed: 10 additions & 14 deletions

File tree

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: Jekyll • Simple, blog-aware, static sites
44
description: Transform your plain text into static websites and blogs
55
url: https://jekyllrb.com
66
repository: https://github.com/jekyll/jekyll
7+
site_branch: master
78
timezone: America/Los_Angeles
89
twitter:
910
username: jekyllrb
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="improve right hide-on-mobiles">
2+
<a data-proofer-ignore href="{{ site.repository }}/edit/{{ site.site_branch }}/docs/{{ page.path }}">
3+
<i class="fa fa-pencil"></i> &nbsp;Improve this page
4+
</a>
5+
</div>

docs/_layouts/docs.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
{% include docs_contents_mobile.html -%}
88
<div class="unit four-fifths">
99
<article>
10-
<div class="improve right hide-on-mobiles">
11-
<a data-proofer-ignore href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i
12-
class="fa fa-pencil"></i> &nbsp;Improve this page</a>
13-
</div>
10+
{% include improve_doc_link.html %}
1411
<h1>{{ page.title }}</h1>
1512
{{ content }}
1613
</article>

docs/_layouts/page.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
<div class="unit whole">
88
<article>
99
{%- if page.permalink contains "resources" %}
10-
<div class="improve right hide-on-mobiles">
11-
<a data-proofer-ignore href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i class="fa fa-pencil"></i> &nbsp;Improve this page</a>
12-
</div>
10+
{% include improve_doc_link.html %}
1311
{% endif -%}
1412
<h1>{{ page.title }}</h1>
1513
{{ content }}

docs/_layouts/step.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
{% include docs_contents_mobile.html -%}
77
<div class="unit four-fifths">
88
<article>
9-
<div class="improve right hide-on-mobiles">
10-
<a data-proofer-ignore href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i class="fa fa-pencil"></i> &nbsp;Improve this page</a>
11-
</div>
9+
{% include improve_doc_link.html %}
1210
<h1>Step by Step Tutorial</h1>
1311
<h2>{{ page.position }}. {{ page.title }}</h2>
1412
{{ content }}

docs/_layouts/tutorials.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
<div class="unit four-fifths">
99
<article>
1010
<header class="tutorial-header">
11-
<div class="improve right hide-on-mobiles">
12-
<a href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i
13-
class="fa fa-pencil"></i> &nbsp;Improve this page</a>
14-
</div>
11+
{% include improve_doc_link.html %}
1512
<h1 class="tutorial-title">{{ page.title }}</h1>
1613
{% assign author = page.author %}
1714
{% if author %}

0 commit comments

Comments
 (0)