Skip to content

Commit

Permalink
chore: move files
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Mar 22, 2023
1 parent 9258fe5 commit 98b8d56
Show file tree
Hide file tree
Showing 73 changed files with 59 additions and 40 deletions.
6 changes: 3 additions & 3 deletions .knosysrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"site": {
"default": {
"alias": "jekyll-theme-lime",
"source": "./",
"alias": "lime",
"source": "./src/jekyll",
"git": {
"url": "https://github.com/ourai/jekyll-theme-lime.git",
"url": "https://github.com/ourai/lime.git",
"branch": "gh-pages"
}
}
Expand Down
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Lime
# [Lime](https://ourai.github.io/lime/)

A simple, readable Jekyll theme.
A simple, readable, responsive theme for blogs, personal websites and API docs.

**This isn't a gem-based Jekyll theme.**
## Supports

Compatibility see below.

### SSGs

Supported static site generators are:

- [Jekyll](src/jekyll/) (not gem-based)
- Hexo (coming soon)

### Browsers

Most of PC and mobile modern web browsers.
5 changes: 0 additions & 5 deletions _data/knosys/cookbook/guides.yml

This file was deleted.

5 changes: 0 additions & 5 deletions _data/local/repos.yml

This file was deleted.

6 changes: 0 additions & 6 deletions _knosys/cookbook/guides/intro.md

This file was deleted.

2 changes: 1 addition & 1 deletion index.js → bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
const { resolve: resolvePath } = require('path');
const { readFileSync } = require('fs');

const rootPath = __dirname;
const rootPath = resolvePath(__dirname, '..');

require(resolvePath(rootPath, JSON.parse(readFileSync(resolvePath(rootPath, '.knosysrc'), 'utf8').toString().trim()).$path)).execute();
2 changes: 1 addition & 1 deletion package-lock.json

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

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"name": "@ourai/jekyll-theme-lime",
"name": "@ourai/lime",
"version": "0.0.0",
"description": "A simple, readable Jekyll theme.",
"description": "Simple, readable, responsive theme for blogs, personal websites and API docs",
"private": true,
"main": "index.js",
"scripts": {
"build": "node . generate",
"clean": "rm -rf sites/*/.asset-cache",
"start": "node . serve",
"build": "node bin generate",
"clean": "rm -rf src/jekyll/.asset-cache",
"start": "node bin serve",
"predeploy": "npm run clean",
"deploy": "node . deploy"
"deploy": "node bin deploy"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ourai/jekyll-theme-lime.git"
"url": "git+https://github.com/ourai/lime.git"
},
"author": "Ourai Lin <[email protected]> (https://ourai.ws/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/ourai/jekyll-theme-lime"
}
"url": "https://github.com/ourai/lime"
},
"homepage": "https://ourai.github.io/lime/"
}
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion _config.yml → src/jekyll/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A simple, readable Jekyll theme.
keywords:
tagline: A simple, readable Jekyll theme.

baseurl: /jekyll-theme-lime
baseurl: /lime

author:
name: Ourai L.
Expand Down
7 changes: 7 additions & 0 deletions src/jekyll/_data/local/repos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cookbook:
name: 食用手册
collection: guides
toc:
- text: 概述
collection: pages
slug: guides
File renamed without changes.
6 changes: 3 additions & 3 deletions _includes/footer.html → src/jekyll/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<!-- Important links -->
<nav class="Footer-navs">
<ul>
<li><a href="https://oss.ourai.ws/?utm_source=ourai.github.io/jekyll-theme-lime&utm_medium=common-footer" title="访问「Ourai Open Source」" target="_blank" rel="external "><span>OOSS</span></a></li>
<li><a href="https://oss.ourai.ws/?utm_source=ourai.github.io/lime&utm_medium=common-footer" title="访问「Ourai Open Source」" target="_blank" rel="external "><span>OOSS</span></a></li>
</ul>
</nav>
<!-- Copyright -->
<div class="Footer-copyright">
<p>&copy; 2015-{{ site.time | date: "%Y" }} <a href="https://ourai.ws/?utm_source=ourai.github.io/jekyll-theme-lime&utm_medium=common-footer" target="_blank">欧雷流</a> 版权所有</p>
<p><a href="https://linxoid.com/ourai/?utm_source=ourai.github.io/jekyll-theme-lime&utm_medium=common-footer" target="_blank" rel="external ">欧雷</a> 用 ♥ 设计与开发</p>
<p>&copy; 2015-{{ site.time | date: "%Y" }} <a href="https://ourai.ws/?utm_source=ourai.github.io/lime&utm_medium=common-footer" target="_blank">欧雷流</a> 版权所有</p>
<p><a href="https://linxoid.com/ourai/?utm_source=ourai.github.io/lime&utm_medium=common-footer" target="_blank" rel="external ">欧雷</a> 用 ♥ 设计与开发</p>
</div>
</div>
</div>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions _includes/header.html → src/jekyll/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
<!-- Nav menus -->
<nav class="Page-navs navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="{{ '/guides/intro/' | prepend: site_url }}">指南</a></li>
<li><a href="{{ '/guides/' | prepend: site_url }}">指南</a></li>
<li class="dropdown">
<a class="dropdown-toggle" href="{{ '/about/' | prepend: site_url }}" data-toggle="dropdown">关于 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="https://linxoid.com/ourai/?utm_source=ourai.github.io/jekyll-theme-lime&utm_medium=common-header" target="_blank" rel="external ">作者</a></li>
<li><a href="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/ourai/jekyll-theme-lime" target="_blank" rel="external ">GitHub</a></li>
<li><a href="https://linxoid.com/ourai/?utm_source=ourai.github.io/lime&utm_medium=common-header" target="_blank" rel="external ">作者</a></li>
<li><a href="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/ourai/lime" target="_blank" rel="external ">GitHub</a></li>
</ul>
</li>
</ul>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions src/jekyll/_pages/guides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: 概述
layout: guide
css:
- pages/post
- pages/doc
js:
- initializers/time
- initializers/lazyload
repo: cookbook
permalink: /guides/
---

本主题由[欧雷](https://linxoid.com/ourai/?utm_source=ourai.github.io/lime){:target="_blank"}{:rel="external "}于 2015 年开始设计与开发,并在个人网站「[欧雷流](https://ourai.ws/?utm_source=ourai.github.io/lime){:target="_blank"}{:rel="external "}」上使用多年;在设计时以提高阅读体验和保持简洁风格为最高原则,体现个性在其次。
File renamed without changes.

0 comments on commit 98b8d56

Please sign in to comment.