Feat: Make template w3c compliant

This commit is contained in:
Philipp Flenker 2019-08-02 14:24:24 +02:00
parent 9a95e493c0
commit 33ed453818
2 changed files with 2 additions and 6 deletions

View File

@ -1,16 +1,12 @@
<meta charset="utf-8" />
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'> <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'> <meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
{% if page.excerpt %} {% if page.excerpt %}
<meta name="description" content="{{ page.excerpt| strip_html }}" />
<meta property="og:description" content="{{ page.excerpt| strip_html }}" /> <meta property="og:description" content="{{ page.excerpt| strip_html }}" />
{% elsif page.description %} {% elsif page.description %}
<meta name="description" content="{{ page.description }}" />
<meta property="og:description" content="{{ page.description }}" /> <meta property="og:description" content="{{ page.description }}" />
{% else %} {% else %}
<meta name="description" content="{{ site.description }}">
<meta property="og:description" content="{{ site.description }}" /> <meta property="og:description" content="{{ site.description }}" />
{% endif %} {% endif %}
<meta name="author" content="{{ site.name }}" /> <meta name="author" content="{{ site.name }}" />

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>{% if page.title %}{{ page.title }} {% endif %}{{ site.name }} {{ site.description }}</title> <title>{% if page.title %}{{ page.title }} {% endif %}{{ site.name }} {{ site.description }}</title>
{% seo %} {% seo title=false %}
{% include meta.html %} {% include meta.html %}
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/style.css" /> <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/style.css" />
@ -24,7 +24,7 @@
<div class="wrapper-masthead"> <div class="wrapper-masthead">
<div class="container"> <div class="container">
<header class="masthead clearfix"> <header class="masthead clearfix">
<a href="{{ site.baseurl }}/" class="site-avatar"><img src="{{ site.avatar }}" /></a> <a href="{{ site.baseurl }}/" class="site-avatar"><img src="{{ site.avatar }}" alt="{{ site.title }}" /></a>
<div class="site-info"> <div class="site-info">
<h1 class="site-name"><a href="{{ site.baseurl }}/">{{ site.name }}</a></h1> <h1 class="site-name"><a href="{{ site.baseurl }}/">{{ site.name }}</a></h1>