Improve metadata for posts and pages (closes #50)
This commit is contained in:
		
							parent
							
								
									e29df684bd
								
							
						
					
					
						commit
						d824fd879e
					
				
					 2 changed files with 19 additions and 6 deletions
				
			
		
							
								
								
									
										18
									
								
								_includes/meta.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								_includes/meta.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,18 @@
 | 
			
		|||
    <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 }}" />
 | 
			
		||||
    {% else %}
 | 
			
		||||
    <meta name="description" content="{{ site.description }}">
 | 
			
		||||
    <meta property="og:description" content="{{ site.description }}" />
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    <meta name="author" content="{{ site.name }}" />
 | 
			
		||||
 | 
			
		||||
    {% if page.title %}
 | 
			
		||||
    <meta property="og:title" content="{{ page.title }}" />
 | 
			
		||||
    <meta property="twitter:title" content="{{ page.title }}" />
 | 
			
		||||
    {% endif %}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,14 +1,9 @@
 | 
			
		|||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
  <head>
 | 
			
		||||
    <meta charset="utf-8" />
 | 
			
		||||
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
 | 
			
		||||
 | 
			
		||||
    <title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.name }} – {{ site.description }}</title>
 | 
			
		||||
 | 
			
		||||
    <meta name="author" content="{{ site.name }}" />
 | 
			
		||||
    <meta name="description" content="{{ site.description }}">
 | 
			
		||||
    {% include meta.html %}
 | 
			
		||||
 | 
			
		||||
    <!--[if lt IE 9]>
 | 
			
		||||
      <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue