Skip to content

Commit

Permalink
fix(theme): style of project pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Apr 12, 2024
1 parent b4eca5e commit 0f25f30
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 11 deletions.
1 change: 1 addition & 0 deletions .knosys/scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function copyThemeFiles(rootPath) {
description: 'Theme for Nop project docs',
main: 'index.js',
keywords: ['nop', 'nop-platform', 'nop-community', 'knosys', 'ksio', 'hexo', 'theme'],
peerDependencies: { 'hexo-front-matter-defaults': '~0.0.0' },
...pkgFields,
}, null, 2));
copyMetaFiles(rootPath);
Expand Down
18 changes: 18 additions & 0 deletions .knosys/sites/default/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ ksio:
- local/pages/index
page:
- scope:
path: ""
type: posts
values:
ksio_asset_css:
Expand All @@ -174,6 +175,7 @@ ksio:
- javascripts/ksio/vendors/jquery.lazyload
- javascripts/ksio/initializers/lazyload
- scope:
path: ""
type: knosys
values:
layout: _nop/layouts/doc
Expand All @@ -186,6 +188,22 @@ ksio:
- javascripts/ksio/initializers/time
- javascripts/ksio/vendors/jquery.lazyload
- javascripts/ksio/initializers/lazyload
- scope:
path: site/cookbook
type: knosys
values:
repo: cookbook
- scope:
path: site/cookbook/projects
type: knosys
values:
layout: page
repo:
ksio_asset_css: []
- scope:
path: project-nop-entropy
type: knosys
values:
repo: nop-entropy

# Deployment
Expand Down
2 changes: 1 addition & 1 deletion .knosys/sites/default/source/index.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: _nop/layouts/index
layout: _local/layouts/index
---

<main class="Page-content">
Expand Down
9 changes: 9 additions & 0 deletions .knosys/sites/default/source/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
User-agent: *

Disallow: /cgi-bin/
Disallow: /assets/
Disallow: /categories/
Disallow: /tags/
Disallow: /archives/

Disallow: /404.html
22 changes: 13 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"dependencies": {
"hexo": "^6.3.0",
"hexo-front-matter-defaults": "0.0.0",
"hexo-renderer-coffeescript": "^0.2.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.0.0",
Expand All @@ -26,7 +27,7 @@
},
"devDependencies": {
"@ntks/toolbox": "0.0.6",
"hexo-theme-lime": "0.0.0-alpha.1",
"hexo-theme-lime": "0.0.0-alpha.3",
"ksio": "0.0.2"
}
}

0 comments on commit 0f25f30

Please sign in to comment.