-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from carstene1ns/update/cleanup
Update/Cleanup
- Loading branch information
Showing
33 changed files
with
87 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/ apple | ||
link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon.png" | ||
link rel="mask-icon" href="/images/icons/safari-pinned-tab.svg" color="#5bbad5" | ||
/ standard compliant | ||
link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png" | ||
link rel="icon" type="image/png" sizes="194x194" href="/images/icons/favicon-194x194.png" | ||
link rel="icon" type="image/png" sizes="192x192" href="/images/icons/android-chrome-192x192.png" | ||
link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png" | ||
meta name="theme-color" content="#2d631d" | ||
/ android | ||
link rel="manifest" href="/site.webmanifest" | ||
/ legacy | ||
link rel="shortcut icon" href="/favicon.ico" | ||
/ microsoft | ||
meta name="msapplication-TileColor" content="#2d631d" | ||
meta name="msapplication-TileImage" content="/images/icons/mstile-144x144.png" | ||
meta name="msapplication-config" content="/browserconfig.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
# use a hash to avoid caching issues | ||
|
||
require 'ruby-xxhash' | ||
|
||
def asset_hash(item) | ||
sum = XXhash.xxh32(File.read(@item[:filename]), 0xEA51) | ||
return sum.to_s | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
|
||
# generate a sitemap for search engines (http://www.sitemaps.org/) | ||
include Nanoc::Helpers::XMLSitemap | ||
use_helper Nanoc::Helpers::XMLSitemap | ||
|
||
def hide_items_from_sitemap | ||
@items.each do |item| | ||
if %w{css scss xml js txt}.include?(item[:extension]) || item.identifier =~ /404/ | ||
item[:is_hidden] = true if item[:is_hidden].nil? | ||
end | ||
# Return all "content" items (pages that are not hidden) for inclusion | ||
def content_items | ||
@items.select do |item| | ||
!item[:is_hidden] && (item[:extension] == '.html' || item.path.to_s.end_with?('/')) | ||
end | ||
end | ||
|
||
# called by preprocess block | ||
def write_sitemap_file | ||
@items.create("<%= xml_sitemap(items: content_items) %>", {}, '/sitemap.xml') | ||
end |