octopress

How to include video tag / mp4 videos in a Jekyll blog

牧云@^-^@ 提交于 2020-01-03 16:01:28
问题 I am not looking for a way to link to Youtube. I want to refer to a self-hosted mp4 file. I already have {% audio my-file.mp3 %} working. I am looking for an equivalent {% video my-file.mp4 %} . If I use <video ... /> directly, I get an error "Liquid exception: Unknown tag 'video' in my-text.md". Edit : I think there is an existing Octopress plugin. But how do I install this / make it known to Jekyll? 回答1: To use the Octopress plugin, just save the video tag plugin in a _plugins folder. 来源:

Markdown中的评论

情到浓时终转凉″ 提交于 2019-12-27 12:36:20
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 将注释存储在markdown文件中的语法是什么,例如文件顶部的CVS $ Id $注释? 降价项目 我什么都没发现。 #1楼 披露:我写了插件。 由于问题没有指定特定的降价实现,我想提及 python-markdown 的 Comments插件 ,它实现了上面提到的相同的pandoc评论风格。 #2楼 我相信所有先前提出的解决方案(除了需要特定实现的解决方案之外)导致注释包含在输出HTML中,即使它们未被显示。 如果你想要一个严格意义上的评论(转换文档的读者不应该看到它,即使使用“查看源”)你可以(ab)使用链接标签(用于参考样式链接)可用于Markdown核心规范: http://daringfireball.net/projects/markdown/syntax#link 那是: [comment]: <> (This is a comment, it will not be included) [comment]: <> (in the output file unless you use it in) [comment]: <> (a reference style link.) 或者你可以走得更远: [//]: <> (This is also a comment.) 为了提高平台兼容性

How To Arrange Images In a Grid In Octopress Using Markdown

杀马特。学长 韩版系。学妹 提交于 2019-12-24 02:18:19
问题 I'm trying to write a blog post with a few image thumbnails. I'm using the code in the following way ...[markdown content before]... [{% img left https://lh5.googleusercontent.com/-UjFXd_iX4wg/UK_LGHwB1GI/AAAAAAAACGM/Y9dOC2JLMu0/s400/2012-11-01%252010.51.22.jpg 'Power button of an electric kettle' %}](https://picasaweb.google.com/lh/photo/v54UgP-UYdQKngGBXIkVdtMTjNZETYmyPJy0liipFm0?feat=directlink) [{% img left https://lh5.googleusercontent.com/-pZWML6wLvMk/UK_NhINxrhI/AAAAAAAACHc/8dvYICW8AA8

Octopress failed on running rake preview

不打扰是莪最后的温柔 提交于 2019-12-24 00:52:37
问题 It's a little wired that, I tried to install octopress, everything went very well, but I just can't use the rake preview . There are some information when I tried to view preview: Server seems no problem at all: bash-3.2$ rake preview Starting to watch source with Jekyll and Compass. Starting Rack on port 4000 Configuration from /Users/Gizak/Documents/oct/_config.yml [2013-12-23 16:12:21] INFO WEBrick 1.3.1 [2013-12-23 16:12:21] INFO ruby 2.0.0 (2013-06-27) [universal.x86_64-darwin13] [2013

Rake Preview not working in Octopress

十年热恋 提交于 2019-12-23 09:34:59
问题 I have ruby version 1.9.3 installed on my machine and working on an octopress project for my personal website. I used rvm for my gems and followed all the steps documented by octopress.org. But I found some errors in my rake server. Here is my command log. Tin-Aung-Linn:octopress tal$ ruby --version ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0] Tin-Aung-Linn:octopress tal$ rake generate ## Generating Site with Jekyll identical source/stylesheets/screen.css Configuration

How to escape {{ in markdown on Octopress?

北慕城南 提交于 2019-12-22 05:43:27
问题 I'm using Octopress to blog, and I want to post the following code snippet (it's Mustache JS syntax): ``` <ul id="beers-list"> {{#beers}} <li>{{name}} - {{color}} - {{alcohol}}%</li> {{/beers}} </ul> ``` Unfortunately, when rendered, all {{...}} disappear, and I see the following on my website: <ul id="beers-list"> <li> - - %</li> </ul> I was not able to escape the {{ (even with \{{ , {\{ or something like that. Is there a way to escape these characters? Thanks. I'm not sure if SO is the

How to get Markdown processed content in Jekyll tag plugin

青春壹個敷衍的年華 提交于 2019-12-18 12:34:08
问题 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

Octopress deploy to project[gh-pages] css js

可紊 提交于 2019-12-13 05:11:48
问题 I want to setup octopress blog on gh-pages branch of one of my github projects. I follow guidelines from the octopress deployment docs. My project repository url is standard: https://github.com/my_user_name/project_name I follow two scenarios by neither works in some way. Scenario 1: I invoke rake setup_github_pages and supply it with repository location: git@github.com:my_user_name/project_name.git This works well and gh-pages branch is created in my project repo. I do not change Jekill

Rake aborted when running “rake install” for Octopress?

為{幸葍}努か 提交于 2019-12-11 05:49:38
问题 I want to build Octopress on my Windows 8.1 system. I installed Ruby 2.0.0, and DevKit in C:\devKit , then ran gem install bundler and bundle install . They run successfully but when I run rake install , I always get an error message like: rake aborted! cannot load such file -- C:/Users/username/Documents/GitHub/octopress/Rakefile I think the problem is that my username is Chinese, but could there be another problem? I've tried bundle update or bundle exec rake install but it didn't work. I

Creating an octopress theme from a wordpress theme

我与影子孤独终老i 提交于 2019-12-10 20:08:32
问题 Ive been using wordpress for awhile now and wanted to try something different. Enter in my discovery of the world of static website generates. Now I have my eyes on Octopress which I know to be built on jekyll. Before I start getting dirty in ruby I want to know if its relatively possible to translate my current wordpress theme to a static site. 回答1: That's exactly what I did recently: http://eduncan911.com/blog I copied a friend's Wordpress theme (with permission) of almost the same design: