|
1 | 1 | <head> |
2 | | - |
3 | | - <meta charset="utf-8"> |
4 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
5 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
6 | | - <link rel="stylesheet" type="text/css" href="{{ "/assets/main-dark.css" | relative_url }}"> |
7 | | - <title>{{ page.title }}</title> |
8 | | - {% if page.robots %} |
9 | | - <meta name="robots" content="{{page.robots}}" /> |
10 | | - {% endif %} |
| 2 | + <meta charset="utf-8" /> |
| 3 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 4 | + <meta |
| 5 | + name="viewport" |
| 6 | + content="width=device-width, initial-scale=1.0, maximum-scale=5.0" |
| 7 | + /> |
| 8 | + <meta http-equiv="X-Content-Type-Options" content="nosniff" /> |
| 9 | + <meta http-equiv="X-Frame-Options" content="DENY" /> |
| 10 | + <meta http-equiv="X-XSS-Protection" content="1; mode=block" /> |
| 11 | + <meta name="referrer" content="no-referrer" /> |
| 12 | + <!-- CSP here --> |
| 13 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| 14 | + <link rel="stylesheet" href="{{ "/assets/main-dark.css" | relative_url }}"> |
| 15 | + <link rel="preload" href="{{ "/assets/header-search.js" | relative_url }}" as="script"> |
| 16 | + <title>{{ page.title | default: site.title }}</title> |
| 17 | + {% if page.robots %} |
| 18 | + <meta name="robots" content="{{ page.robots }}" /> |
| 19 | + {% endif %} |
| 20 | + {% if page.description %} |
| 21 | + <meta name="description" content="{{ page.description }}" /> |
| 22 | + {% endif %} |
| 23 | + <meta property="og:image" content="{{ page.image | default: '/images/profile_picture.jpg' | absolute_url }}" /> |
| 24 | + <meta name="twitter:image" content="{{ page.image | default: '/images/profile_picture.jpg' | absolute_url }}" /> |
| 25 | + {% if page.layout == 'post' %} |
| 26 | + <script type="application/ld+json"> |
| 27 | + { |
| 28 | + "@context": "https://schema.org", |
| 29 | + "@type": "Article", |
| 30 | + "headline": "{{ page.title }}", |
| 31 | + "author": { |
| 32 | + "@type": "Person", |
| 33 | + "name": "{{ site.author | default: '0x7C2f' }}" |
| 34 | + }, |
| 35 | + "datePublished": "{{ page.date | date_to_xmlschema }}", |
| 36 | + "dateModified": "{{ page.lastmod | default: page.date | date_to_xmlschema }}", |
| 37 | + "mainEntityOfPage": { |
| 38 | + "@type": "WebPage", |
| 39 | + "@id": "{{ page.url | absolute_url }}" |
| 40 | + }, |
| 41 | + "publisher": { |
| 42 | + "@type": "Organization", |
| 43 | + "name": "{{ site.title | default: '0x7C2f' }}", |
| 44 | + "logo": { |
| 45 | + "@type": "ImageObject", |
| 46 | + "url": "{{ '/images/profile_picture.jpg' | absolute_url }}" |
| 47 | + } |
| 48 | + } |
| 49 | + } |
| 50 | + </script> |
| 51 | + {% else %} |
| 52 | + <script type="application/ld+json"> |
| 53 | + { |
| 54 | + "@context": "https://schema.org", |
| 55 | + "@type": "WebSite", |
| 56 | + "name": "{{ site.title | default: '0x7C2f' }}", |
| 57 | + "url": "{{ site.url | default: 'https://0x7c2f.github.io' }}", |
| 58 | + "publisher": { |
| 59 | + "@type": "Organization", |
| 60 | + "name": "{{ site.title | default: '0x7C2f' }}", |
| 61 | + "logo": { |
| 62 | + "@type": "ImageObject", |
| 63 | + "url": "{{ '/images/profile_picture.jpg' | absolute_url }}" |
| 64 | + } |
| 65 | + } |
| 66 | + } |
| 67 | + </script> |
| 68 | + {% endif %} |
| 69 | + {% seo %} |
11 | 70 | </head> |
0 commit comments