diff --git a/_includes/page__edit.html b/_includes/page__edit.html new file mode 100644 index 0000000..bd71385 --- /dev/null +++ b/_includes/page__edit.html @@ -0,0 +1,7 @@ +{% comment %} + Displays Github icon and link to edit page on Github + + Modeled after the page__{taxonomy,date}.html includes used at the bottom of + the single.html layout and derivatives +{% endcomment %} + {% include github_edit_link %} \ No newline at end of file diff --git a/_layouts/hl-page.html b/_layouts/hl-page.html index 9aabb68..de19af2 100644 --- a/_layouts/hl-page.html +++ b/_layouts/hl-page.html @@ -6,6 +6,8 @@ * Replace sidebar.html with hl-sidebar.html * Add highlight slide image below content * Add authors and achnowledgment at the bottom + * Comment out page__date.html include + * Add page__edit.html include {% endcomment %} {% if page.header.overlay_color or page.header.overlay_image or page.header.image %} @@ -84,7 +86,8 @@

{{ site.data.ui-text[site.locale].meta_label }}

{% endif %} {% include page__taxonomy.html %} - {% include page__date.html %} + {% comment %}{% include page__date.html %}{% endcomment %} + {% include page__edit.html %} {% if page.share %}{% include social-share.html %}{% endif %} diff --git a/_layouts/sw-page.html b/_layouts/sw-page.html index 019b142..50e1934 100644 --- a/_layouts/sw-page.html +++ b/_layouts/sw-page.html @@ -11,6 +11,8 @@ * Added code to display page.long_description and page.target_audience * Added Additional resources section * Added Highlights section + * Comment out page__date.html include + * Add page__edit.html include {% endcomment %} {% assign date_format = site.date_format | default: "%B %-d, %Y" %} @@ -116,7 +118,8 @@

Highlights

{{ site.data.ui-text[site.locale].meta_label }}

{% endif %} {% include page__taxonomy.html %} - {% include page__date.html %} + {% comment %}{% include page__date.html %}{% endcomment %} + {% include page__edit.html %} {% if page.share %}{% include social-share.html %}{% endif %} diff --git a/_layouts/wg-page.html b/_layouts/wg-page.html index ebd377f..c33ae9e 100644 --- a/_layouts/wg-page.html +++ b/_layouts/wg-page.html @@ -8,6 +8,8 @@ * Copied excerpt code from _include/page__hero.html * Added code to display charter * Added Additional resources section + * Comment out page__date.html include + * Add page__edit.html include {% endcomment %} {% capture chair_icon %}{% include icon-map-lookup label="Chair" %}{% endcapture %} {% capture meetings_icon %}{% include icon-map-lookup label="Meetings" %}{% endcapture %} @@ -151,7 +153,8 @@

Additional resources

{{ site.data.ui-text[site.locale].meta_label }}

{% endif %} {% include page__taxonomy.html %} - {% include page__date.html %} + {% comment %}{% include page__date.html %}{% endcomment %} + {% include page__edit.html %} {% if page.share %}{% include social-share.html %}{% endif %}