Browse Source

various fixups for validation errors/warnings...

add missing import macro...
X-UA-Compatible is no longer useful..
name -> id
various mismatched tags..
main
John-Mark Gurney 3 years ago
parent
commit
b70890ab0c
3 changed files with 6 additions and 10 deletions
  1. +3
    -7
      layout/base.j2
  2. +2
    -2
      layout/blog.j2
  3. +1
    -1
      layout/frontpage.j2

+ 3
- 7
layout/base.j2 View File

@@ -1,4 +1,4 @@
{% from "macros.j2" import itemurl %}
{% from "macros.j2" import itemurl, slug %}
<!doctype html> <!doctype html>
<!-- https://github.com/paulirish/html5-boilerplate/blob/master/index.html --> <!-- https://github.com/paulirish/html5-boilerplate/blob/master/index.html -->
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
@@ -7,10 +7,6 @@
{% block starthead %}{% endblock starthead %} {% block starthead %}{% endblock starthead %}
<meta charset="{{ resource.meta.charset }}"> <meta charset="{{ resource.meta.charset }}">


<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="{{ resource.meta.compatibility }}">

<!-- encoding must be specified within the first 512 bytes <!-- encoding must be specified within the first 512 bytes
www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#charset --> www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#charset -->


@@ -21,9 +17,9 @@
compatibility mode is within the first 1K bytes compatibility mode is within the first 1K bytes
code.google.com/p/chromium/issues/detail?id=23003 --> code.google.com/p/chromium/issues/detail?id=23003 -->


<!-- automatically refresh, add/remove closing comment to enable/disable
{#
<meta http-equiv="refresh" content="2"> <meta http-equiv="refresh" content="2">
<!-- end comment for above refresh -->
#}


<!-- Twitter cards, OpenGraph and Slack unfurling --> <!-- Twitter cards, OpenGraph and Slack unfurling -->
<meta name="twitter:card" content="summary" /> <meta name="twitter:card" content="summary" />


+ 2
- 2
layout/blog.j2 View File

@@ -7,7 +7,7 @@
{% mark post -%} {% mark post -%}
<article class="post"> <article class="post">


<h1><a name="{{ slug(resource) }}-title" class="no-tufte-underline" href="{{ itemurl(resource) }}">{{ resource.meta.title }}</a></h1>
<h1 id="{{ slug(resource) }}-title"><a class="no-tufte-underline" href="{{ itemurl(resource) }}">{{ resource.meta.title }}</a></h1>


<p class="posted">Posted: {{ resource.meta.created.strftime('%B %e, %Y') }} at {{ resource.meta.time }}</p> <p class="posted">Posted: {{ resource.meta.created.strftime('%B %e, %Y') }} at {{ resource.meta.time }}</p>


@@ -49,7 +49,7 @@
Previous Previous
</a> </a>
</span> </span>
</div>
</p>
</section> </section>


{%- endblock %} {%- endblock %}

+ 1
- 1
layout/frontpage.j2 View File

@@ -26,7 +26,7 @@
Previous Post Previous Post
</a> </a>
</span> </span>
</div>
</p>
</section> </section>


{% endblock %} {% endblock %}

Loading…
Cancel
Save