From 830daefff30f0336f434e9fe63ec857a634e12c2 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sat, 2 Nov 2019 11:26:28 +0800 Subject: [PATCH 1/4] feat: add api section --- source/index.pug | 4 +-- themes/navy/layout/index.njk | 20 +++++++++++++++ themes/navy/source/css/_partial/index.styl | 30 ++++++++++++++++++++++ 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/source/index.pug b/source/index.pug index 5014c2ec0a..6280078d33 100644 --- a/source/index.pug +++ b/source/index.pug @@ -21,10 +21,10 @@ ul#intro-feature-list .intro-feature-icon i.fa.fa-cloud-upload h3.intro-feature-title One-Command Deployment - p.intro-feature-desc You only need one command to deploy your site to GitHub Pages, Heroku or other platforms. + p.intro-feature-desc You only need one command to deploy your site to GitHub Pages, Firebase Hosting, Heroku, Netlify, ZEIT or other platforms. li.intro-feature-wrap .intro-feature .intro-feature-icon i.fa.fa-cog h3.intro-feature-title Plugins - p.intro-feature-desc Features powerful APIs for limitless extensibility. Various plugins are available to support most template engines (EJS, Pug, Nunjucks, and many others). Easily integrate with existing NPM packages (Babel, PostCSS, Less/Sass, etc). \ No newline at end of file + p.intro-feature-desc Various plugins are available to generate sitemap and RSS, insert player for music or video, intergrate search engine and support most template engines. \ No newline at end of file diff --git a/themes/navy/layout/index.njk b/themes/navy/layout/index.njk index 4b4ff5eb96..823b502048 100644 --- a/themes/navy/layout/index.njk +++ b/themes/navy/layout/index.njk @@ -57,3 +57,23 @@ + +
+
+
+
+
+ +
+
+
+
+

Powerful API

+

Features powerful APIs for limitless extensibility. Easily integrate with your existing toolchains (Babel, UglifyJS, PostCSS, HTMLMinifier and many others).

+ Explore Plugins + View API docs +
+
+
+
+
\ No newline at end of file diff --git a/themes/navy/source/css/_partial/index.styl b/themes/navy/source/css/_partial/index.styl index f1ad1a13d6..e920b31f0a 100644 --- a/themes/navy/source/css/_partial/index.styl +++ b/themes/navy/source/css/_partial/index.styl @@ -4,6 +4,7 @@ #banner-title, .theme-intro-title +.plugin-intro-title line-height: 1.15 font-weight: 300 font-family: font-title @@ -17,6 +18,7 @@ padding-top: 100px .theme-intro-title +.plugin-intro-title margin-bottom: 24px padding-top: 24px @media mq-normal @@ -167,6 +169,7 @@ #intro-get-started-link #theme-link +.plugin-link font-size: 18px font-family: font-title display: inline-block @@ -191,6 +194,13 @@ background: @border-color color: lighten(color-navy, 10%) +.plugin-link + color: color-border + border-color: color-border + &:hover + background: @border-color + color: lighten(color-navy, 20%) + #theme-wrap background: lighten(color-navy, 10%) border-top: 1px solid #161d24 @@ -202,7 +212,16 @@ @media mq-normal padding: 96px 64px +#plugin-wrap + background: lighten(color-navy, 20%) + padding: 32px + @media mq-tablet + padding: 64px 64px + @media mq-normal + padding: 96px 64px + .theme-wrapper +.plugin-wrapper display: flex flex-wrap: wrap color: rgba(255, 255, 255, 0.8) @@ -213,21 +232,31 @@ order: 0 width: 50% +.plugin-thumbnail + width: 100% + @media mq-normal + order: 2 + width: 50% + .theme-thumbnail-container +.plugin-thumbnail-container margin-right: auto margin-left: auto width: 90% .theme-thumbnail img +.plugin-thumbnail img max-width: 100% box-shadow: 6px 6px 12px 0 rgba(0,0,0,.4) .theme-intro +.plugin-intro width: 100% @media mq-normal width: 50% .theme-intro-container +.plugin-intro-container margin-right: auto margin-left: auto text-align: center @@ -235,6 +264,7 @@ width: 80% .theme-intro-text +.plugin-intro-text color: rgba(255, 255, 255, 0.6) line-height: 1.5 font-size: 16px From a1d893220bed93e8badb035b0ce8be47dd51e10a Mon Sep 17 00:00:00 2001 From: stevenjoezhang <1119186082@qq.com> Date: Fri, 28 Jul 2023 16:34:57 +0800 Subject: [PATCH 2/4] update description --- source/index.pug | 4 ++-- themes/navy/layout/index.njk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/index.pug b/source/index.pug index 6280078d33..68f71627e2 100644 --- a/source/index.pug +++ b/source/index.pug @@ -21,10 +21,10 @@ ul#intro-feature-list .intro-feature-icon i.fa.fa-cloud-upload h3.intro-feature-title One-Command Deployment - p.intro-feature-desc You only need one command to deploy your site to GitHub Pages, Firebase Hosting, Heroku, Netlify, ZEIT or other platforms. + p.intro-feature-desc You only need one command to deploy your site to GitHub Pages, Heroku, Netlify, Vercel or other platforms. li.intro-feature-wrap .intro-feature .intro-feature-icon i.fa.fa-cog h3.intro-feature-title Plugins - p.intro-feature-desc Various plugins are available to generate sitemap and RSS, insert player for music or video, intergrate search engine and support most template engines. \ No newline at end of file + p.intro-feature-desc Various plugins are available to generate sitemap and RSS, insert player for audio or video, intergrate search engine and support most template engines. \ No newline at end of file diff --git a/themes/navy/layout/index.njk b/themes/navy/layout/index.njk index 823b502048..1e29ef48e3 100644 --- a/themes/navy/layout/index.njk +++ b/themes/navy/layout/index.njk @@ -71,7 +71,7 @@

Powerful API

Features powerful APIs for limitless extensibility. Easily integrate with your existing toolchains (Babel, UglifyJS, PostCSS, HTMLMinifier and many others).

Explore Plugins - View API docs + View API docs From 296a0ea09dddd9eb08dd19e10d5c89b6bbf5d18a Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Mon, 25 Sep 2023 23:28:10 +0800 Subject: [PATCH 3/4] remove pug --- source/index.pug | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 source/index.pug diff --git a/source/index.pug b/source/index.pug deleted file mode 100644 index 68f71627e2..0000000000 --- a/source/index.pug +++ /dev/null @@ -1,30 +0,0 @@ -layout: index -description: Hexo is a fast, simple & powerful blog framework powered by Node.js. -subtitle: A fast, simple & powerful blog framework -comments: false ---- -ul#intro-feature-list - li.intro-feature-wrap - .intro-feature - .intro-feature-icon - i.fa.fa-bolt - h3.intro-feature-title Blazing Fast - p.intro-feature-desc Incredible generating speed powered by Node.js. Hundreds of files take only seconds to build. - li.intro-feature-wrap - .intro-feature - .intro-feature-icon - i.fa.fa-pencil - h3.intro-feature-title Markdown Support - p.intro-feature-desc All features of GitHub Flavored Markdown are supported, including most Octopress plugins. - li.intro-feature-wrap - .intro-feature - .intro-feature-icon - i.fa.fa-cloud-upload - h3.intro-feature-title One-Command Deployment - p.intro-feature-desc You only need one command to deploy your site to GitHub Pages, Heroku, Netlify, Vercel or other platforms. - li.intro-feature-wrap - .intro-feature - .intro-feature-icon - i.fa.fa-cog - h3.intro-feature-title Plugins - p.intro-feature-desc Various plugins are available to generate sitemap and RSS, insert player for audio or video, intergrate search engine and support most template engines. \ No newline at end of file From 2bccf5d5a30d33da805b7169ac88c6d66f3f3e77 Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Tue, 26 Sep 2023 00:18:02 +0800 Subject: [PATCH 4/4] separate template and text --- themes/navy/languages/en.yml | 6 +++++- themes/navy/layout/index.njk | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/themes/navy/languages/en.yml b/themes/navy/languages/en.yml index 6805439d7d..e5c57a1310 100644 --- a/themes/navy/languages/en.yml +++ b/themes/navy/languages/en.yml @@ -11,6 +11,10 @@ index: get_started: Get started theme_intro: Choose from a huge library of spectacular, feature-packed and customizable themes. Create your own using any compatible template engines. theme_link: Explore themes + plugin_intro_title: Powerful API + plugin_intro: Features powerful APIs for limitless extensibility. Easily integrate with your existing toolchains (Babel, UglifyJS, PostCSS, HTMLMinifier and many others). + plugin_link: Explore Plugins + api_link: View API docs page: contents: Contents @@ -74,4 +78,4 @@ sidebar: migrator: Migrator processor: Processor renderer: Renderer - tag: Tag \ No newline at end of file + tag: Tag diff --git a/themes/navy/layout/index.njk b/themes/navy/layout/index.njk index 1e29ef48e3..ea22f0aab0 100644 --- a/themes/navy/layout/index.njk +++ b/themes/navy/layout/index.njk @@ -68,10 +68,10 @@
-

Powerful API

-

Features powerful APIs for limitless extensibility. Easily integrate with your existing toolchains (Babel, UglifyJS, PostCSS, HTMLMinifier and many others).

- Explore Plugins - View API docs +

{{ __('index.plugin_intro_title') }}

+

{{ __('index.plugin_intro') }}

+ {{ __('index.plugin_link') }} + {{ __('index.api_link') }}