Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ require_relative './htmlproofer/target_blank_checks.rb'
desc 'Run HTMLProofer w/ custom plugins'
task :htmlproof do

HTMLProofer.check_directory("./_site",
{:empty_alt_ignore => true}).run
HTMLProofer.check_directory("./_site", {
empty_alt_ignore: true,
url_swap: {
# treat urls to faq.coronavirus.gov as local
'https://faq.coronavirus.gov' => ''
}
}).run
end
6 changes: 3 additions & 3 deletions _includes/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="800">
<meta property="og:image:alt" content="Coronavirus FAQ">
<link rel="canonical" href="{{site.baseurl}}/">
<meta property="og:url" content="{{site.baseurl}}/">
<link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url }}">
<meta property="og:url" content="{{ site.url }}{{ site.baseurl }}{{ page.url }}">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" rel="stylesheet">
<!-- Favicons
================================================== -->
Expand All @@ -48,4 +48,4 @@
================================================== -->

{% asset index.scss %}
</head>
</head>