|
1 | 1 | <!doctype html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
| 4 | + {% assign page_description = page.summary | default: page.description | default: site.description %} |
| 5 | + {% assign page_image = page.banner | default: '/assets/PWindows.png' %} |
| 6 | + {% capture page_full_title %}{% if page.url == '/' %}{{ site.title }} — Not just a Minecraft server{% else %}{{ page.title }} | {{ site.title }}{% endif %}{% endcapture %} |
4 | 7 | {% if page.url == "/" %} {% include schema-org.html %} {% endif %} |
5 | 8 | <meta charset="UTF-8" /> |
6 | 9 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
7 | | - <title>{{ page.title }} | {{ site.title }}</title> |
| 10 | + <title>{{ page_full_title | strip }}</title> |
8 | 11 | <link rel="canonical" href="{{ page.url | absolute_url }}" /> |
9 | | - <meta name="title" content="{{ page.title }} | {{ site.title }}" /> |
| 12 | + <meta name="title" content="{{ page_full_title | strip | escape }}" /> |
10 | 13 | <meta name="application-name" content="PWindows" /> |
11 | 14 | <meta property="og:site_name" content="PWindows" /> |
12 | 15 |
|
13 | 16 | <meta |
14 | 17 | name="description" |
15 | | - content="Discover PWindows, not just a Minecraft server" |
| 18 | + content="{{ page_description | strip_html | escape }}" |
16 | 19 | /> |
17 | 20 | <meta |
18 | 21 | name="keywords" |
19 | 22 | content="PWindows, Minecraft, Server, Community, Roblox, Roblox Studio, Studio, Games, MC, PeterMaZep" |
20 | 23 | /> |
21 | | - <meta name="author" content="PeterMaZep, PWindows" /> |
| 24 | + <meta name="author" content="{% if page.layout == 'news' %}{{ site.data.staff[page.author].name | escape }}{% else %}PWindows{% endif %}" /> |
22 | 25 |
|
23 | 26 | <meta |
24 | 27 | property="og:title" |
25 | | - content="PWindows - Not just a Minecraft Server" |
| 28 | + content="{{ page_full_title | strip | escape }}" |
26 | 29 | /> |
27 | | - <meta property="og:description" content="Discover PWindows" /> |
| 30 | + <meta property="og:description" content="{{ page_description | strip_html | escape }}" /> |
28 | 31 | <meta |
29 | 32 | property="og:image" |
30 | | - content="https://www.pwindows.qzz.io/preview.png" |
| 33 | + content="{{ page_image | absolute_url }}" |
31 | 34 | /> |
32 | 35 | <meta property="og:url" content="{{ page.url | absolute_url }}" /> |
33 | | - <meta property="og:type" content="website" /> |
| 36 | + <meta property="og:type" content="{% if page.layout == 'news' %}article{% else %}website{% endif %}" /> |
| 37 | + {% if page.layout == "news" %} |
| 38 | + <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" /> |
| 39 | + <meta property="article:author" content="{{ site.data.staff[page.author].name | escape }}" /> |
| 40 | + {% endif %} |
34 | 41 |
|
35 | 42 | <meta name="twitter:card" content="summary_large_image" /> |
36 | 43 | <meta |
37 | 44 | name="twitter:title" |
38 | | - content="PWindows - Not just a Minecraft Server" |
| 45 | + content="{{ page_full_title | strip | escape }}" |
39 | 46 | /> |
40 | | - <meta name="twitter:description" content="Discover PWindows" /> |
| 47 | + <meta name="twitter:description" content="{{ page_description | strip_html | escape }}" /> |
41 | 48 | <meta |
42 | 49 | name="twitter:image" |
43 | | - content="https://www.pwindows.qzz.io/preview.png" |
| 50 | + content="{{ page_image | absolute_url }}" |
44 | 51 | /> |
45 | 52 |
|
46 | 53 | <!-- Favicons --> |
|
62 | 69 | /> |
63 | 70 |
|
64 | 71 | <meta name="theme-color" content="#ffffff" /> |
| 72 | + <link rel="manifest" href="/manifest.json" /> |
65 | 73 |
|
66 | 74 | <link |
67 | 75 | rel="stylesheet" |
68 | 76 | href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}" |
69 | 77 | /> |
| 78 | + {% if page.layout == "news" %} |
| 79 | + <link |
| 80 | + rel="stylesheet" |
| 81 | + href="{{ '/assets/css/news.css?v=' | append: site.github.build_revision | relative_url }}" |
| 82 | + /> |
| 83 | + {% endif %} |
70 | 84 | {{ content_for_head }} |
71 | 85 |
|
72 | 86 | <!-- Allow pages to add additional CSS --> |
|
75 | 89 | {% endfor %} {% endif %} |
76 | 90 | </head> |
77 | 91 | <body> |
78 | | - {% if page.layout != "news" %} |
79 | | - <h1 style="display: none">{{ page.title }} | {{ site.title }}</h1> |
80 | | - {% endif %} {% include header.html %} |
| 92 | + {% include header.html %} |
| 93 | + <div class="sr-only" id="site-status" role="status" aria-live="polite"></div> |
81 | 94 | <main>{{ content }}</main> |
82 | 95 | <script src="{{ '/assets/js/main.js?v=' | append: site.time | relative_url }}"></script> |
83 | 96 | </body> |
|
0 commit comments