Skip to content

Commit

Permalink
feat(template): disable jekyll-last-modified-at for dev mod for bet…
Browse files Browse the repository at this point in the history
…ter performance
  • Loading branch information
sparanoid committed Oct 25, 2015
1 parent e5da89e commit 0b30446
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _app/_includes/themes/curtana/layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h1 class="{{ amsf_page_heading_class }}" title="{{ page.title | strip_html | xm
{% assign date_publish = page.date | date: "%b %-d, %Y" %}
{% assign date_update = page.last_modified_at | date: "%b %-d, %Y" %}

{% if date_publish != date_update %}
{% if date_publish != date_update and site.dev == false %}
<footer class="post-modified-date">
<p>
Updated
Expand Down
6 changes: 6 additions & 0 deletions _config.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ exclude: []
# Almace Scaffolding settings
#

# Enable development mode
dev: true

# Reset base to root for localhost development
base: null

Expand All @@ -17,3 +20,6 @@ file: http://sparanoid.s3-website-us-east-1.amazonaws.com

# Force UTF-8 since local server doesn't send charset in their respond header
force_utf_8: true

# Disalbe custom gems (jekyll-last-modified-at) for better performance
gems: []
3 changes: 3 additions & 0 deletions _config.init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ redcarpet:
# Almace Scaffolding settings
#

# Development mode
dev: false

# Site name
name: Almace Scaffolding

Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ gems:
# Almace Scaffolding settings
#

# Development mode
dev: false

# Site name
name: Almace Scaffolding

Expand Down

0 comments on commit 0b30446

Please sign in to comment.