今日诗词
发表于|更新于
|浏览量:
念两句诗
挑选中...
添加每日一言
获取中...
相关推荐
2025-12-02
添加今日诗词
具体效果如下: 创建组件主题新建themes/anzhiyu/layout/includes/widget/card_poem.pug,内容如下 123456789101112131415161718#card-poem.card-widget #poem_sentence #poem_info #poem_dynasty #poem_authorscript(src='https://cdn.jsdelivr.net/npm/js-heo@1.0.11/poem/jinrishici.js', charset='utf-8')script(type='text/javascript'). jinrishici.load(function(result) { var sentence = document.querySelector("#poem_sentence") var author ...
2024-05-07
anzhiyu 主题配置
主题安装 (npm安装): 1npm i hexo-theme-anzhiyu 通过 npm 安装会在 node_modules 里生成 应用主题打开 Hexo 根目录下的 config.yml, 找到以下配置项,把主题改为anzhiyu 1234# Extensions## Plugins: https://hexo.io/plugins/## Themes: https://hexo.io/themes/theme: anzhiyu 安装 pug 和 stylus 渲染插件1npm install hexo-renderer-pug hexo-renderer-stylus --save 无法安装可以使用cnpm进行安装 1npm install hexo-renderer-pug hexo-renderer-stylus --save --registry=http://registry.npmmirror.com 本地启动 hexo 123hexo clhexo ghexo s 顶部图如果不要显示顶部图,可直接配置 disable_t...
2025-04-05
便携小空调设置
部署方案在博客根目录执行命令: 1hexo new page air-conditioner 会生成source/air-conditioner/index.md, 将以下内容替换原内容 12345678910111213141516171819---title: 便携小空调 - 为你的夏日带去清凉!date: 2022-10-20 22:06:17comments: trueaside: falsetop_img: false---> 终于为博客安装上了便携小空调<style>.copyright-box a { border-bottom: none !important; padding: 0 !important;}</style><div id="air-conditioner-vue"></div><script defer data-pjax src='https://npm.elemecdn.com/anzhiyu-air-conditioner@...
2025-04-05
hexo导航页错误
网站运行时如没有对应的导航页面打开后会报错 这是因为还需要运行如下命令新建相关page 123hexo new page "about"hexo new page "tags"hexo new page "categories" 新建 page 后,会在 source 目录下新建 about、tags、categories文件夹,每个文件夹下还会创建一个index.md文件表示关于、标签页分类页面,编辑这三个MarkDown文件可以自定义这三个页面的内容.最后一步,编辑各页面对应的index.md文件,增加 type 即可。注意冒号 : 后必须空一格,title 和 date 是默认生成的。重新部署后能够看到效果。 1234567891011121314151617---title: aboutdate: 2021-03-13 15:21:30type: "about"--- ---title: tagesdate: 2021-03-13 15:21:30type: "tags&qu...
2025-05-22
博客文章压缩
转载 rozbo开发的 Hexo-Neat 压缩插件 Hexo-Neat 压缩静态资源Hexo-Neat 能够帮助用户自动压缩静态资源,配合各类下属插件,能够压缩包括css、js、html乃至各类格式的图片文件 安装Hexo-Neat插件安装Hexo-Neat插件:在博客根目录[Blog]打开终端,输入: 1npm install hexo-neat --save 在站点配置文件中末尾添加以下相关配置 1234567891011121314151617181920212223# hexo-neat# 博文压缩neat_enable: true# 压缩htmlneat_html: enable: true exclude:# 压缩cssneat_css: enable: true exclude: - '*/*.min.css'# 压缩jsneat_js: enable: true mangle: true output: compress: exclude: - '**/*.min.js' - '**/jquer...
2025-04-04
butterfly 主题配置
安装在 Hexo 根目录里 1git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly 应用主题修改 Hexo 根目录下的 ,把主题改为 _config.ymlbutterfly 1theme: butterfly 安装插件如果没有 pug 以及 stylus 的渲染器,下载安装: 1npm install hexo-renderer-pug hexo-renderer-stylus --save 主题配置主题配置文件是themes/butterfly/_config.yml 导航目录设置顶部右上方区域的内容 12345678910# Menu 目录menu: 首页: / || fas fa-home 归档: /archives/ || fas fa-archive 标签: /tags/ || fas fa-tags 分类: /categories/ || fas fa-folder-open 友链: /link/ || fas fa-li...
公告
欢迎来看我的博客鸭~
纸飞机
退出:esc
方向控制: ←↑→
射击:Space
轰炸:B