Skip to content

Commit

Permalink
Remove updated date and add edit on Github link to collection pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhold committed Feb 4, 2025
1 parent 964e09e commit b3e22ad
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions _includes/page__edit.html
Original file line number Diff line number Diff line change
@@ -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 %}
<strong><i class="fa-brands fa-fw fa-github"></i> {% include github_edit_link %}</strong>
5 changes: 4 additions & 1 deletion _layouts/hl-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -84,7 +86,8 @@ <h1 id="page-title" class="page__title" itemprop="headline">
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
{% endif %}
{% include page__taxonomy.html %}
{% include page__date.html %}
{% comment %}{% include page__date.html %}{% endcomment %}
{% include page__edit.html %}
</footer>

{% if page.share %}{% include social-share.html %}{% endif %}
Expand Down
5 changes: 4 additions & 1 deletion _layouts/sw-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}

Expand Down Expand Up @@ -116,7 +118,8 @@ <h2 id="highlights">Highlights</h2>
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
{% endif %}
{% include page__taxonomy.html %}
{% include page__date.html %}
{% comment %}{% include page__date.html %}{% endcomment %}
{% include page__edit.html %}
</footer>

{% if page.share %}{% include social-share.html %}{% endif %}
Expand Down
5 changes: 4 additions & 1 deletion _layouts/wg-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -151,7 +153,8 @@ <h2 id="additional-resources">Additional resources</h2>
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
{% endif %}
{% include page__taxonomy.html %}
{% include page__date.html %}
{% comment %}{% include page__date.html %}{% endcomment %}
{% include page__edit.html %}
</footer>

{% if page.share %}{% include social-share.html %}{% endif %}
Expand Down

0 comments on commit b3e22ad

Please sign in to comment.