Skip to content

Commit cf4f827

Browse files
swsnrmmistakes
authored andcommittedApr 4, 2017
Replace modified with last_modified_at (mmistakes#930)
Fixes mmistakes#929
1 parent 805dad0 commit cf4f827

36 files changed

+40
-40
lines changed
 

‎_layouts/single.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
2222
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
2323
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
24-
{% if page.modified %}<meta itemprop="dateModified" content="{{ page.modified | date: "%B %d, %Y" }}">{% endif %}
24+
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
2525

2626
<div class="page__inner-wrap">
2727
{% unless page.header.overlay_color or page.header.overlay_image %}
@@ -43,8 +43,8 @@
4343
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
4444
{% endif %}
4545
{% include page__taxonomy.html %}
46-
{% if page.modified %}
47-
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time></p>
46+
{% if page.last_modified_at %}
47+
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.last_modified_at | date: "%Y-%m-%d" }}">{{ page.last_modified_at | date: "%B %d, %Y" }}</time></p>
4848
{% elsif page.date %}
4949
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p>
5050
{% endif %}

‎_layouts/splash.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
1414
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
1515
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
16-
{% if page.modified %}<meta itemprop="dateModified" content="{{ page.modified | date: "%B %d, %Y" }}">{% endif %}
16+
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
1717

1818
<section class="page__content" itemprop="text">
1919
{{ content }}

‎docs/_docs/01-quick-start-guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Quick-Start Guide"
33
permalink: /docs/quick-start-guide/
44
excerpt: "How to quickly install and setup Minimal Mistakes for use with GitHub Pages."
5-
modified: 2016-11-03T10:01:43-04:00
5+
last_modified_at: 2016-11-03T10:01:43-04:00
66
redirect_from:
77
- /theme-setup/
88
---

‎docs/_docs/02-structure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Structure"
33
permalink: /docs/structure/
44
excerpt: "How the theme is organized and what all of the files are for."
5-
modified: 2016-10-06T22:39:43-04:00
5+
last_modified_at: 2016-10-06T22:39:43-04:00
66
---
77

88
Nothing clever here :wink:. Layouts, data files, and includes are all placed in their default locations. Stylesheets and scripts in `assets`, and a few development related files in the project's root directory.

‎docs/_docs/03-installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Installation"
33
permalink: /docs/installation/
44
excerpt: "Instructions for installing the theme for new and existing Jekyll based sites."
5-
modified: 2016-11-03T10:13:32-04:00
5+
last_modified_at: 2016-11-03T10:13:32-04:00
66
---
77

88
## Install the Theme

‎docs/_docs/04-upgrading.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Upgrading"
33
permalink: /docs/upgrading/
44
excerpt: "Instructions and suggestions for upgrading the theme."
5-
modified: 2016-11-03T10:16:34-04:00
5+
last_modified_at: 2016-11-03T10:16:34-04:00
66
---
77

88
If you're using the Ruby Gem version of the theme upgrading is fairly painless.

‎docs/_docs/05-configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Configuration"
33
permalink: /docs/configuration/
44
excerpt: "Settings for configuring and customizing the theme."
5-
modified: 2016-11-29T08:44:22-05:00
5+
last_modified_at: 2016-11-29T08:44:22-05:00
66
---
77

88
Settings that affect your entire site can be changed in [Jekyll's configuration file](https://jekyllrb.com/docs/configuration/): `_config.yml`, found in the root of your project. If you don't have this file you'll need to copy or create one using the theme's [default `_config.yml`](https://github.com/mmistakes/minimal-mistakes/blob/master/_config.yml) as a base.

‎docs/_docs/06-overriding-theme-defaults.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Overriding Theme Defaults"
33
permalink: /docs/overriding-theme-defaults/
44
excerpt: "Instructions on how to customize the theme's default set of layouts, includes, and stylesheets when using the Ruby Gem version."
5-
modified: 2016-11-03T10:49:48-04:00
5+
last_modified_at: 2016-11-03T10:49:48-04:00
66
---
77

88
When installing the theme as a Ruby Gem its layouts, includes, stylesheets, and other assets are all bundled in the `gem`. Meaning they're not easily visible in your project.

‎docs/_docs/07-navigation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Navigation"
33
permalink: /docs/navigation/
44
excerpt: "Instructions on how to customize the main navigation and enabling breadcrumb links."
5-
modified: 2016-11-03T10:50:03-04:00
5+
last_modified_at: 2016-11-03T10:50:03-04:00
66
---
77

88
## Masthead

‎docs/_docs/08-ui-text.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "UI Text"
33
permalink: /docs/ui-text/
44
excerpt: "Text for customizing various user interface elements found in the theme."
5-
modified: 2017-02-14T14:13:24-05:00
5+
last_modified_at: 2017-02-14T14:13:24-05:00
66
---
77

88
Text for various UI elements, `_layouts`, and `_includes` have all been grouped together as a set of translation keys. This is by no means a full-on i18n solution, but it does help make customizing things a bit easier.

‎docs/_docs/09-authors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Authors"
33
permalink: /docs/authors/
44
excerpt: "Instructions and settings for working with multiple site authors."
5-
modified: 2016-11-03T10:55:15-04:00
5+
last_modified_at: 2016-11-03T10:55:15-04:00
66
---
77

88
Sites that may have content authored from various individuals can be accommodated by using [data files](https://jekyllrb.com/docs/datafiles/).

‎docs/_docs/10-layouts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ single_layout_gallery:
77
alt: "single layout with header example"
88
- image_path: /assets/images/mm-layout-single-meta.png
99
alt: "single layout with comments and related posts"
10-
modified: 2017-02-24T15:23:34-05:00
10+
last_modified_at: 2017-02-24T15:23:34-05:00
1111
---
1212

1313
{% include toc icon="columns" title="Included Layouts" %}

‎docs/_docs/11-posts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Working with Posts"
33
permalink: /docs/posts/
44
excerpt: "Suggestions and Front Matter defaults for working with posts."
5-
modified: 2016-11-03T11:12:40-04:00
5+
last_modified_at: 2016-11-03T11:12:40-04:00
66
---
77

88
Posts are stored in the `_posts` directory and named according to the `YEAR-MONTH-DAY-title.MARKUP` format as per [the usual](https://jekyllrb.com/docs/posts/).

‎docs/_docs/12-pages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Working with Pages"
33
permalink: /docs/pages/
44
excerpt: "Suggestions and Front Matter defaults for working with pages."
5-
modified: 2016-11-03T11:13:12-04:00
5+
last_modified_at: 2016-11-03T11:13:12-04:00
66
---
77

88
To better organize all of your pages you can centralize them into a single location similar to posts and collections.

‎docs/_docs/13-collections.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Working with Collections"
33
permalink: /docs/collections/
44
excerpt: "Suggestions and Front Matter defaults for working with collections."
5-
modified: 2016-11-03T11:13:38-04:00
5+
last_modified_at: 2016-11-03T11:13:38-04:00
66
---
77

88
Collections like posts and pages work as you'd expect. If you're new to them be sure to read [Jekyll's documentation](https://jekyllrb.com/docs/collections/).

‎docs/_docs/14-helpers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ feature_row:
3030
- image_path: /assets/images/unsplash-gallery-image-3-th.jpg
3131
title: "Placeholder 3"
3232
excerpt: "This is some sample content that goes here with **Markdown** formatting."
33-
modified: 2016-11-15T12:11:48-05:00
33+
last_modified_at: 2016-11-15T12:11:48-05:00
3434
---
3535

3636
{% include toc icon="gears" title="Helpers" %}

‎docs/_docs/15-utility-classes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Utility Classes"
33
permalink: /docs/utility-classes/
44
excerpt: "CSS classes for aligning text/image, styling buttons and notices, and more."
5-
modified: 2016-11-03T11:32:25-04:00
5+
last_modified_at: 2016-11-03T11:32:25-04:00
66
---
77

88
{% include toc icon="gears" title="Utility Classes" %}

‎docs/_docs/16-stylesheets.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Stylesheets"
33
permalink: /docs/stylesheets/
44
excerpt: "Instructions for customizing and building the theme's stylesheets."
5-
modified: 2016-11-03T11:34:42-04:00
5+
last_modified_at: 2016-11-03T11:34:42-04:00
66
---
77

88
The theme's `assets/css/main.css` file is built from several SCSS partials located in [`_sass/`](https://github.com/mmistakes/minimal-mistakes/tree/master/_sass) and is structured as follows:

‎docs/_docs/17-javascript.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "JavaScript"
33
permalink: /docs/javascript/
44
excerpt: "Instructions for customizing and building the theme's scripts."
5-
modified: 2016-11-03T11:35:42-04:00
5+
last_modified_at: 2016-11-03T11:35:42-04:00
66
---
77

88
The theme's [`assets/js/main.min.js`] script is built from several vendor, jQuery plugins, and other scripts found in [`assets/js/`](https://github.com/mmistakes/minimal-mistakes/tree/master/assets/js).

‎docs/_docs/18-history.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permalink: /docs/history/
44
excerpt: "Change log of enhancements and bug fixes made to the theme."
55
sidebar:
66
nav: docs
7-
modified: 2017-03-27T08:24:24-04:00
7+
last_modified_at: 2017-03-27T08:24:24-04:00
88
---
99

1010
## Unreleased

‎docs/_docs/19-contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Contributing"
33
permalink: /docs/contributing/
44
excerpt: "How you can contribute to make this theme better."
5-
modified: 2017-03-22T09:51:05-04:00
5+
last_modified_at: 2017-03-22T09:51:05-04:00
66
---
77

88
Having trouble working with the theme? Found a typo in the documentation? Interested in adding a feature or [fixing a bug](https://github.com/mmistakes/minimal-mistakes/issues)? Then by all means [submit an issue](https://github.com/mmistakes/minimal-mistakes/issues/new) or [pull request](https://help.github.com/articles/using-pull-requests/). If this is your first pull request, it may be helpful to read up on the [GitHub Flow](https://guides.github.com/introduction/flow/) first.

‎docs/_docs/20-docs-2-2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "2.2 Documentation"
33
permalink: /docs/docs-2-2/
44
excerpt: "Setup and installation instructions for Minimal Mistakes 2.2 (deprecated)."
5-
modified: 2016-04-13T15:54:02-04:00
5+
last_modified_at: 2016-04-13T15:54:02-04:00
66
---
77

88
{% include toc %}

‎docs/_docs/21-license.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "License"
33
permalink: /docs/license/
44
excerpt: "License for Minimal Mistakes Jekyll Theme."
5-
modified: 2016-04-13T15:05:12-04:00
5+
last_modified_at: 2016-04-13T15:05:12-04:00
66
---
77

88
The MIT License (MIT)

‎docs/_layouts/single.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
2222
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
2323
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
24-
{% if page.modified %}<meta itemprop="dateModified" content="{{ page.modified | date: "%B %d, %Y" }}">{% endif %}
24+
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
2525

2626
<div class="page__inner-wrap">
2727
{% unless page.header.overlay_color or page.header.overlay_image %}
@@ -43,8 +43,8 @@
4343
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
4444
{% endif %}
4545
{% include page__taxonomy.html %}
46-
{% if page.modified %}
47-
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time></p>
46+
{% if page.last_modified_at %}
47+
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.last_modified_at | date: "%Y-%m-%d" }}">{{ page.last_modified_at | date: "%B %d, %Y" }}</time></p>
4848
{% elsif page.date %}
4949
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p>
5050
{% endif %}

‎docs/_layouts/splash.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
1414
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
1515
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
16-
{% if page.modified %}<meta itemprop="dateModified" content="{{ page.modified | date: "%B %d, %Y" }}">{% endif %}
16+
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
1717

1818
<section class="page__content" itemprop="text">
1919
{{ content }}

‎docs/_pages/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ layouts_gallery:
1212
- url: /assets/images/mm-layout-archive.png
1313
image_path: /assets/images/mm-layout-archive.png
1414
alt: "archive layout example"
15-
modified: 2017-02-14T14:28:13-05:00
15+
last_modified_at: 2017-02-14T14:28:13-05:00
1616
---
1717

1818
Minimal Mistakes is a flexible two-column Jekyll theme. Perfect for hosting your personal site, blog, or portfolio on GitHub or self-hosting on your own server. As the name implies --- styling is purposely minimalistic to be enhanced and customized by you :smile:.

‎docs/_pages/terms.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
permalink: /terms/
33
title: "Terms and Privacy Policy"
4-
modified: 2016-11-03T11:57:46-04:00
4+
last_modified_at: 2016-11-03T11:57:46-04:00
55
---
66

77
{% include toc %}

‎docs/_posts/2010-01-07-post-modified.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Post: Modified Date"
3-
modified: 2016-03-09T16:20:02-05:00
3+
last_modified_at: 2016-03-09T16:20:02-05:00
44
categories:
55
- Post Formats
66
tags:

‎docs/_posts/2012-03-15-layout-header-overlay-image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags:
1111
- edge case
1212
- image
1313
- layout
14-
modified: 2016-11-03T11:45:09-04:00
14+
last_modified_at: 2016-11-03T11:45:09-04:00
1515
---
1616

1717
This post should display a **header with an overlay image**, if the theme supports it.

‎docs/_posts/2013-08-16-markup-syntax-highlighting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Markup: Syntax Highlighting"
33
excerpt: "Post displaying the various ways of highlighting code in Markdown."
4-
modified: 2016-09-09T09:55:10-04:00
4+
last_modified_at: 2016-09-09T09:55:10-04:00
55
header:
66
teaser: "assets/images/markup-syntax-highlighting-teaser.jpg"
77
tags:

‎docs/_posts/2016-09-21-gemified-theme-alpha.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Gemified Theme -- Alpha Release"
3-
modified: 2016-11-03T11:46:00-04:00
3+
last_modified_at: 2016-11-03T11:46:00-04:00
44
categories:
55
- Jekyll
66
tags:

‎docs/_posts/2016-10-06-gemified-theme-beta.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Gemified Theme -- Beta Release"
3-
modified: 2016-11-03T11:45:04-04:00
3+
last_modified_at: 2016-11-03T11:45:04-04:00
44
categories:
55
- Jekyll
66
tags:

‎test/_pages/terms.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
permalink: /terms/
33
title: "Terms and Privacy Policy"
4-
modified: 2016-06-06
4+
last_modified_at: 2016-06-06
55
---
66

77
{% include base_path %}

‎test/_posts/2010-01-07-post-modified.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Post: Modified Date"
3-
modified: 2016-03-09T16:20:02-05:00
3+
last_modified_at: 2016-03-09T16:20:02-05:00
44
categories:
55
- Post Formats
66
tags:

‎test/_posts/2012-03-15-layout-header-overlay-image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags:
1111
- edge case
1212
- image
1313
- layout
14-
modified: 2016-05-02T11:39:01-04:00
14+
last_modified_at: 2016-05-02T11:39:01-04:00
1515
---
1616

1717
{% include base_path %}

‎test/_posts/2013-08-16-markup-syntax-highlighting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Markup: Syntax Highlighting"
33
excerpt: "Post displaying the various ways of highlighting code in Markdown."
4-
modified: 2016-09-09T09:55:10-04:00
4+
last_modified_at: 2016-09-09T09:55:10-04:00
55
header:
66
teaser: "assets/images/markup-syntax-highlighting-teaser.jpg"
77
tags:

0 commit comments

Comments
 (0)
Please sign in to comment.