diff --git a/next.config.js b/next.config.js index d0e32e96..13025163 100644 --- a/next.config.js +++ b/next.config.js @@ -16,13 +16,14 @@ function scanSubdirectories(directory) { const subdirectories = [] fs.readdirSync(directory).forEach(file => { - const fullPath = path.join(directory, file) - const stats = fs.statSync(fullPath) + // 这段代码会将landing排除在可选主题中 - // landing主题比较特殊,不在可切换的主题中显示 - if (stats.isDirectory() && file !== 'landing') { - subdirectories.push(file) - } + // const fullPath = path.join(directory, file) + // const stats = fs.statSync(fullPath) + // landing主题默认隐藏掉,一般网站不会用到 + // if (stats.isDirectory() && file !== 'landing') { + // subdirectories.push(file) + // } }) return subdirectories diff --git a/themes/landing/components/Features.js b/themes/landing/components/Features.js index c0e403b5..c576fd3a 100644 --- a/themes/landing/components/Features.js +++ b/themes/landing/components/Features.js @@ -25,7 +25,7 @@ export default function Features() {
{/* Section background (needs .relative class on parent and next sibling elements) */} - +
@@ -33,8 +33,8 @@ export default function Features() { {/* Section header */}
-

{siteConfig('LANDING_FEATURES_HEADER_1', null, CONFIG)}

-

+

{siteConfig('LANDING_FEATURES_HEADER_1', null, CONFIG)}

+

{/* Section content */} @@ -43,8 +43,8 @@ export default function Features() { {/* Content */}
-

{siteConfig('LANDING_FEATURES_HEADER_2', null, CONFIG)}

-

{siteConfig('LANDING_FEATURES_HEADER_2_P', null, CONFIG)}

+

{siteConfig('LANDING_FEATURES_HEADER_2', null, CONFIG)}

+

{siteConfig('LANDING_FEATURES_HEADER_2_P', null, CONFIG)}

{/* Tabs buttons */}
diff --git a/themes/landing/components/FeaturesBlocks.js b/themes/landing/components/FeaturesBlocks.js index 07e63e50..fd3068b6 100644 --- a/themes/landing/components/FeaturesBlocks.js +++ b/themes/landing/components/FeaturesBlocks.js @@ -6,7 +6,7 @@ export default function FeaturesBlocks() {
{/* Section background (needs .relative class on parent and next sibling elements) */} - +
@@ -14,15 +14,15 @@ export default function FeaturesBlocks() { {/* Section header */}
-

{siteConfig('LANDING_FEATURES_BLOCK_HEADER', null, CONFIG)}

-

+

{siteConfig('LANDING_FEATURES_BLOCK_HEADER', null, CONFIG)}

+

{/* Items */}
{/* 1st item */} -
+
@@ -39,7 +39,7 @@ export default function FeaturesBlocks() {
{/* 2nd item */} -
+
@@ -55,7 +55,7 @@ export default function FeaturesBlocks() {
{/* 3rd item */} -
+
@@ -72,7 +72,7 @@ export default function FeaturesBlocks() {
{/* 4th item */} -
+
@@ -89,7 +89,7 @@ export default function FeaturesBlocks() {
{/* 5th item */} -
+
@@ -105,7 +105,7 @@ export default function FeaturesBlocks() {
{/* 6th item */} -
+
diff --git a/themes/landing/components/Footer.js b/themes/landing/components/Footer.js index 63c3a8a7..2673aa38 100644 --- a/themes/landing/components/Footer.js +++ b/themes/landing/components/Footer.js @@ -149,6 +149,11 @@ export default function Footer() { {/* Social as */}