diff --git a/_includes/blocks/tabs.html b/_includes/blocks/tabs.html
index fa2feb7..09975fa 100644
--- a/_includes/blocks/tabs.html
+++ b/_includes/blocks/tabs.html
@@ -3,7 +3,7 @@
{% for tab in include.tabs %}
-
-
+
{{ tab.label }}
{% endfor %}
diff --git a/_includes/head.html b/_includes/head.html
index 6e3d523..b808d13 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -24,7 +24,7 @@
{%- include misc/google-analytics.html -%}
{%- endif -%}
- {% if page.hero.image %}
+ {% if page.hero.image and page.hero.image != "" %}
{% endif %}
diff --git a/_layouts/default.html b/_layouts/default.html
index c5a9d1d..f5d7263 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -18,7 +18,7 @@
{%- include footer.html -%}
-
+
diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake
index 141470c..8da90f8 100644
--- a/lib/tasks/test.rake
+++ b/lib/tasks/test.rake
@@ -1,16 +1,10 @@
require 'iiifc'
namespace :test do
- desc 'Check html'
+ desc 'Check Images and Scripts'
task :html do
opts = {
- check_html: true,
- assume_extension: true,
- validation: {
- report_mismatched_tags: true,
- report_invalid_tags: true
- },
- checks_to_ignore: ['LinkCheck']
+ checks: ['Images', 'Scripts']
}
HTMLProofer.check_directory(SITE_DIR, opts).run
end
@@ -20,33 +14,35 @@ namespace :test do
task :internal do
puts 'Checking for internal link errors'
opts = {
- checks_to_ignore: ['ImageCheck', 'HtmlCheck', 'ScriptCheck'],
+ checks: ['Links'],
disable_external: true,
- internal_domains: ['localhost:4000']
+ enforce_https: false,
+ internal_domains: ['localhost:4000'],
}
HTMLProofer.check_directory(SITE_DIR, opts).run
end
- desc 'Check for *iiif.io* link errors'
- task :iiif do
- puts 'Checking for link errors in *iiif.io* sites'
+
+ desc 'Check for external link rot'
+ task :external do
+ puts 'Checking for external link errors'
opts = {
- checks_to_ignore: ['ImageCheck', 'HtmlCheck', 'ScriptCheck'],
- url_ignore: [/^((?!iiif\.io).)*$/, 'github'] # temporarily ignore iiif.io github repo errors
+ enforce_https: false,
+ ignore_status_codes: [429],
+ only_4xx: true,
+ checks: ['Links','Images'],
+ url_ignore: [/.*iiif\.io.*/],
+ ignore_files: [/.*news\/.*/]
}
HTMLProofer.check_directory(SITE_DIR, opts).run
end
- desc 'Check for external link rot'
- task :external do
- puts 'Checking for external link errors'
+ desc 'Check for https link errors'
+ task :https do
+ puts 'Checking for https link errors'
opts = {
- external_only: true,
- http_status_ignore: [429],
enforce_https: true,
- only_4xx: true,
- checks_to_ignore: ['ImageCheck', 'HtmlCheck', 'ScriptCheck'],
- url_ignore: [/.*iiif\.io.*/]
+ checks: ['Links','Images'],
}
HTMLProofer.check_directory(SITE_DIR, opts).run
end