hexo-theme-gnix 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/layout/common/navbar.jsx
CHANGED
|
@@ -21,12 +21,7 @@ const renderLinkIcon = (link) => {
|
|
|
21
21
|
// start with '<' means svg icon
|
|
22
22
|
if (link.icon === "travellings") {
|
|
23
23
|
return (
|
|
24
|
-
<svg
|
|
25
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
-
viewBox="0 0 448 512"
|
|
27
|
-
role="img"
|
|
28
|
-
aria-label="Travellings Icon"
|
|
29
|
-
>
|
|
24
|
+
<svg viewBox="0 0 448 512" role="img" aria-label="Travellings Icon">
|
|
30
25
|
<path
|
|
31
26
|
fill="var(--text)"
|
|
32
27
|
d="M96 0C43 0 0 43 0 96v256c0 48 35.2 87.7 81.1 94.9l-46 46c-7 7-2 19.1 7.9 19.1h39.7c8.5 0 16.6-3.4 22.6-9.4L160 448h128l54.6 54.6c6 6 14.1 9.4 22.6 9.4h39.7c10 0 15-12.1 7.9-19.1l-46-46c46-7.1 81.1-46.9 81.1-94.9V96c0-53-43-96-96-96zM64 128c0-17.7 14.3-32 32-32h80c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm208-32h80c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32h-80c-17.7 0-32-14.3-32-32v-96c0-17.7 14.3-32 32-32M64 352a32 32 0 1 1 64 0a32 32 0 1 1-64 0m288-32a32 32 0 1 1 0 64a32 32 0 1 1 0-64"
|
|
@@ -44,13 +39,12 @@ class Navbar extends Component {
|
|
|
44
39
|
return (
|
|
45
40
|
<nav class="navbar navbar-main" onclick="handleNavbarClick(event);">
|
|
46
41
|
<div class="navbar-container">
|
|
47
|
-
<a href={siteUrl}
|
|
42
|
+
<a href={siteUrl}>
|
|
48
43
|
<svg
|
|
49
|
-
version="1.0"
|
|
50
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
51
44
|
fill="var(--flamingo)"
|
|
52
45
|
viewBox="0 0 1182.000000 750.000000"
|
|
53
46
|
width="5em"
|
|
47
|
+
height="100%"
|
|
54
48
|
role="img"
|
|
55
49
|
aria-label="Blog Logo"
|
|
56
50
|
>
|
|
@@ -84,12 +78,7 @@ class Navbar extends Component {
|
|
|
84
78
|
title="Choose Theme"
|
|
85
79
|
onclick="window.openThemeModal?.()"
|
|
86
80
|
>
|
|
87
|
-
<svg
|
|
88
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
89
|
-
viewBox="0 0 14 14"
|
|
90
|
-
role="img"
|
|
91
|
-
aria-label="Theme Selector"
|
|
92
|
-
>
|
|
81
|
+
<svg viewBox="0 0 14 14" role="img" aria-label="Theme Selector">
|
|
93
82
|
<g fill="none">
|
|
94
83
|
<path
|
|
95
84
|
fill="var(--red)"
|
|
@@ -136,12 +125,7 @@ class Navbar extends Component {
|
|
|
136
125
|
class="navbar-item search"
|
|
137
126
|
title={searchTitle}
|
|
138
127
|
>
|
|
139
|
-
<svg
|
|
140
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
141
|
-
viewBox="0 0 14 14"
|
|
142
|
-
role="img"
|
|
143
|
-
aria-label="Search Icon"
|
|
144
|
-
>
|
|
128
|
+
<svg viewBox="0 0 14 14" role="img" aria-label="Search Icon">
|
|
145
129
|
<g fill="none" fill-rule="evenodd" clip-rule="evenodd">
|
|
146
130
|
<path
|
|
147
131
|
fill="var(--text)"
|
|
@@ -44,6 +44,7 @@ module.exports = class extends Component {
|
|
|
44
44
|
stripHTML(description).substring(0, 200).trim(),
|
|
45
45
|
).replace(/\n/g, " ");
|
|
46
46
|
htmlTags.push(<meta name="description" content={description} />);
|
|
47
|
+
htmlTags.push(<meta property="og:description" content={description} />);
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
htmlTags.push(<meta property="og:type" content={type || "website"} />);
|
|
@@ -51,10 +52,6 @@ module.exports = class extends Component {
|
|
|
51
52
|
htmlTags.push(<meta property="og:url" content={encodeURL(url)} />);
|
|
52
53
|
htmlTags.push(<meta property="og:site_name" content={siteName} />);
|
|
53
54
|
|
|
54
|
-
if (description) {
|
|
55
|
-
htmlTags.push(<meta property="og:description" content={description} />);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
55
|
if (language) {
|
|
59
56
|
if (language.length === 2) {
|
|
60
57
|
language = language.replace(localeRegex, (str) => localeMap[str]);
|
|
@@ -99,9 +96,8 @@ module.exports = class extends Component {
|
|
|
99
96
|
}
|
|
100
97
|
}
|
|
101
98
|
|
|
102
|
-
if (author)
|
|
99
|
+
if (author)
|
|
103
100
|
htmlTags.push(<meta property="article:author" content={author} />);
|
|
104
|
-
}
|
|
105
101
|
|
|
106
102
|
if (keywords) {
|
|
107
103
|
if (typeof keywords === "string") {
|
|
@@ -122,25 +118,19 @@ module.exports = class extends Component {
|
|
|
122
118
|
<meta property="twitter:card" content={twitterCard || "summary"} />,
|
|
123
119
|
);
|
|
124
120
|
|
|
125
|
-
if (twitterId)
|
|
121
|
+
if (twitterId)
|
|
126
122
|
htmlTags.push(<meta property="twitter:creator" content={twitterId} />);
|
|
127
|
-
}
|
|
128
123
|
|
|
129
|
-
if (twitterSite)
|
|
124
|
+
if (twitterSite)
|
|
130
125
|
htmlTags.push(<meta property="twitter:site" content={twitterSite} />);
|
|
131
|
-
}
|
|
132
126
|
|
|
133
|
-
if (googlePlus) {
|
|
134
|
-
htmlTags.push(<link rel="publisher" href={googlePlus} />);
|
|
135
|
-
}
|
|
127
|
+
if (googlePlus) htmlTags.push(<link rel="publisher" href={googlePlus} />);
|
|
136
128
|
|
|
137
|
-
if (facebookAdmins)
|
|
129
|
+
if (facebookAdmins)
|
|
138
130
|
htmlTags.push(<meta property="fb:admins" content={facebookAdmins} />);
|
|
139
|
-
}
|
|
140
131
|
|
|
141
|
-
if (facebookAppId)
|
|
132
|
+
if (facebookAppId)
|
|
142
133
|
htmlTags.push(<meta property="fb:app_id" content={facebookAppId} />);
|
|
143
|
-
}
|
|
144
134
|
|
|
145
135
|
return <>{htmlTags}</>;
|
|
146
136
|
}
|
package/package.json
CHANGED