Extract markup for `Improve this page` into an inclusion (#9675)

Merge pull request 9675
This commit is contained in:
Ashwin Maroli 2024-09-12 12:16:58 +05:30 committed by GitHub
parent bc443c2e66
commit 75d70a0ba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 10 additions and 14 deletions

View File

@ -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

View File

@ -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> &nbsp;Improve this page
</a>
</div>

View File

@ -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> &nbsp;Improve this page</a>
</div>
{% include improve_doc_link.html %}
<h1>{{ page.title }}</h1>
{{ content }}
</article>

View File

@ -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> &nbsp;Improve this page</a>
</div>
{% include improve_doc_link.html %}
{% endif -%}
<h1>{{ page.title }}</h1>
{{ content }}

View File

@ -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> &nbsp;Improve this page</a>
</div>
{% include improve_doc_link.html %}
<h1>Step by Step Tutorial</h1>
<h2>{{ page.position }}. {{ page.title }}</h2>
{{ content }}

View File

@ -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> &nbsp;Improve this page</a>
</div>
{% include improve_doc_link.html %}
<h1 class="tutorial-title">{{ page.title }}</h1>
{% assign author = page.author %}
{% if author %}