问题标签 [jekyll]
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.
random - Jekyll,液体,随机数
我想要一组链接
但我想从随机选择的帖子中生成链接。我正在使用 jekyll 和液体来生成网站。当我在 github 上托管时,我必须使用内置的 jekyll 部分。我不确定从哪里开始。谷歌对该主题的搜索没有结果。
ruby - heroku 上的 jekyll 博客
我正在尝试在 heroku 上设置一个 jekyll 博客。这是我的目录结构
我的 Gemfile 有
并且只有其他包含任何内容的文件index.html
与
如果我运行jekyll --server
它在本地运行良好。但是,如果我git push heroku master
(在检查完所有内容后)我的 heroku 日志中出现此错误
如何让我的 jekyll 博客在 Heroku 上工作?
ruby - 在 jekyll 博客的 heroku 上看不到所需的文件
这是我的目录结构
我的 config.ru
当我在日志文件中将它推送到 heroku 时,我看到这个错误,说devart
在需要期间找不到文件。我到底做错了什么??
git - publish jekyll generated to gh-pages and not overwrite the .git in _site
I am using jekyll to publish a static site directly on gh-pages branch in Github. The issue I have is that every time I run
this overwrites the .git directory and I have to recreate this:
basically i have the master branch containing the files needed to generate the blog and gh-pages branch which displays the actual blog.
and also note that i have to force push this.
it will be nice to have also be able to version control the updates!
i have read the https://github.com/mojombo/jekyll/wiki/Deployment but this seems has more steps then what i do now.
is there a better way to do this or have i missing something.
jekyll - 在 Jekyll 中使用 RSS 源进行联合
我有两个 jekyll 网站,我想通过联合将源博客中的一些内容(其中一个类别)联合到接收博客。
我可以看到 RSS 提要是如何使用 jekyll 自动创建的,但是如何在另一个站点上使用它们 - 以使这些帖子看起来像是来自第二个站点?
我可以在 jekyll 中做到这一点吗?
jekyll - Using *link rel* in a jekyll blog?
I'm using Jekyll for my personal blog and I want to have link rel on my article pages that point to the next/*previous* article.
Is that possible with Jekyll?
python - Pygments 的语法突出显示因 Liquid 模板字符串错误而失败
我正在使用 Jekyll 将我的 markdown 和 Pygments 转换为语法高亮。
这是错误maruku显示:
标记如下:
在 iPython 中测试 Pygments 不会产生错误。
有任何想法吗?;o(
提前致谢!
css - 如何在本地部署包含 css、js 和背景图像的 jekyll 站点?
我一直在尝试将我的 octopress 网站(基于 jekyll)加载到我的本地网络。没有服务器,我只希望它在本地共享文件夹中可用。
每次我将它部署到本地文件夹时,css 和 js 以及背景图像链接都会被破坏。
rsync、github 和 heroku 等可用选项都需要 ssh 和密码。这可以在这里找到:http: //octopress.org/docs/deploying/
有没有可以帮助解决这个问题的 rake 选项?
解决了:
Kikito,非常感谢您的指导。
我刚刚实现了它并分叉了一个 git 存储库。不过,有一个问题。我已经使用这种技术在 Dropbox Public、本地目录和网络主机上托管了同一个站点。我不得不添加一个额外的 / 并且在单击链接时斜杠加起来。这是回购和保管箱链接:
https://github.com/originalsurfmex/jekyll-relative-bootstrap
一切都如你所说,但我认为如果你或其他人看一眼布局中的部分和链接,你会有一个更好的主意。
liquid - 由于 Liquid 引擎,Jekyll 和 jQuery 模板出现问题
我正在使用 Jekyll 开发原型,发现 Liquid 正在尝试解释我的 jQuery 模板代码(https://github.com/jquery/jquery-tmpl)。
基本上应该是这样的代码:
而是变成了这样:
有没有办法/策略来防止这种情况发生?