Jekyll

Syntax highlighting not working in MD files for Jekyll?

会有一股神秘感。 提交于 2019-12-24 05:55:46
问题 The syntax highlighter does not seem to be working in Jekyll using the kramdown parser and rouge gem. Quotes also do not show up highlighted and formatted. Markdown file: ```javascript function order(words){ var array = words.split(' '); var result = array.slice(); for (word in array) { for (var i = 0; i < array[word].length; i++) { if (!isNaN(array[word][i])) { result[array[word][i] - 1] = array[word] } } }return result.join(' '); } ``` My config file listed below. config.yml: # Build

Jekyll for GitHub Pages can't find rouge on Windows

一个人想着一个人 提交于 2019-12-24 04:36:21
问题 I just installed Jekyll on Windows and I'm trying to make the syntax highlight work with rouge. I have set highlighter: rouge on _config.yml. In the file _posts\2015-08-13-my-first-post.md I got: {% highlight javascript linenos %} var s = "JavaScript syntax highlighting"; alert(s); {% endhighlight %} When I run bundle exec jekyll serve it outputs: C:\Users\Fred\Documents\Projects\GithubPage>bundle exec jekyll serve Configuration file: C:/Users/Fred/Documents/Projects/GithubPage/_config.yml

jekyll long pagination, how to shorten it?

狂风中的少年 提交于 2019-12-24 04:25:06
问题 How can I solve the following problem, for example if I have many pages, my pagination looks like this: < 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 > Is it possible to shorten this like normal pagination, < 1, 2, 3, 4, 5, 6, 7 ... 22, 23, 24, 25, 26 > I mean, strip the pages, and if we are in the middle, like this: < 7, 8, 9, 10 ... 22,23, 24, 25, 26 > 来源: https://stackoverflow.com/questions/27963027/jekyll-long-pagination-how-to-shorten-it

Adding Jekyll to an existing website

戏子无情 提交于 2019-12-24 04:01:36
问题 I have a simple website and tried to add a Jekyll blog in it in a new folder blog thus I have run jekyll new blog in the folder /path . However when I'm running the command jekyll build in /path I have these errors: $ jekyll build Configuration file: none Source: /path Destination: /path/_site Generating... Build Warning: Layout 'post' requested in blog/_posts/2015-06-14-welcome-to-jekyll.markdown does not exist. Build Warning: Layout 'default' requested in blog/index.html does not exist.

Adding Jekyll to an existing website

故事扮演 提交于 2019-12-24 04:01:27
问题 I have a simple website and tried to add a Jekyll blog in it in a new folder blog thus I have run jekyll new blog in the folder /path . However when I'm running the command jekyll build in /path I have these errors: $ jekyll build Configuration file: none Source: /path Destination: /path/_site Generating... Build Warning: Layout 'post' requested in blog/_posts/2015-06-14-welcome-to-jekyll.markdown does not exist. Build Warning: Layout 'default' requested in blog/index.html does not exist.

Error when run jekyll server on windows 7

徘徊边缘 提交于 2019-12-24 03:25:54
问题 I'm trying run Jekyll server in my local machine, so when I run jekyll server in terminal, returning fallowing message: $ jekyll serve Configuration file: C:/xxx/Site/_config.yml Source: C:/xxx/Site Destination: C:/xxx/Site/_site Generating... c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/posix-spawn-0.3.11/lib/posix/spawn.rb:164: warning: cannot close fd before spawn 'which' não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Liquid Exception: No such

jekyll not generating posts

这一生的挚爱 提交于 2019-12-24 02:37:13
问题 I am using the bloggy gem to put a jekyll blog within my current rails app. Basically, you have a normal jekyll build but then you put your files in the config/jekyll directory and generate files into the public/blog directory. However, when I run jekyll build , none of my posts are generated. Here is the config file: markdown: rdiscount permalink: /:title.html destination: ../../public/blog exclude: - Rakefile - Gemfile - .gitignore Here is my directory structure within config/jekyll ./

Maruku markdown deletes any html in list item

痴心易碎 提交于 2019-12-24 02:34:07
问题 Simple example here. Source: <span> hello </span> 1. <span> world </span> Target: <span> hello </span> <ol> <li /> </ol> Seems to happen no matter what tag I use. As far as I can tell from daring fireball's markdown documentation, this should be legal; span tags can appear anywhere. I am on Jekyll and do not know what layer is responsible for this (bug in Jekyll's markdown renderer, my not using markdown correctly, etc.) For good measure let's see what SO does with the same source: hello

Receiving 404 error for assets in Github Pages Jekyll site

人盡茶涼 提交于 2019-12-24 02:23:30
问题 I'm attempting to set up a basic Jekyll site on github pages. The site in question currently is: https://kculmback.github.io/kcfeatures-v2/ Here is the repo: https://github.com/kculmback/kcfeatures-v2 My problem is that the site is not loading images or the css files from my assets folder, even though the link seems to be correct (as far as I can tell). Example link to image: kculmback.github.io/kcfeatures-v2/assets/img/Logo.svg (currently not working) Here is the image in the repo: github

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