Extract markup for `Improve this page` into an inclusion (#9675)
Merge pull request 9675
This commit is contained in:
parent
bc443c2e66
commit
75d70a0ba8
|
@ -4,6 +4,7 @@ name: Jekyll • Simple, blog-aware, static sites
|
|||
description: Transform your plain text into static websites and blogs
|
||||
url: https://jekyllrb.com
|
||||
repository: https://github.com/jekyll/jekyll
|
||||
site_branch: master
|
||||
timezone: America/Los_Angeles
|
||||
twitter:
|
||||
username: jekyllrb
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<div class="improve right hide-on-mobiles">
|
||||
<a data-proofer-ignore href="{{ site.repository }}/edit/{{ site.site_branch }}/docs/{{ page.path }}">
|
||||
<i class="fa fa-pencil"></i> Improve this page
|
||||
</a>
|
||||
</div>
|
|
@ -7,10 +7,7 @@ layout: default
|
|||
{% include docs_contents_mobile.html -%}
|
||||
<div class="unit four-fifths">
|
||||
<article>
|
||||
<div class="improve right hide-on-mobiles">
|
||||
<a data-proofer-ignore href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i
|
||||
class="fa fa-pencil"></i> Improve this page</a>
|
||||
</div>
|
||||
{% include improve_doc_link.html %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ content }}
|
||||
</article>
|
||||
|
|
|
@ -7,9 +7,7 @@ layout: default
|
|||
<div class="unit whole">
|
||||
<article>
|
||||
{%- if page.permalink contains "resources" %}
|
||||
<div class="improve right hide-on-mobiles">
|
||||
<a data-proofer-ignore href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i class="fa fa-pencil"></i> Improve this page</a>
|
||||
</div>
|
||||
{% include improve_doc_link.html %}
|
||||
{% endif -%}
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ content }}
|
||||
|
|
|
@ -6,9 +6,7 @@ layout: default
|
|||
{% include docs_contents_mobile.html -%}
|
||||
<div class="unit four-fifths">
|
||||
<article>
|
||||
<div class="improve right hide-on-mobiles">
|
||||
<a data-proofer-ignore href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i class="fa fa-pencil"></i> Improve this page</a>
|
||||
</div>
|
||||
{% include improve_doc_link.html %}
|
||||
<h1>Step by Step Tutorial</h1>
|
||||
<h2>{{ page.position }}. {{ page.title }}</h2>
|
||||
{{ content }}
|
||||
|
|
|
@ -8,10 +8,7 @@ layout: default
|
|||
<div class="unit four-fifths">
|
||||
<article>
|
||||
<header class="tutorial-header">
|
||||
<div class="improve right hide-on-mobiles">
|
||||
<a href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i
|
||||
class="fa fa-pencil"></i> Improve this page</a>
|
||||
</div>
|
||||
{% include improve_doc_link.html %}
|
||||
<h1 class="tutorial-title">{{ page.title }}</h1>
|
||||
{% assign author = page.author %}
|
||||
{% if author %}
|
||||
|
|
Loading…
Reference in New Issue