问题标签 [hexo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
git - npm-deployer-git 无法安装
我想在我的 github 上推送我的 hexo 站点。当我尝试这个hexo d
时,它说ERROR Deployer not found: git
。所以我尝试安装它,但得到了以下内容。
git - Hexo 无法部署
我无法部署?当我执行hexo server
后hexo generate
,我可以看到应该是的页面。但是当我执行时hexo deploy
它提示:
node.js - 如何配置 pm2 来运行 hexo?
我过去曾将 pm2 用于我的快速应用程序。我很喜欢。我如何让它运行hexo
。Hexo 从一个 js 入口点开始,hexo server
而不是从一个 js 入口点开始。
hexo - 当我 exc: hexo generate 时发生了什么?
在我写完一篇文章后,我 exc hexo generate
。提示如下:
git - hexo:ERROR Deployer not found: github
问题:
然后我这样做
和
和
我也推得很好
那么我的 hexo 出了什么问题,为什么无法连接 git
这是部署设置
nunjucks - 如何使用 nunjucks 模板中的 HexoJS css 助手?
我得到错误:
我的主题/主题名称/layout/layout.nunjucks 文件包含以下代码:
javascript - How to implement a tabbed codeblock tag for Hexo
I am trying to create tabbed code-blocks (as a tag plugin) in hexo but I cannot figure out where to put my js function. I thought I could load the function using the js helper but I don't know where to include the helper. I tried, and failed, to add it into the tag plugin. This is the tag plugin code (saved as testtag.js):
which does work. However, the onclick event of the tags just raises the error that it can't find the tab
function. Note that the first line of result
above was my failed attempt to use the helper.
This is my tab
function, tab.js:
Both tab.js and testtag.js as saved in the *\themes\bootstrap-blog\scripts* folder.
I saw this answer which I though might help but I can't figure out what a view is. I couldn't find anything about views in the Hexo docs.
hexo - 自定义页面上的 Hexo 分页
根据 Hexo文档,只有索引和存档页面可以访问page.prev_link
和page.next_link
. 有什么方法可以配置自定义页面来访问这些变量,这样我们就可以进行分页了?