English 中文(简体)
三. 租船
原标题:Parsing Jekyll s Categories

我在Jekyll发动机的基础上创建了一个简单的博客,但我需要另一个功能才能使事情真正完成。

在Jekyll,员额的上级单位是暗含的标签或类别。 因此,如果我是在名录结构下设立一个员额的话。

/computers/scm/git 

最终将达到3个标签(电脑、 s、 g)

在我的博客中,我创建了几页:

/computers/index.html
/computers/scm/index.html
/computers/scm/git/index.html

这些网页明确列出了各自类别的员额,如计算机/计算机/索引.html,显示与内部/计算机、计算机/sc和/计算机/scm/git等单位的链接,同样也出现在公路上。 不幸的是,这些类别在Jekyll并不复杂,因此,“/computers/scm/index.html”在同一组职位上重复了“/sandgovernancees/scm/index.html”。

现在,我要自动制作一份列有所有类别的现场地图,与我所创建的所有网页链接。 Jekyll 包括一个“现场”的建筑,我可以修复这一建筑,对所有最高层类别来说,这些建筑只是巨大的。 问题是,在“科学”出现时,不存在“/scm/index.html”,它必须是“/computers/scm/index.html”。

我不敢肯定我能够确定这种行为——我可以写哪类延期来获得等级等级的分类,并自动为我的列名网页绘制一个现场地图?

在我最野心的梦想中,我能够把一个职位打上“a/b/c”的标签,并与标签(a、a/b和/a/b/c)挂钩,然后能够生成这些职位所需要的网页。 我需要现场组织从一般到具体进行钻探。

我是否需要尝试不同的固定一代发动机?

问题回答

你们需要利用Jekyll的gin。 用于我的博客一中的类别支持,使用

If you are Github Pages user, you must note that GP does not support plugins because of security reasons. To avoid this, you may use ideas from this blog post.


As an alternative, you can use Octopress, which is Jekyll-based.





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

热门标签