|
1 | 1 | <head> |
2 | 2 | {%- assign title = site.title -%} |
3 | | - {% if page.title %} |
4 | | - {%- assign title = page.title -%} |
| 3 | + {% if include.page.title %} |
| 4 | + {%- assign title = include.page.title -%} |
5 | 5 | {%- endif -%} |
6 | 6 | {%- capture image %}{{ site.url }}/assets/img/banner.png{% endcapture -%} |
7 | | - {% if page.image %} |
8 | | - {% if page.ogtype == "profile" %} |
9 | | - {%- capture image %}{{ site.url }}/assets/img/developers/{{ page.image }}{% endcapture -%} |
| 7 | + {% if include.page.image %} |
| 8 | + {% if include.page.ogtype == "profile" %} |
| 9 | + {%- capture image %}{{ site.url }}/assets/img/developers/{{ include.page.image }}{% endcapture -%} |
10 | 10 | {% else %} |
11 | | - {%- capture image %}{{ site.url }}{{ page.image }}{% endcapture %} |
| 11 | + {%- capture image %}{{ site.url }}{{ include.page.image }}{% endcapture %} |
12 | 12 | {% endif %} |
13 | 13 | {%- endif -%} |
14 | 14 | {% assign description = site.description %} |
15 | | - {% if page.content != "" %} |
16 | | - {% assign description = page.content | markdownify | strip_html | normalize_whitespace | truncate: 145 %} |
| 15 | + {% if include.page.content != "" %} |
| 16 | + {% assign description = include.page.content | markdownify | strip_html | normalize_whitespace | truncate: 145 %} |
17 | 17 | {% endif %} |
18 | | - {% if page.intro %} |
19 | | - {% assign description = page.intro %} |
| 18 | + {% if include.page.intro %} |
| 19 | + {% assign description = include.page.intro %} |
20 | 20 | {% endif %} |
21 | | - {% if page.ogtype == "profile" %} |
22 | | - {% capture description %}{% if page.former %}Former {% endif %}{{ page.role }}{% endcapture %} |
| 21 | + {% if include.page.ogtype == "profile" %} |
| 22 | + {% capture description %}{% if include.page.former %}Former {% endif %}{{ include.page.role }}{% endcapture %} |
23 | 23 | {% endif %} |
24 | | - {%- capture canonical %}{{ site.url }}{{ page.url | replace:'index.html',''}}{% endcapture %} |
25 | | - <title>{% if page.title != True %}{{ page.title }} - {% endif %}{{ site.title }}</title> |
| 24 | + {%- capture canonical %}{{ site.url }}{{ include.page.url | replace:'index.html',''}}{% endcapture %} |
| 25 | + <title>{% if include.page.title != True %}{{ include.page.title }} - {% endif %}{{ site.title }}</title> |
26 | 26 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
27 | 27 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
28 | 28 | <meta name="keywords" content="bugzilla bug track tracking enterprise solution"> |
29 | 29 | <link rel="icon" href="/assets/favicon/favicon.ico" type="image/ico"> |
30 | 30 | <link rel="stylesheet" type="text/css" href="/assets/css/global.css"> |
31 | 31 | <link rel="stylesheet" type="text/css" href="/assets/css/addon.css"> |
32 | 32 | <script defer src="/assets/js/global.js"></script> |
33 | | - {% for addon in page.addons %} |
| 33 | + {% for addon in include.page.addons %} |
34 | 34 | {% case addon.type %} |
35 | 35 | {% when 'js' %} |
36 | 36 | <script defer src="{{ addon.link }}"></script> |
37 | 37 | {% when 'css' %} |
38 | 38 | <link defer rel="stylesheet" type="text/css" href="{{ addon.link }}" {% if addon.media %}media="{{ addon.media }}"{% endif %}> |
39 | 39 | {% endcase %} |
40 | 40 | {% endfor %} |
41 | | - {% for meta in page.meta %} |
| 41 | + {% for meta in include.page.meta %} |
42 | 42 | <{{ meta.type }} {{ meta.tags }}> |
43 | 43 | {% endfor %} |
44 | 44 | <link color="#9248c8" href="/assets/favicon/mask-icon.svg" rel="mask-icon"> |
45 | 45 | <meta property="og:site_name" content="{{ site.title }}"> |
46 | 46 | <meta property="og:title" content="{{ title }}"> |
47 | 47 | <meta property="og:description" content="{{ description }}" /> |
48 | | - <meta property="og:type" content="{% if page.ogtype %}{{ page.ogtype }}{% else %}website{% endif %}"> |
49 | | - {%- case page.ogtype -%} |
| 48 | + <meta property="og:type" content="{% if include.page.ogtype %}{{ include.page.ogtype }}{% else %}website{% endif %}"> |
| 49 | + {%- case include.page.ogtype -%} |
50 | 50 | {%- when "article" %} |
51 | | - <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}"> |
52 | | - {% for author in page.author -%} |
| 51 | + <meta property="article:published_time" content="{{ include.page.date | date_to_xmlschema }}"> |
| 52 | + {% for author in include.page.author -%} |
53 | 53 | <meta property="article:author" content="{{ site.url }}/developers/{{ author }}"> |
54 | 54 | {%- endfor %} |
55 | | - {% for tag in page.tags -%} |
| 55 | + {% for tag in include.page.tags -%} |
56 | 56 | <meta property="article:tag" content="{{ tag }}"> |
57 | 57 | {%- endfor %} |
58 | | - <meta property="article:section" content="{{ page.categories | first }}"> |
| 58 | + <meta property="article:section" content="{{ include.page.categories | first }}"> |
59 | 59 | {%- when "profile" %} |
60 | | - <meta property="profile:first_name" content="{{ page.firstname }}"> |
61 | | - <meta property="profile:last_name" content="{{ page.lastname }}"> |
62 | | - <meta property="profile:username" content="{{ page.nickname }}"> |
| 60 | + <meta property="profile:first_name" content="{{ include.page.firstname }}"> |
| 61 | + <meta property="profile:last_name" content="{{ include.page.lastname }}"> |
| 62 | + <meta property="profile:username" content="{{ include.page.nickname }}"> |
63 | 63 | {%- endcase %} |
64 | 64 | <meta property="og:image" content="{{ image }}"> |
65 | 65 | <meta property="og:url" content="{{ canonical }}"> |
|
69 | 69 | <meta name="twitter:url" content="{{ canonical }}"> |
70 | 70 | <meta name="twitter:image" content="{{ image }}"> |
71 | 71 | <meta name="twitter:site" content="@bugzilla"/> |
72 | | - <meta name="twitter:creator" content="{% if page.twitter %}{{ page.twitter }}{% else %}@bugzilla{% endif %}"/> |
| 72 | + <meta name="twitter:creator" content="{% if include.page.twitter %}{{ include.page.twitter }}{% else %}@bugzilla{% endif %}"/> |
73 | 73 | <meta name="theme-color" content="#9248c8"> |
74 | 74 |
|
75 | 75 | <link rel="canonical" href="{{ canonical }}"> |
|
0 commit comments