Ensure pages in en/ use "lang: en"

This commit is contained in:
David A. Harding 2015-08-18 10:08:11 -04:00
parent 6c14fb7833
commit d0506fb227
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7
5 changed files with 13 additions and 1 deletions

View file

@ -55,7 +55,8 @@ endif
pre-build-tests-fast: check-for-non-ascii-urls check-for-wrong-filename-assignments \ pre-build-tests-fast: check-for-non-ascii-urls check-for-wrong-filename-assignments \
check-for-missing-rpc-summaries \ check-for-missing-rpc-summaries \
check-for-missing-copyright-licenses \ check-for-missing-copyright-licenses \
check-bundle check-bundle \
check-for-english-in-en-dir
## Post-build tests which, aggregated together, take less than 10 seconds to run on a typical PC ## Post-build tests which, aggregated together, take less than 10 seconds to run on a typical PC
post-build-tests-fast: check-for-build-errors ensure-each-svg-has-a-png check-for-liquid-errors \ post-build-tests-fast: check-for-build-errors ensure-each-svg-has-a-png check-for-liquid-errors \
@ -273,3 +274,7 @@ check-for-subheading-anchors:
check-for-javascript-in-svgs: check-for-javascript-in-svgs:
## Security check: don't allow any SVGs that contain Javascript. ## Security check: don't allow any SVGs that contain Javascript.
$S find _site/ -name '*.svg' | xargs grep '<script' | eval $(ERROR_ON_OUTPUT) $S find _site/ -name '*.svg' | xargs grep '<script' | eval $(ERROR_ON_OUTPUT)
check-for-english-in-en-dir:
## All pages must have page.lang set to work properly with the site templates
$S grep -rl -- '---' en/ | xargs grep -L '^[^#]*lang: en' | eval $(ERROR_ON_OUTPUT)

View file

@ -1,6 +1,8 @@
--- ---
# This file is licensed under the MIT License (MIT) available on # This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT. # http://opensource.org/licenses/MIT.
lang: en
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"> <rss version="2.0">

View file

@ -3,6 +3,7 @@
# http://opensource.org/licenses/MIT. # http://opensource.org/licenses/MIT.
layout: null layout: null
lang: en
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

View file

@ -1,6 +1,8 @@
--- ---
# This file is licensed under the MIT License (MIT) available on # This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT. # http://opensource.org/licenses/MIT.
lang: en
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"> <rss version="2.0">

View file

@ -1,6 +1,8 @@
--- ---
# This file is licensed under the MIT License (MIT) available on # This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT. # http://opensource.org/licenses/MIT.
lang: en
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"> <rss version="2.0">