Skip to content

Commit fed87a1

Browse files
committed
Pleasing v.Nu HTML validator
1 parent 9f4b884 commit fed87a1

File tree

5 files changed

+25
-20
lines changed

5 files changed

+25
-20
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ pelican-mg
33

44
[![build status](https://github.com/Lucas-C/pelican-mg/workflows/build/badge.svg)](https://github.com/Lucas-C/pelican-mg/actions?query=branch%3Amaster)
55

6+
![HTML checker: W3C v.Nu](https://img.shields.io/badge/HTML%20checker-W3C%20v.Nu-green.svg)
7+
68
A minimal theme for [Pelican](http://blog.getpelican.com/) that uses uikit.
79
The theme is suited for a single author blog. Feeds are provided via ATOM.
810

run.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ install_dev () {
1616
}
1717

1818
test_ludochaordic () {
19-
if ! [ -e vnu-runtime-image ]; then
20-
curl -ROLs https://github.com/validator/validator/releases/download/latest/vnu.linux.zip \
21-
&& unzip vnu.linux.zip \
22-
&& rm vnu.linux.zip \
23-
&& vnu-runtime-image/bin/vnu --version
24-
fi
2519
THEME_DIR=$PWD
2620
cd ..
2721
if ! [ -d pelican-plugins ]; then
@@ -45,8 +39,15 @@ test_ludochaordic () {
4539
cp $THEME_DIR/.htmlhintrc output/
4640
htmlhint output/
4741

48-
$THEME_DIR/vnu-runtime-image/bin/vnu --Werror --filterfile .vnurc output/index.html
49-
$THEME_DIR/vnu-runtime-image/bin/vnu --Werror --filterfile .vnurc output/quelques-sites-web-que-jai-concu.html
42+
if ! [ -d vnu-runtime-image ]; then
43+
curl -ROLs https://github.com/validator/validator/releases/download/latest/vnu.linux.zip \
44+
&& unzip vnu.linux.zip \
45+
&& rm vnu.linux.zip \
46+
&& vnu-runtime-image/bin/vnu --version
47+
fi
48+
./vnu-runtime-image/bin/vnu --Werror --filterfile .vnurc output/index.html
49+
./vnu-runtime-image/bin/vnu --Werror --filterfile .vnurc output/quelques-sites-web-que-jai-concu.html
50+
./vnu-runtime-image/bin/vnu --Werror --filterfile .vnurc output/a-review-of-html-linters.html
5051
}
5152

5253
eval "$1"

templates/article.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{% block seo %}
88
<meta property="og:title" content="{{ article.title|capitalize }}" >
99
<meta property="og:type" content="article" >
10+
<meta property="og:locale" content="{{ article.lang }}" >
1011
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" >
1112
<meta name="twitter:title" content="{{ article.title|capitalize }}" >
1213
<meta name="twitter:url" content="{{ SITEURL }}/{{ article.url }}" >
@@ -123,7 +124,7 @@ <h1 class="uk-heading-large uk-article-title p-name" itemprop="name">{{ article.
123124
data-isso-vote="{{ 'true' if ISSO_ENABLE_VOTE else 'false' }}"
124125
{% endif %}
125126
></script>
126-
<section id="isso-thread"></section>
127+
<div id="isso-thread"></div>
127128
{% endif %}
128129

129130
</div>

templates/base.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html>
22
{% if article %}
3-
<!--[if lt IE 7]> <html lang="{{ DEFAULT_LANG }}" class="no-js lt-ie9 lt-ie8 lt-ie7" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/BlogPosting"> <![endif]-->
4-
<!--[if IE 7]> <html lang="{{ DEFAULT_LANG }}" class="no-js lt-ie9 lt-ie8" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/BlogPosting"> <![endif]-->
5-
<!--[if IE 8]> <html lang="{{ DEFAULT_LANG }}" class="no-js lt-ie9" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/BlogPosting"> <![endif]-->
6-
<!--[if gt IE 8]><!--> <html lang="{{ DEFAULT_LANG }}" class="no-js" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/BlogPosting"> <!--<![endif]-->
3+
<!--[if lt IE 7]> <html lang="{{ article.lang }}" class="no-js lt-ie9 lt-ie8 lt-ie7" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/BlogPosting"> <![endif]-->
4+
<!--[if IE 7]> <html lang="{{ article.lang }}" class="no-js lt-ie9 lt-ie8" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/BlogPosting"> <![endif]-->
5+
<!--[if IE 8]> <html lang="{{ article.lang }}" class="no-js lt-ie9" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/BlogPosting"> <![endif]-->
6+
<!--[if gt IE 8]><!--> <html lang="{{ article.lang }}" class="no-js" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/BlogPosting"> <!--<![endif]-->
77
{% elif page %}
8-
<!--[if lt IE 7]> <html lang="{{ DEFAULT_LANG }}" class="no-js lt-ie9 lt-ie8 lt-ie7" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
9-
<!--[if IE 7]> <html lang="{{ DEFAULT_LANG }}" class="no-js lt-ie9 lt-ie8" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
10-
<!--[if IE 8]> <html lang="{{ DEFAULT_LANG }}" class="no-js lt-ie9" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
11-
<!--[if gt IE 8]><!--> <html lang="{{ DEFAULT_LANG }}" class="no-js" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage"> <!--<![endif]-->
8+
<!--[if lt IE 7]> <html lang="{{ page.lang }}" class="no-js lt-ie9 lt-ie8 lt-ie7" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
9+
<!--[if IE 7]> <html lang="{{ page.lang }}" class="no-js lt-ie9 lt-ie8" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
10+
<!--[if IE 8]> <html lang="{{ page.lang }}" class="no-js lt-ie9" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage"> <![endif]-->
11+
<!--[if gt IE 8]><!--> <html lang="{{ page.lang }}" class="no-js" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage"> <!--<![endif]-->
1212
{% else %}
1313
<!--[if lt IE 7]> <html lang="{{ DEFAULT_LANG }}" class="no-js lt-ie9 lt-ie8 lt-ie7" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/Blog"> <![endif]-->
1414
<!--[if IE 7]> <html lang="{{ DEFAULT_LANG }}" class="no-js lt-ie9 lt-ie8" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/Blog"> <![endif]-->
@@ -56,7 +56,7 @@
5656
<meta property="og:url" content="{{ SITEURL }}" >
5757
<meta name="twitter:url" content="{{ SITEURL }}" >
5858
<meta itemprop="name" content="{{ SITENAME }}" >
59-
<meta itemprop="url" content="{{ SITEURL }}">
59+
<meta itemprop="url" content="{{ SITEURL }}" >
6060
{% if DESCRIPTION %}
6161
<meta property="og:description" content="{{ DESCRIPTION|striptags|escape }}" >
6262
<meta name="twitter:description" content="{{ DESCRIPTION|striptags|escape }}" >
@@ -107,7 +107,7 @@
107107
</div>
108108
</header>
109109

110-
<main role="main">
110+
<main>
111111
{% block desc_header %}
112112
{% endblock %}
113113

templates/page.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{% block seo %}
88
<meta property="og:title" content="{{ page.title|capitalize }}" >
99
<meta property="og:type" content="website" >
10+
<meta property="og:locale" content="{{ page.lang }}" >
1011
<meta property="og:url" content="{{ SITEURL }}/{{ page.url }}" >
1112
<meta name="twitter:url" content="{{ SITEURL }}/{{ page.url }}" >
1213
<meta itemprop="url" content="{{ SITEURL }}/{{ page.url }}">
@@ -70,7 +71,7 @@ <h1 class="uk-heading-large uk-article-title" itemprop="name">{{ page.title }}</
7071
data-isso-vote="{{ 'true' if ISSO_ENABLE_VOTE else 'false' }}"
7172
{% endif %}
7273
></script>
73-
<section id="isso-thread"></section>
74+
<div id="isso-thread"></div>
7475
{% endif %}
7576
</article>
7677
{% endblock %}

0 commit comments

Comments
 (0)