chekun / hexo-excerpt Goto Github PK
View Code? Open in Web Editor NEWAutomatic excerpt generator for Hexo
License: MIT License
Automatic excerpt generator for Hexo
License: MIT License
I want to control he number of word but I don‘t know how
Because of hexojs/hexo#4627 the hexo output for <!-- more -->
divider has changed. This changes the behavior of this plugin as it explicitly checks for <a id="more"></a>
.
主页没有问题,渲染生成的public下的文件全部为0字节
$ ll -h public/2022/7/17/quick-sort/index.html
-rw-r--r-- 1 Administrator 197121 0 七月 26 14:52 public/2022/7/17/quick-sort/index.html
版本依赖如下所示
npm ls --depth=0
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
hexo-auto-excerpt则没有这个问题,但是个人觉得按层数的摘要预览比按字数更科学和美观,希望可以修复
您好,我看到readme中有个属性是depth,我想知道的是这个属性是控制展示的行数的嘛,如果是的话为什么修改这个参数没有任何变化,如果不是那么想咨询下我们应当如何控制展示的行数呢
Hello there! I wonder if you would consider to accept a PR that uses https://github.com/martinheidegger/excerpt-html ?
添加如下配置到hexo站点_config.yml中会导致格式在摘要中无效
excerpt:
depth: 10
excerpt_excludes: []
more_excludes: []
hideWholePostExcerpts: true
package.json
{
"dependencies": {
"hexo": "^5.4.0",
"hexo-abbrlink": "^2.2.1",
"hexo-excerpt": "^1.1.6",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-searchdb": "^1.3.4",
"hexo-generator-tag": "^1.0.0",
"hexo-related-popular-posts": "^5.0.1",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-marked": "^4.0.0",
"hexo-renderer-stylus": "^2.0.1",
"hexo-server": "^2.0.0",
"hexo-tag-hint": "^0.3.1",
"hexo-theme-next": "^8.5.0",
"hexo-word-counter": "0.0.3"
}
}
!
![未添加到配置文件](https://user-images.githubusercontent.com/58281079/124355154-58298380-dc42-11eb-978b-27d0a20e57be.png)
![添加到配置文件](https://user-images.githubusercontent.com/58281079/124355156-59f34700-dc42-11eb-9590-d675b4802f05.png)
使用hexo next 最新版本主题
安装该插件后标签失效,检查了很久,可惜水平不够没检查出哪里有问题,卸载了插件试了一下,标签就可以用了。
在目前已发布的 1.1.2 版本中, 并未包含现在已有的一些功能, 请作者发布新版代码.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.