Merge pull request #7 from pflenker/dev-w3c

Feat: Make template w3c compliant
This commit is contained in:
Amit Merchant 2020-01-04 15:03:33 +05:30 committed by GitHub
commit f5dd53403a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

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

View File

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