hexo-theme-linen 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/layout/partials/share-meta.ejs +1 -1
- package/package.json +2 -1
- package/scripts/rss.js +4 -1
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# hexo-theme-linen
|
|
2
|
+
|
|
3
|
+
A clean Hexo theme focused on readability, UX, and minimal configuration.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Elegant and minimal design
|
|
8
|
+
- Responsive layout
|
|
9
|
+
- Optimized typography
|
|
10
|
+
- Customizable navigation
|
|
11
|
+
- Supports tags, categories, archives, and series
|
|
12
|
+
- Fast build and lightweight assets
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pnpm add hexo-theme-linen
|
|
18
|
+
# or
|
|
19
|
+
npm install hexo-theme-linen
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
Edit your Hexo `_config.yml`:
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
theme: linen
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Then start Hexo:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
hexo clean && hexo serve
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Documentation
|
|
37
|
+
|
|
38
|
+
Full documentation and examples:
|
|
39
|
+
|
|
40
|
+
https://lynanbreeze.github.io/hexo-theme-linen-doc-zh-CN/
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT
|
|
@@ -7,4 +7,4 @@ var pageTitle = getPageTitle();
|
|
|
7
7
|
<meta property="og:site_name" content="<%=config.title%>">
|
|
8
8
|
<meta property="og:description" content="<%=page?.seriesInfo?.description||page.excerpt||''%>">
|
|
9
9
|
<meta property="og:locale" content="<%=page.language||config.language%>">
|
|
10
|
-
<meta property="og:image" content="<%=page.seriesInfo?.cover||page.ogImage||page.cover||theme?.info?.siteCardBg||''%>">
|
|
10
|
+
<meta property="og:image" content="<%=url_for(page.seriesInfo?.cover||page.ogImage||page.cover||theme?.info?.siteCardBg||'')%>">
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hexo-theme-linen",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "A clean Hexo theme",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"homepage": "https://github.com/lynanbreeze/hexo-theme-linen",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "https://github.com/LynanBreeze/hexo-theme-linen.git"
|
package/scripts/rss.js
CHANGED
|
@@ -28,9 +28,12 @@ hexo.extend.generator.register("rss", function (locals) {
|
|
|
28
28
|
const config = hexo.config;
|
|
29
29
|
const language = config.language || "";
|
|
30
30
|
const getPostDate = hexo.extend.helper.get("getPostDate");
|
|
31
|
+
const cssUrl = url_for.bind(hexo)(`/linen-theme/css/rss-${language.startsWith("zh") ? "zh" : "en"}.xsl`);
|
|
32
|
+
|
|
33
|
+
console.log(cssUrl)
|
|
31
34
|
|
|
32
35
|
const feed = `<?xml version="1.0" encoding="UTF-8" ?>
|
|
33
|
-
<?xml-stylesheet type="text/xsl" href="
|
|
36
|
+
<?xml-stylesheet type="text/xsl" href="${cssUrl}"?>
|
|
34
37
|
<rss version="2.0">
|
|
35
38
|
<channel>
|
|
36
39
|
<title>${escape(config.title)}</title>
|