Cloudfare Page 部署静态网站
发表于|更新于
|浏览量:
创建一个 Pages 项目
对接 github 或者 gitlab 的项目
选中项目后,就会打开项目部署配置界面,这里你可以配置项目打包命令,如果你的项目是用前端框架开发的化,Pages 还贴心的把常用前端框架的构建命令收集起来,你只需要下拉框选中之后就会把默认构建命令填充到表单中:
使用 git 模式,每次 git push 的时候都会自动触发部署
相关推荐
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 ...
2025-04-10
next 主题配置
主题下载安装进入命令行,下载 NexT 主题,输入: 1git clone https://github.com/theme-next/hexo-theme-next themes/next 修改站点配置文件_config.yml,找到如下代码: 12## Themes: https://hexo.io/themes/theme: landscape 将 landscape 修改为 next 切换主题next 主题自带四种样式。 在主题配置文件/next/_config.yml中查找:scheme,找到如下代码: 123456# Schemesscheme: Muse#scheme: Mist#scheme: Pisces#scheme: Gemini选择一种样式,去掉前面的 #,其他主题前加上 # 隐藏网页强力驱动隐藏网页底部 powered By Hexo / 强力驱动打开 themes/next/layout/_partials/footer.swig 找到 12345678910111213141516{% if theme.foote...
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...
2024-09-13
侧边栏电子钟
效果如下所示 卸载原版时钟在博客根目录[Blogroot]下打开终端,运行以下指令 12# 卸载原版电子钟npm uninstall hexo-butterfly-clock 安装新版插件安装插件,在博客根目录[Blogroot]下打开终端,运行以下指令: 1npm install hexo-butterfly-clock-anzhiyu --save 添加配置信息可以写在在站点配置文件_config.yml或者主题配置文件_config.butterfly.yml中 123456789101112131415161718192021# electric_clock# see https://anzhiy.cn/posts/fc18.htmlelectric_clock: enable: true # 开关 priority: 5 #过滤器优先权 enable_page: all # 应用页面 exclude: # - /posts/ # - /about/ layout: type: class name: sticky_layout in...
2022-11-17
今日诗词
念两句诗 挑选中... jinrishici.load(function(result) { poem.innerHTML = result.data.content info.innerHTML = '【' + result.data.origin.dynasty + '】' + result.data.origin.author + '《' + result.data.origin.title + '》' document.getElementById("poem").value(poem); document.getElementById("info").value(info); }); 添加每日一言获取中...
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...
公告
欢迎来看我的博客鸭~
纸飞机
退出:esc
方向控制: ←↑→
射击:Space
轰炸:B