elegant-cli
Advanced tools
Comparing version 3.0.0-innovators.9 to 3.0.0-innovators.10
{ | ||
"name": "elegant-cli", | ||
"version": "3.0.0-innovators.9", | ||
"version": "3.0.0-innovators.10", | ||
"description": "Elegant is the easiest way to create a new static website or blog, and publish it online. No need for databases, external services, or complicated server setups.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -60,3 +60,2 @@ { | ||
"next-session": "^4.0.5", | ||
"next-sitemap": "^4.0.9", | ||
"pluralize": "^8.0.0", | ||
@@ -149,2 +148,3 @@ "react": "^18.2.0", | ||
"msw": "^1.2.2", | ||
"next-sitemap": "^4.2.3", | ||
"node-mocks-http": "^1.12.2", | ||
@@ -151,0 +151,0 @@ "opentype.js": "^1.3.4", |
@@ -104,3 +104,3 @@ import Link from 'next/link'; | ||
'hover:text-primary-500 dark:hover:text-primary-400', | ||
(router.pathname.indexOf('/docs/') > -1 ? 'text-primary-500 dark:text-primary-400' : '') | ||
(router.asPath.indexOf('/docs/') > -1 ? 'text-primary-500 dark:text-primary-400' : '') | ||
) | ||
@@ -117,3 +117,3 @@ }> | ||
'hover:text-primary-500 dark:hover:text-primary-400', | ||
(router.pathname.indexOf('/blog') > -1 ? 'text-primary-500 dark:text-primary-400' : '') | ||
(router.asPath.indexOf('/blog') > -1 ? 'text-primary-500 dark:text-primary-400' : '') | ||
) | ||
@@ -120,0 +120,0 @@ }> |
@@ -1,4 +0,1 @@ | ||
import '../css/fonts.css'; | ||
import '../css/main.css'; | ||
import 'focus-visible'; | ||
import { useState, useEffect, Fragment } from 'react'; | ||
@@ -18,2 +15,6 @@ import { BrandJsonLd, LogoJsonLd, SocialProfileJsonLd, WebPageJsonLd } from 'next-seo'; | ||
import SocialSchema from '@/utils/core/Meta/SocialSchema'; | ||
import '../css/fonts.css'; | ||
import '../css/main.css'; | ||
import 'focus-visible'; | ||
import '@/components/core/Admin/Pages/styles.css'; | ||
@@ -95,2 +96,5 @@ const progress = new ProgressBar({ | ||
// set the noindex meta flag on the page. | ||
let noIndex = (meta.noIndex ? meta.noIndex : false); | ||
// set the rich snippet page type to 'article' for blog posts | ||
@@ -136,2 +140,3 @@ if(router.pathname.includes("/blog/")) | ||
pageType={pageType} | ||
noIndex={noIndex} | ||
/> | ||
@@ -138,0 +143,0 @@ <LogoJsonLd |
@@ -21,6 +21,2 @@ import { Author } from "./Author"; | ||
/** | ||
* The post section to be displayed about the post heading. | ||
*/ | ||
section?: string; | ||
/** | ||
* The post content. | ||
@@ -27,0 +23,0 @@ */ |
@@ -42,9 +42,11 @@ import { Feed } from 'feed'; | ||
posts.forEach((post) => { | ||
feed.addItem({ | ||
title: post.title, | ||
id: post.title, | ||
link: `${blogUrl}/${post.slug}`, | ||
description: post.description, | ||
date: new Date(post.publishedAt || ""), | ||
}); | ||
if(post.status === "published"){ | ||
feed.addItem({ | ||
title: post.title, | ||
id: post.title, | ||
link: `${blogUrl}/${post.slug}`, | ||
description: post.description, | ||
date: new Date(post.publishedAt || ""), | ||
}); | ||
} | ||
}); | ||
@@ -51,0 +53,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56013717
263
532
77948
27