@cntrl-site/sdk-nextjs 0.0.8 → 0.0.11
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/lib/components/Page.js
CHANGED
|
@@ -19,7 +19,7 @@ const Page = ({ article, project, meta }) => {
|
|
|
19
19
|
const htmlHead = (0, html_react_parser_1.default)(project.html.head);
|
|
20
20
|
const afterBodyOpen = (0, html_react_parser_1.default)(project.html.afterBodyOpen);
|
|
21
21
|
const beforeBodyClose = (0, html_react_parser_1.default)(project.html.beforeBodyClose);
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(head_1.default, { children: [(0, jsx_runtime_1.jsx)("title", { children: meta.title }), (0, jsx_runtime_1.jsx)("meta", { name: "description", content: meta.description }), (0, jsx_runtime_1.jsx)("meta", { name: "keywords", content: meta.keywords }), (0, jsx_runtime_1.jsx)("meta", { property: "og:
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(head_1.default, { children: [(0, jsx_runtime_1.jsx)("title", { children: meta.title }), (0, jsx_runtime_1.jsx)("meta", { name: "description", content: meta.description }), (0, jsx_runtime_1.jsx)("meta", { name: "keywords", content: meta.keywords }), (0, jsx_runtime_1.jsx)("meta", { property: "og:image", content: meta.opengraphThumbnail }), (0, jsx_runtime_1.jsx)("link", { rel: "icon", href: meta.favicon }), customFonts.length > 0 && ((0, jsx_runtime_1.jsx)("style", { dangerouslySetInnerHTML: {
|
|
23
23
|
__html: customFonts.map((font) => (`
|
|
24
24
|
@font-face {
|
|
25
25
|
font-family: ${font.name};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntrl-site/sdk-nextjs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "SDK for Next.js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/cntrl-site/sdk-nextjs#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@cntrl-site/core": "^1.0.
|
|
25
|
-
"@cntrl-site/sdk": "^0.0.
|
|
24
|
+
"@cntrl-site/core": "^1.0.8",
|
|
25
|
+
"@cntrl-site/sdk": "^0.0.3",
|
|
26
26
|
"html-react-parser": "^3.0.1",
|
|
27
27
|
"styled-jsx": "^5.0.2"
|
|
28
28
|
},
|
package/src/components/Page.tsx
CHANGED
|
@@ -27,7 +27,7 @@ export const Page: FC<Props> = ({ article, project, meta }) => {
|
|
|
27
27
|
<title>{meta.title}</title>
|
|
28
28
|
<meta name="description" content={meta.description} />
|
|
29
29
|
<meta name="keywords" content={meta.keywords} />
|
|
30
|
-
<meta property="og:
|
|
30
|
+
<meta property="og:image" content={meta.opengraphThumbnail} />
|
|
31
31
|
<link rel="icon" href={meta.favicon} />
|
|
32
32
|
{customFonts.length > 0 && (
|
|
33
33
|
<style
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
|
|
5
|
-
<option name="myValues">
|
|
6
|
-
<value>
|
|
7
|
-
<list size="1">
|
|
8
|
-
<item index="0" class="java.lang.String" itemvalue="jsx" />
|
|
9
|
-
</list>
|
|
10
|
-
</value>
|
|
11
|
-
</option>
|
|
12
|
-
<option name="myCustomValuesEnabled" value="true" />
|
|
13
|
-
</inspection_tool>
|
|
14
|
-
</profile>
|
|
15
|
-
</component>
|
|
Binary file
|