问题标签 [jekyll-extensions]
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.
jekyll - How to get Markdown processed content in Jekyll tag plugin
I'm working on a Jekyll tag plugin for my Octopress site to help me make a 'note' element. I just want to be able to highlight a piece of information on my blog as a side note, like this.
The problem is, I can't figure out how to get the contents of this tag to be processed (i.e. Markdown or Textile). The above image is only achieved is I actually make my links with html code. Here is how it ends up turning out when I use markdown in the contents.
In my post, I'm writing the contents of this like so.
Here is my plugin code. It's based off of the image tag code, and there's really not a lot to it.
Do you have any idea how I can use a converter on the contents of this tag? I generally use Markdown for my posts, but I'd like to release this plugin for others so I'd like it to be dynamic just like the rest of Jekyll.
jekyll - 找不到当前帖子的类别 jekyll
我想根据当前帖子的类别自动显示关键字和描述。我使用了以下代码,但它不起作用。
但是在使用{% page.categories %}
它时,它会正确地呼出类别名称。这是我的两个疑问:
- 如何比较当前帖子的类别?
{{ }}
在这里和{% %}
这里是一样的吗?
html - 在 Jekyll 中获取部分 markdown 文件
问题:使用 Jekyll 是否可以在模板文件中显示 Markdown 文件的一部分?
我想这样做是为了避免div
在我的降价中使用 ',我有一些需要样式的元素,如果你把div
' 放在降价中,那么它们中的任何东西都不会被标记下来(如果你添加 markdown="1"它只是在文本周围添加了一个灰色框)。所以为了解决这个问题,我想捕捉一些像这样的文本:
然后以某种方式将这个降价放在布局页面中,可能是这样的?
这可能吗?或者有没有更好的方法来使用div
's
github - 在 gh-pages 上获取(jekyll-scholar)插件的最简单方法
GitHub 页面不支持插件,但插件显然非常有用(例如jekyll-scholar)。
Nitrous.io支持将插件添加到您的 GH 页面站点,但这似乎有点涉及。是否有任何简单的方法可以让插件在我的 github站点上运行,或者我应该将 _site/ 作为 jekyll-scholar 开发人员的根目录。推荐?
ruby - 带有 Liquid 标签的 Jekyll 缩略图插件
我正在尝试使用 Jekyll 对数据文件进行循环。我的代码如下:
但是,为我拥有的每张照片手动生成缩略图变得越来越困难。我找到了 Jekyll 插件缩略图,但我不知道如何使它适合我的需要。
自述文件显示了这个例子:{% thumbnail /path/to/local/image.png 50x50< %}
.
如何使用{{ photo.path }}
Jekyll 插件,这样我就不必手动输入文件名了?
编辑:也许我可以编辑插件,以便它可以访问站点变量?
ruby - 如何在 Octopress 或 Jekyll 中创建页面排序列表?
我有一个 Octopress 网站,里面有帖子和页面。现在我想添加另一类我想称为的页面writepus
(我将通过 git 提交像 wiki 一样不断更新的注释)。
我想将这些笔记保存在一个名为 的文件夹中_notes
,就像我们_posts
在source
Octopress 的文件夹中一样。
我有一个文件夹,其中包含以下_writeups/
文件:
我有一个名为notes/list.html
以下内容的文件。
基本上我想创建这些文章的列表,以便我可以在有时间时不断更新它们。posts
我也想将这些与和分开pages
。
如何使用 Octopress / Jekyll 实现此功能?
ruby-on-rails - 使用 rake generate 时如何显示进度?
跑步时有什么方法可以显示进度rake generate
吗?我有很多帖子,当我生成帖子时,进度似乎被锁定了。
我正在使用 Octopress。
ruby - 错误:安装 jekyll 时出错:错误:无法构建 gem 原生扩展
我的系统有:
- 红宝石 2.0.0p451 (2014-02-24) [x64-mingw32]
- 宝石-版本 2.2.2
- devKit:DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
当我尝试运行时gem install jekyll
,我收到此错误:
ruby - Jekyll 中是否有可以生成 html 标签的插件/东西?
嘿伙计们,有没有我缺少的插件或我找不到在 Jekyll 中使用的方法,所以我不必手动编写一堆 html 标签?
例如 {% a href="blah %}
这将呈现出来
ruby - jekyll 共享模板不同参数
我正在尝试在其他 2 个模板中共享一个模板,如下所示:
和
这是共享模板:
如果我只在帖子中使用模板进行设置,它可以工作,但是,无论我尝试什么,我似乎都无法让它在 for 循环的页脚中工作。错误是:
想法?这在 Jekyll 中可行吗?