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
|
description: Transform your plain text into static websites and blogs
|
||||||
url: https://jekyllrb.com
|
url: https://jekyllrb.com
|
||||||
repository: https://github.com/jekyll/jekyll
|
repository: https://github.com/jekyll/jekyll
|
||||||
|
site_branch: master
|
||||||
timezone: America/Los_Angeles
|
timezone: America/Los_Angeles
|
||||||
twitter:
|
twitter:
|
||||||
username: jekyllrb
|
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 -%}
|
{% include docs_contents_mobile.html -%}
|
||||||
<div class="unit four-fifths">
|
<div class="unit four-fifths">
|
||||||
<article>
|
<article>
|
||||||
<div class="improve right hide-on-mobiles">
|
{% include improve_doc_link.html %}
|
||||||
<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>
|
|
||||||
<h1>{{ page.title }}</h1>
|
<h1>{{ page.title }}</h1>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -7,9 +7,7 @@ layout: default
|
||||||
<div class="unit whole">
|
<div class="unit whole">
|
||||||
<article>
|
<article>
|
||||||
{%- if page.permalink contains "resources" %}
|
{%- if page.permalink contains "resources" %}
|
||||||
<div class="improve right hide-on-mobiles">
|
{% include improve_doc_link.html %}
|
||||||
<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>
|
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
<h1>{{ page.title }}</h1>
|
<h1>{{ page.title }}</h1>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
|
@ -6,9 +6,7 @@ layout: default
|
||||||
{% include docs_contents_mobile.html -%}
|
{% include docs_contents_mobile.html -%}
|
||||||
<div class="unit four-fifths">
|
<div class="unit four-fifths">
|
||||||
<article>
|
<article>
|
||||||
<div class="improve right hide-on-mobiles">
|
{% include improve_doc_link.html %}
|
||||||
<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>
|
|
||||||
<h1>Step by Step Tutorial</h1>
|
<h1>Step by Step Tutorial</h1>
|
||||||
<h2>{{ page.position }}. {{ page.title }}</h2>
|
<h2>{{ page.position }}. {{ page.title }}</h2>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
|
@ -8,10 +8,7 @@ layout: default
|
||||||
<div class="unit four-fifths">
|
<div class="unit four-fifths">
|
||||||
<article>
|
<article>
|
||||||
<header class="tutorial-header">
|
<header class="tutorial-header">
|
||||||
<div class="improve right hide-on-mobiles">
|
{% include improve_doc_link.html %}
|
||||||
<a href="https://github.com/jekyll/jekyll/edit/master/docs/{{ page.path }}"><i
|
|
||||||
class="fa fa-pencil"></i> Improve this page</a>
|
|
||||||
</div>
|
|
||||||
<h1 class="tutorial-title">{{ page.title }}</h1>
|
<h1 class="tutorial-title">{{ page.title }}</h1>
|
||||||
{% assign author = page.author %}
|
{% assign author = page.author %}
|
||||||
{% if author %}
|
{% if author %}
|
||||||
|
|
Loading…
Reference in New Issue