the home site for me: also iteration 3 or 4 of my site
1<meta charset="UTF-8" /> 2<meta content="IE=edge" http-equiv="X-UA-Compatible" /> 3<meta content="text/html; charset=UTF-8" http-equiv="content-type" /> 4<meta name="viewport" content="width=device-width, initial-scale=1" /> 5<meta name="robots" content="index, follow" /> 6{% if page.title %} {% set title = page.title %} {% elif section.title %} {% set 7title = section.title %} {% elif config.title %} {% set title = config.title %} 8{% endif %} {% if page.extra.author %} {% set author = page.extra.author %} {% 9elif section.extra.author %} {% set author = section.extra.author %} {% elif 10config.extra.author %} {% set author = config.extra.author %} {% endif %} {% if 11page.description %} {% set description = page.description | truncate(length=150) 12%} {% elif section.description %} {% set description = section.description | 13truncate(length=150) %} {% elif config.description %} {% set description = 14config.description | truncate(length=150) %} {% endif %} {% if page.extra.image 15%} {% set image = get_url(path=page.extra.image, trailing_slash=false) %} {% 16elif section.extra.image %} {% set image = get_url(path=section.extra.image, 17trailing_slash=false) %} {% elif config.extra.favicon %} {% set image = 18get_url(path=config.extra.favicon, trailing_slash=false) %} {% endif %} {% if 19page.permalink %} {% set url = page.permalink %} {% elif section.permalink %} {% 20set url = section.permalink %} {% elif config.base_url %} {% set url = 21config.base_url %} {% endif %} {% if title %} 22<title>{{ title }}</title> 23{% endif %} {% block metatags %} {% if title %} 24<meta name="title" content="{{ title }}" /> 25{% endif %} {% if author %} 26<meta name="author" content="{{ author }}" /> 27{% endif %} {% if description %} 28<meta name="description" content="{{ description }}" /> 29{% endif %} 30<meta property="og:type" content="website" /> 31<meta property="og:url" content="{{ url | safe }}" /> 32{% if title %} 33<meta property="og:site_name" content="{{ config.title }}" /> 34{% endif %} {% if title %} 35<meta property="og:title" content="{{ title }}" /> 36{% endif %} {% if description %} 37<meta property="og:description" content="{{ description }}" /> 38{% endif %} {% if image %} 39<meta property="og:image" content="{{ image }}" /> 40{% endif %} {% set twitter_card = config.extra.twitter_card | 41default(value=true) %} {% if twitter_card != false %} 42<meta property="twitter:card" content="summary_large_image" /> 43<meta property="twitter:url" content="{{ url | safe }}" /> 44{% if title %} 45<meta property="twitter:title" content="{{ title }}" /> 46{% endif %} {% if description %} 47<meta property="twitter:description" content="{{ description }}" /> 48{% endif %} {% if image %} 49<meta property="twitter:image" content="{{ image }}" /> 50{% endif %} {% endif %} 51<link rel="canonical" href="{{ url | safe }}" /> 52{% if image %} 53<link 54 rel="shortcut icon" 55 type="image/x-icon" 56 href="{{ get_url(path=config.extra.favicon, trailing_slash=false) }}" 57/> 58{% endif %} {% endblock metatags %} {% if config.generate_feeds %} {% block feed 59%} <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ 60get_url(path="atom.xml", trailing_slash=false) }}"> {% endblock feed %} {% endif 61%} {% block css %} {% set cssHash = get_hash(path="css/main.css", sha_type=256, 62base64=true) %} 63<link 64 rel="stylesheet" 65 type="text/css" 66 href="{{ get_url(path='css/main.css?' ~ cssHash, trailing_slash=false) | safe }}" 67/> 68{% endblock css %} {% set jsHash = get_hash(path="js/script.js", sha_type=256, 69base64=true) %} 70<script 71 src="{{ get_url(path='js/script.js?' ~ jsHash, trailing_slash=false) | safe }}" 72 defer 73></script>