FAQ Database Discussion Community


How to concatenate the value of iterator inside liquid tag (Jekyll)

ruby,for-loop,yaml,jekyll,liquid
I am looping through a Yaml object and need to append the value of 'i' to the address the proper object. <div class="chapter"> {% for i in (1..7) %} <strong class="title">{{ page.chapters.title + i }}</strong> <ul> {% for topic in page.chapters.ch + i %} <li> {{ topic }} </li> {%...

Dynamically add and filter images in Jekyll for github pages?

jekyll,liquid,github-pages
I am trying out Jekyll to help someone who's not all that technical maintain their own static site. I would like to be able to have a images directory in the app's root /images containing images following a naming convention: post_one_1.jpg, post_one_2.jpg, post_two_1.jpg, post_two_2.jpg ... etc. I would then like...

Styling Jekyll website with Bootstrap

css,twitter-bootstrap,jekyll,github-pages
I am trying to set up a website using Jekyll and GitHub Pages (first-timer), and most importantly, to style it with Bootstrap. You can check what I have already done: GitHub repository: https://github.com/thibaudclement/wallaby GitHub page: http://thibaudclement.github.io/wallaby/ (check gh-pages branch) Also, I followed this tutorial to import Bootstrap into the Jekyll...

In Jekyll, how can I create a tag archive for pages?

jekyll
I'm using tags on pages in Jekyll, like this: --- title: Sample page permalink: /sample/ tag: news --- On my homepage, I have different sections that aggregate pages by tag, like this: {% assign counter = '0' %} {% for page in site.pages %} {% for tag in page.tags %}...

Looping Previous and Next Post in Jekyll

jekyll
My Jekyll based portfolio currently lists projects in chronological order. I'm using page.previous and page.next to display the next and previous posts in my portfolio. When there is no 'previous' or 'next' project, there's a giant empty space. How can I modify: <section id="more-work"> {% if page.previous %} <div class="left">...

How do you host a jekyll site to hostgator via FTP [closed]

html,css,ftp,hosting,jekyll
Hello i have tried to host my site that i build with jekyll via FTP. But when i put in my _site files, it seems like my javascript and css disappears and it looks terrible do any of you guys/girls out there know what i should do? :)

Creating project documentation for java web project in gh-pages

git,jekyll,github-pages
I have a maven based java web project with source code in master branch. I want to create documentation for that project using jekyll, and commit the documentation along with the source in docs folder. So, I initialized a new jekyll site named docs in my root of my project...

Merge two sources into one feed.xml

jekyll,liquid
My Jekyll side uses the default feed.xml. I would like to change that because I have site.posts and site.screencasts. Both have the needed attributes to be shown in feed.xml. The default runs this loop: {% for post in site.posts limit:10 %} ... {% endfor %} Is there a way to...

How do I choose the layout used for pagination?

jekyll
I have a newspaper website generated by Jekyll, I’d like to paginate the articles. I want to use one layout for the front page (/) and a different (simpler) layout for subsequent pages (/page2 etc). But the built-in paginator picks up the front page layout and uses that to generate...

Jekyll kramdown how to center text

markdown,jekyll,text-align,kramdown
I am using Jekyll (kramdown), and want to make some text align center. I found <span style=""> works for font color and size, but not work for text-align. How can I align some text. I have tried: <span style="color:gray; font-size: 80%; text-align: center;">Test Text</span> and -> Test Text <- None...

With Jekyll, links inside SVG graphics aren't working

svg,jekyll
I have an SVG graphic in a Jekyll project with code like this: ``` <?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 451.5 100" enable-background="new 0 0 451.5 100" xml:space="preserve"> <a xlink:href="http://google.com">...

Jekyll's is removing static file during cleanup

plugins,jekyll
I want to include a gnuplot code inside a markdown page and have Jekyll compile the graph when I save it. The graph image is being saved. But it is removed during jekyll's cleanup. The closest that I have found toward a solution is at Copying generated files from a...

Error when run jekyll server on windows 7

ruby,server,jekyll
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...

Polymer and Disqus on Firefox: Argument 1 of Window.getComputedStyle does not implement interface Element

firefox,polymer,jekyll,disqus
I'm currently building a website using Polymer framework and Jekyll. I've added the Disqus block in the bottom of the page and it works perfectly in Chrome browser. {% if site.disqus %} <div class="comments"> <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = '{{ site.disqus }}'; var disqus_identifier = "{{ page.url }}";...

Cannot get assign where working in Jekyll template

yaml,jekyll
I have built my website in Jekyll. The data file is working fine when parsed elsewhere, but when I try to access a particular record using a where clause I get no result. See the project at https://github.com/ohiweb/ohiweb.github.io The troublesome page is under portfolio\betimca\index.html portfolio.yml projects: - name: "betimca" title:...

How to know if an URL is relative or absolute in Jekyll?

jekyll,liquid,github-pages
I'm trying to do the following in Jekyll: I have an URL; This URL can be relative ("/media/image.jpg") or absolute "http://example.com/image.jpg"; If the URL is relative I have to append to its beginning my site domain ("http://my-site/media/image.jpg"). If don't, nothing changes. Sadly I have no clue yet on how to...

In Jekyll Blogs how is “paginator” populated?

pagination,blogs,jekyll
I am working on my own plugin that allows me to add a whole new post type called "log" which gets rendered out to a different directory and is effectively a completely different area. I have everything working nicely with the exception of pagination. I can't not for the life...

Jekyll posts filenames without dates

jekyll,github-pages
I don't care about dates because I edit my previous posts all the time, so I would like to replace _posts/2015-05-05-something.md by _posts/something.md.

Custom yaml syntax

ruby,yaml,jekyll,liquid
Im using Jekyll and liquid syntax and would like to add a custom background colour and thumbnail image for each of my projects on my homepage. How can I achieve this using YAML frontmatter? liquid syntax outputting projects {% for post in site.categories['project'] %} <div class="project"> <h3 class="project__title">{{ post.title }}</h3>...

How can I make the git repository the same as the folder on my computer

git,github,jekyll
I've recently started using GitHub and created a blog there. I made several pushes and now when I inspect it on the GitHub, I can see several files that I've deleted from my local machine. Is there any ways to delete them from GitHub?

Jekyll: Alternate Class in For Loop

for-loop,jekyll,cycle
I was wondering if there was a way to alternate between classes in a for loop. At the moment, I'm repeating my <article> block, and adding a .clearfix div after the second <article>. {% for post in site.posts %} {% capture thecycle %}{% cycle 'odd', 'even' %}{% endcapture %} {%...

Check if current page is homepage on Jekyll

jekyll
There's any way to check if the current page is the homepage? I want use h1 tag for the logo image only when the current page is the website base url....

How do I configure GitHub to use non-supported Jekyll site plugins?

github,jekyll,github-pages,gh-pages,jekyll-extensions
I just created a great gallery for my Jekyll blog which builds perfectly on my localhost:4000. However, GitHub pages doesn't support the Jekyll Gallery Generator plug-in I am using: https://github.com/ggreer/jekyll-gallery-generator I read about the alternative method of hosting Jekyll on a traditional host using FTP (uploading the _site directory) http://jekyllrb.com/docs/deployment-methods/...

{{ content }} Liquid tag not showing blog posts

html,tags,jekyll,shopify,liquid
Link to repo: https://github.com/AlvSovereign/AlvSovereign.github.io Hi all I am a beginner using jekyll and new to web development, so please be patient with me. I am coding my portfolio site, with a link to my blog. The fully processed portfolio site sits in _site/index.html which contains a link to the blog...

How can I redirect a request to a subdomain to another subdomain on Route 53?

redirect,jekyll,github-pages,amazon-route53
I have a GitHub Pages Jekyll blog at blog.Antrikshy.com. I have been meaning to move it to code.Antrikshy.com for a while now. I made the new address a CNAME for antrikshy.github.io on Amazon and wired everything correctly to make it work. Now my blog.Antrikshy.com URL is broken. How can I...

Post permalinks not being parsed in Jekyll on GitHub Pages

jekyll,github-pages
I've created a new site at GitHub Pages, using Jekyll. I'm using a custom permalink format in the following form: permalink: /:title This is because I've moved my blog over from WordPress and want previously existing links to continue working. When I run the server locally with "jekyll serve", it...

How do I prevent Kramdown from getting confused by a C++ include?

jekyll,kramdown
I have written this plugin: module Jekyll module Tags class Prism < Liquid::Block def initialize(tag_name, text, tokens) @arg = text.strip super end def render(context) output = super(context) "<pre><code class=\"language-#{@arg}\">#{output}</code></pre>" end end end end Liquid::Template.register_tag('prism', Jekyll::Tags::Prism) This is how I use it: {% prism cpp %} #include <iostream> // Hello World...

Collection pages not inheriting default styling

jekyll
Problem: I have a collection set up for my Jekyll site called Projects. It outputs pages on portfolio.html. The individual projects are stored in _projects and inherit the portfolio_piece.html layout style. That portfolio_piece.html is suppose to have the default.html layout style with it, but it does not work. When I...

Jekyll post not generated

jekyll
I am trying to add a new post to my Jekyll site, but I cannot see it on the generated pages when I run jekyll serve. What are some common reasons for a Jekyll post to not be generated?...

Markdown compiling images with paragraph tags

markdown,jekyll,liquid,github-pages
This is just a simple problem but it's one that I can't find on Google to solve this. Basically what is happening is that I have a Jekyll website, and I'm using kramdown for the markdown compiling. When I add an image to a markdown file like below: ![Image Alt...

Change deep_merge to Utils.deep_merge_hashes

ruby,jekyll,octopress
I am using Octopress to generate static html pages. I tried to change the language of the dates using this instruction (it is in German but we need only the code). When I copy date.rb from these German website to my octopress/plugins, I have the following error: Liquid Exception: undefined...

How to deal with the inconsistency between the posts file and the actual webpage on github?

jekyll,blogs,github-pages
everybody, I am new to github and build a simple blog on it. However, when I add a new file to the posts directory, the actual website will not always be updated immediately(sometimes it does), I thought it is because of the cache of the Chrome, but after I cleared...

Ingore tag using html-proofer with jekyll

ruby,continuous-integration,nokogiri,jekyll,jekyll-extensions
I have a site hosted with github pages built using Jekyll. One of the plugins I have installed in html-proofer. This was working fine until I switched my images to use picturefill. By using Picturefill, I am using the currently invalid <picture> tag. This causes html-proofer to fail when I...

jekyll markdown bullet point issue

jekyll
I am editing my markdown in some online editor dillinger.io. Then copying the content into jekyll _posts. However, the jekyll is rendering on the browser differently that what I am seeing in above mentioned editor/github preview of the file. The major problem I am facing is with the bullet points....

The pagination issue of using Octopress with Github pages

jekyll,github-pages,octopress
I used Octopress to setup my blog with Github pages. Everything is OK. But I can't fix the pagination issues. Specifically, if I click the "older" link on my first blog page, it can't find the right page. My Blog site is : http://www.enlangtech.com/blog/ And the corresponding repository is :...

Jekyll Kramdown Footnotes Not Parsing

jekyll,footnotes,kramdown,jekyll-bootstrap
I'm attempting to annotate a file with footnotes using Jekyll. My _config.yml file is set thusly: markdown: kramdown This is how I'm attempting to use the footnotes: <p>As trade-off talking rational economic people [^1], we are constantly making choices that have different costs associated with them.</p> [^1]: http://en.wikipedia.org/wiki/Trade-off_talking_rational_economic_person` But viewing...

Add Links and Excerpts to other Posts on my Blog in the Bottom of each Post

blogs,jekyll,static-pages
I'd like to add to the bottom of my post few (2-4) links to other posts. At first I thought they should be correlated but I guess random ones work as well. I'm using Jekyll and am looking for a plugin or an easy way to just reference other (relevant)...

Intsall jekyll in subpath

github,jekyll
I have github repository. In folder Blog placed jekyll which work if it is root folder. I want run /Blog/index.html from /index.html <a href = "Blog/index.html"> Blog </a> _config.yml # Site settings title: About the Programing email: [email protected] baseurl: "Blog" # the subpath of your site, e.g. /blog/ url: "http://tencet.github.io/"...

Multiple Paragraph Tags Being Outputted in Jekyll

html,jekyll,liquid
I can't work out why, but for some reason there are multiple empty paragraph tags being outputted on my page. My template looks like this: <article class="post-item sm-col sm-col-12 md-col md-col-5 {{ thecycle }}"> <header> <h3><a href="{{ post.url }}">{{ post.title }}</a></h3> </header> <p>{{ post.excerpt }}<p> <footer> <p class="date"><time pubdate datetime="{{...

Why aren't the bourbon mixins working in my jekyll site?

css,sass,jekyll,github-pages,bourbon
Every time I use $ jekyll serve --watch and attempt to add a bourbon mixin to my sass file, I get an error stating that the mixin is undefined. I've checked to see if I have properly installed bourbon, and I think I have. I have verified my @includes to...

Jekyll: Dealing with Images in Markdown

image,markdown,jekyll,image-gallery
I've got a design for my post page that is made up of text and images, more specifically, galleries. Take a look at the illustration below: I've got these galleries set up my front matter like so: --- gallery-1: rows: - images: - { url: '1.jpg'} - images: - {...

Configure generating path with Jekyll

jekyll
If there are files called members/alice.md and members/bob.md, the Jekyll generated position will be members/alice.html and members/bob.html. How can I set them to be members/alice/index.html and members/bob/index.html?

Jekyll agenda thing in a table

jekyll
I am working on a Jekyll website which needs an agenda. I would like to add points to the agenda in my _config.yml file so it looks like this in the file. agenda: date: 26 January thing: Birthday date: 30 March thing: Another birthday Another option would be: agenda: item:...

Latex \newcommand in kramdown

github,latex,jekyll,kramdown
I understand that cramdown does not support \newcommand type macros. Is there a workaround that does not involve Pandoc, so that it could be used with Jekyll in a GitHub blog? This would be the input markdown: --- layout: post --- \newcommand{\a}{\alpha} This is a test $$\a$$. The output should...

Jekyll kramdown how to display table border

table,border,markdown,jekyll,kramdown
I am using Jekyll default kramdown. I have a table showed using surround text, etc. | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat...

In Jekyll how do I make paginator have canonical url?

pagination,jekyll
In my Jekyll how do I make my blog paginator have a canonical url? In my base template I have: <link rel="canonical" href="{{ site.url }}{{ page.url|remove:'index.html' }}"> I expect when I go to /blog/page2/ that the meta data will be http://www.foo.com/blog/ instead I see <link rel="canonical" href="http://www.foo.com/blog/page2/"> How can I...

Github pages css troubles only on smartphone

html,css,jekyll,github-pages
I am creating a website using Jekyll, and publishing it using Github pages. When I jekyll serve the website in local, everything works fine, and it looks normal both from my computer and smartphone. But when I visit the Github pages one from my smartphone, some divs seem to be...

Jekyll: Using liquid tags in .md files

html,markdown,jekyll,liquid
I am working on a project using Jekyll. Looking online, it seems that it is possible to use liquid tags in a markdown file. For some reason, the liquid tags are not working in my markdown files. I want to use the liquid "capture" tag to store text in a...

Error when running jekyll docker container with boot2docker on Mac

docker,jekyll
I am running docker on my MBP (Yosemite 10.10.3) with boot2docker (v1.6.2). When I try to run docker run --rm -v "$PWD:/src" grahamc/jekyll build (without sudo) I got the following error: twer$ $(boot2docker shellinit 2> /dev/null) twer$ docker run --rm -v "$PWD:/src" grahamc/jekyll build /usr/local/bundle/gems/bundler-1.9.9/lib/bundler/spec_set.rb:92:in `block in materialize': Could not...

Where is this css ' float: left ' coming from — Jekyll

css,sass,css-float,jekyll
I'm using the Jekyll CMS The header has a basic structure <div class="top"> </div> <div class="header-wrapper"> <div class="header-left"><img src="/assets/images/lawmen1.png" alt="Law and Lawson Attorney at Law Lawyers City State"></div> <div class="header-right"> <ul> <li><i class="fa fa-location-arrow fa-2x"></i>250 W. Main Street Suite 2510<br>City, State 90210</li> <li><i class="fa fa-mobile fa-2x"></i>(555) 555-555</li> <li><i...

Jekyll on Github pages not displaying images and has broken links

jekyll,github-pages
I'm trying to host my Jekyll blog on Github pages. The blog is currently live here. As you can see, the images are missing + when you click on the blogposts, it shows 404. How to fix this? Here's the link to my public blog repo, and here's my _config.yml...

How to perform --include-css when using the Jekyll stylus plugin

css,jekyll,stylus,jekyll-extensions
I've just started using Jekyll and the stylus plugin provided here: https://gist.github.com/adamjspooner/988201 I have some import statements in my stylus files like the following: @import 'normalize.css' The stylus plugin converts the stylus files correctly to css, but keeps the import statements in the generated css file. I would like to...

Why are code tags being inserted by liquid/jekyll and how do I remove them?

jekyll,liquid
I want to create a list of recent authors for a blog I'm developing using Jekyll. I'm taking the list of recent authors and looking up each item in a yml data sheet I've set up that lists each author and their bio, name and email etc. I'm able to...

Is it possible to combine variables a jeykll if statement?

jekyll,liquid
Is it possible to combine both site.url and page.url in a jeykll template if statement, for example (it doesn't work this way though): {% if comment.path == {{ site.url }}{{ page.url}} %} ...

Markdown link escaping layout

html,twitter-bootstrap,markdown,jekyll,github-pages
I have a website I am making with Bootstrap and Jekyll. I recently ran into a problem where, on blog posts, if an author's name is hyperlinked (to a Google+ profile, for example), a snippet of html is displayed above the body as if the HTML syntax is broken. I'm...

Jekyll “serve” command error: File to import not found or unreadable: base. Load paths: on line 46

ruby,jekyll
First off, I have little Linux experience and no Ruby experience, however, I have googled and could not find an area like what I'm getting. Any help is appreciated. I apologize if this is not a good place to post this. I have installed Jekyll with the following, and only...

Stack overflow after adding jekyll to the gruntjs setup generated by yeogurt

javascript,node.js,gruntjs,jekyll,yeoman
I used yeoman yeogurt generator to kickstart my project. The grunt file generated uses (to the best of my knowledge) include-all and grunt-jit to load the modules. What I would like to do, is add the building of jekyll to this file. To do this I installed grunt-jekyll. Afterwards I...

Baseurl behavior differs between localhost and github pages in Jekyll

jekyll,github-pages,base-url
I am developing a static site using Jekyll, to be deployed on github pages. I am facing issues using the baseurl in the configuration file. Here is an extract of my _config.yml: baseurl: "/blog" url: "http://remidoolaeghe.github.io" When ran locally at http://localhost:4000/blog/, everything is fine. The html pages are found, the...

How to iterate through the top 3 posts from the last two weeks in liquid/jekyll?

jekyll,liquid
Let me add some context: i'm trying to automate my boring reports to management using jekyll! I'd like to write a post for every activity i do and, every week, ship the compiled report with the "top 3 highlights" from this week and from last week. My shot at it,...

Share a Cookie between Rails and Jekyll

ruby-on-rails,cookies,jekyll
I am currently writing a Jekyll blog for my website. It will live under a subdomain of the site (blog.site.com vs site.com) and I would like to be able to tie into the main website's login system (Rails 3.0 running with the Sorcery gem). My use case is that I...

Jekyll build stuck in “Rebuilding index…” stage

shell,server,jekyll
I've just built my first Jekyll website, and (almost) everything was going fine, until I added a few (around 80) old posts from my previous website. Now, when I try to run Jekyll to serve the website locally, it starts, but stay stuck in the Rebuilding index… stage: $ ./_serve.sh...

jekyll url not working on github

html,jekyll
Hello Stack Oerflow community, Can somebody maybe explain to me why the following code is working local, but not on github? Everything is outputted like it should, except for the background-image. Hope to hear from you. Greetings Wim the HTML <div class="thumb_container"> {% for project in site.data.settings.home %} <div class="thumb-holder">...

Jekyll: including a post inside another post

include,markdown,jekyll,yaml-front-matter
Does Jekyll provide a way to include a post inside another post? I know that sounds a bit goofy, but I'm using it for a cooking/recipe site. Some of my recipes are made up of components, or other, smaller recipes. I'm looking for a way to include a handful of...

Insert HTML to Jekyll post

javascript,html5,jekyll
I'd like to include some Web Audio API HTML5 code into a Jekyll post. Here's a clone of the HTML page + Javascript code that I'd like to include: view-source:http://www.smartjava.org/examples/webaudio/example3.html How should this be achieved? ...

How to show only specific post in Jekyll?

ruby,jekyll
I'm trying to use Jekyll for creating a simple single page web site. This website will further be used for creating posts like content blocks. But in my Jekyll I want only show certain posts and not all of those available. How to can I get certain specific post, without...

Is there pure HTML5 or CSS3 to make all external links leave website, as in target=_blank?

html,css,css3,href,jekyll
Getting external links set to target="_blank" is well-documented using client or server code: Is it acceptable to make external links target="_blank"? Grabbing the href attribute of an A element Parse All Links That Contain A Specific Word In "href" Tag It's 2015 and HTML and CSS has grown up since...

How to list all posts without a category in Jekyll?

jekyll
How does one list all the posts in a Jekyll blog that do not have a specified category? How to list all in a given category is described here....

Run PHP code on local MacOS Jekyll site, port 4000

php,localhost,jekyll
I've build a Jekyll website on my localhost (MacOS Mavericks). The website is served at http://localhost:4000/website/ and everything regarding Jekyll is running just fine. However, I now want to have a contact form in PHP that allows me to receive emails. I placed a contact.php file in the website/ folder...

Jekyll Config Multiple Files

jekyll
As the doc mentions, we should be able to write: jekyll build --config "_config.yml, _config.en.yml" Instead, I receive: Fatal: The configuration file ' _config.en.yml' could not be found. While the file actually exists. What am I doing wrong?...

Create a partial using rendered html (from markdown) in Jekyll

markdown,jekyll
I am trying to create nested collections in Jekyll and render the nested ones as partials. I have two collection types: Areas (which contain many...) Trails Currently I am running into issues rendering all the trails on an "areas page". I want an area to list all trails, all of...

Why is the site.categories array not being output in Jekyll?

jekyll,liquid,jekyll-extensions
I'm building pages (not posts) in Jekyll. One page defines 2 categories in the front-matter as follows: categories: [document, new] And then in a layout I'm trying to output the categories object/array, but nothing is being output: <h1>Array: {{ site.categories }}</h1> Why wouldn't this output an array as expected?...

travis-ci : error during the build (No such file or directory)

jekyll,travis-ci
I'm having a problem trying to test my build on travis-ci for my jekyll app. One of the plugins generates a json containing informations that my app can reach for a search tool. The build command works fine on my computer : bundle exec jekyll build --source octopress Witch indexes...

Show only headers in Octopress RSS

rss,jekyll,octopress
I have a blog based on Octopress. It generates an RSS-feed, but that feed contains whole pages (posts) with images included. How can I "shrink" it, so it would contain only headers of pages (posts)? Octopress: 2.0 Jekyll: 2.0.3...

Jekyll include variables from external file

include,jekyll
With Jekyll, I know you can include a variable in the include line, like so: --- layout: default testVar: test1 --- {% include test_block.html testDivContent=page.testVar %} Is it possible to include another file that passes in the variable content (in this case testVar: test1) from an external file? So something...

Can I change Jekyll's temp directory?

jekyll
Can I change the directory Jekyll uses for it's temporary building? I'm using Jekyll on a gh-pages branch and when I switch back to my Ember project on master, it puts new files in /tmp. This causes problems with Jekyll's build, and forces me to delete the dir each time...

Jekyll won't parse Markdown

markdown,jekyll
I'm running Jekyll on Windows 8.1 and can't get Jekyll to parse any Markdown on my site; it just gets pasted as plaintext on the page. However, making a new site with jekyll new blog and running it with jekyll serve works just fine, including Markdown parsing, so it's not...

Adding Jekyll to an existing website

jekyll
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...

How to create new code highlight style in rouge

github,jekyll,pygments,codehighlighter
I want to post my code on my Jekyll site highlight the code. I had successfully install rouge. Is there a easy way if I want to create style on my own? How can I install other's styles? And do you have something pretty style to recommend? ...

Jekyll redcarpet render Table with frame

markdown,jekyll,github-pages,redcarpet
I had the same problem as in Table not render when use Redcarpet in Jekyll GitHub Pages? And I used the answer to get table rendering into my github Jekyll page. But it does not render the frame or lines of the table. Is there the possibility to get a...

Polymer: flashes of white screen when page loads

javascript,polymer,jekyll,web-component,github-pages
I'm currently working on the web-site using Polymer, Jekyll and Github pages. But I'm facing one big issue. When switching between pages there is a white screen showing every time, which is not correct behavior. I would like to always see the header section and left menu (without flash) even...

Unable to set favicon using Jekyll and github pages

html,jekyll,favicon,github-pages
I am trying to set a favicon.ico for my github page, but it doesn't work. When I serve it locally I see the standard "empty" favicon and when I push it I see the facebook icon. Why is it so? I have the right favicon.ico in the root directory of...

Grouping MarkDown elements in to DIV element or Custom html tag

html,markdown,jekyll
I have used Jeykll tool to generate mark down content into HTMl . I want to group the below mark down elements in to div element or any other custom Html tag. Marked Down #Multiple Axis {:.title} Different types of data can be visualized in a single chart with the...

Trying to update a jekyll site …

ruby,bash,jekyll,rbenv
I'm trying to update a jekyll blog ... and wanted to view it on my browser first ... So, I ran jekyll serve. This is what I get: rbenv: jekyll: command not found The `jekyll' command exists in these Ruby versions: 2.1.0 Why do I get this error? I also...

I can't auto-include a piece of code on all post pages on Jekyll

jekyll
I'm trying to auto-include a piece of code on all post pages on Jekyll. For example, after the first <p></p> i want to {% include adsense.html %}....

Jekyll: Markup Appearing in

Tag

html,jekyll
I've got an issue where my some of my markup from a file in my _/includes folder, is being printed to my page inside <p> tags. Here's what's inside my _includes/gallery.html file: {% assign rows = page.gallery[include.gallery] %} </section> <!-- close this --> </div> <!-- and this --> </div> <!--...

Common Markdown Code Syntax for Kramdown

markdown,jekyll,kramdown
Is there any way to modify Kramdown through configuration options which will allow me to use Common Markdown/GFM fenced code block syntax, i.e. ``` here's the code! ``` I'm switching to Kramdown for my blog so I can have Markdown inside other elements, but most of my blog uses GFM...

How to pass parameters to RedCloth (Textile processor) from Jekyll

jekyll,textile,redcloth
The RedCloth FAQ describes using the fold_lines option to disable hard breaks. What's the easiest way to pass fold_lines to RedCloth when it's called as part of Jekyll's build process? (am I just missing something in the Jekyll configuration guide?...

sorting of collection does not work

jekyll,liquid
I have encountered a strange behaviour when I try to sort a collection. When I sort a collection with name "collection_name" by {% assign collection = site.collection_name | sort:"weight" %} there is no problem. All collections are available in site.collections and the same collection can be accessed via {% assign...

Jekyll - How can I make avoid a paragraph to be added on a YAML frontmatter markdownify item

ruby,jekyll,liquid,github-pages
Okay... I have a project where I'm using Jekyll for a podcast project. And I chose to list the hosts in the shownotes by a YAML Front Matter item: hosts: - Name A - Name B - Name C Using this piece of code <li> <strong>Hosts:</strong> <ul> {% for host...

Github pages/Jekyll Coldfusion redirect

redirect,coldfusion,jekyll,url-redirection,github-pages
I've just moved my Jekyll site to Github pages, however I realised that I have a couple of Coldfusion redirects - e.g. http://mysite/index.cfm?page=disclaimer. These links are relied on from various locations on the web, is there anyway I can make it work? I have read up on Jekyll redirect-from plugin,...

How to get Bitters working in Jekyll?

gem,sass,jekyll,bourbon
I have been using Bourbon and Neat in Jekyll with no problems. I am now trying to add Bitters to the mix, but am having problems. I have installed Bitters using gem install bitters and it works in non-Jekyll projects. My _config.yml file contains gems: [bourbon, bitters, neat]. My scss...

Index page retrieve variable from all posts

javascript,jekyll,github-pages
I have a Jekyll based blog that has some location data in the frontmatter of each post. For example: mapping: locations: - title: Times Square latitude: 40.758885 longitude: -73.985134 - title: Central Park latitude: 40.782841 longitude: -73.965350 I would like to retrieve all the locations in all of my posts...

Jekyll raw HTML in post

markdown,jekyll,github-pages,kramdown
I have a Jekyll website, with Posts written in Markdown using the Kramdown parser. I would like to add some raw HTML within the post. However when I try to add the HTML, it parses it as markdown (changing <'s to &lt; for example). I have tried: Adding the HTML...

Mathjax equations displaying 3 times (Jekyll)

html,jekyll,mathjax,jekyll-bootstrap
I created a website using Jekyll and added MathJax support like so: <script type="text/x-mathjax-config"> MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); </script> <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script> in the _layouts/default.html file. and I have a *.md file in _posts with --- layout: post title: 1st post --- <div class="Math"> $$y=x^2$$ </div> Hello The equation...

What does {% capture var %} do in jekyll?

jekyll
What does {% capture var %} do in jekyll? Can I for example, in a .md file do: {% capture head %} I am the head {% endcapture %} and then in the .html file do: {{head}} Am I using capture correctly? Sorry, I couldn't find any documentation on capture....

In Jekyll, how can I get all pages with a specific tag and limit the results to 3?

jekyll
In Jekyll, I want to create a homepage showing various categories of pages. For each category, I only want to show 5 pages. How can limit the page results to just 5 per category? Here's the code I currently have for one of the category sections: <ul> {% for page...

jekyll 3.0.0-beta error Is a directory @ rb_sysopen

jekyll
With jekyll-2.5.3 I'm able to run "jekyll serve --watch" to generate my site and preview it. However, since upgrading to jekyll-3.0.0.pre.beta1 I now see the following error jekyll serve --watch Configuration file: /wrk/git/blog/_config.yml Deprecation: Auto-regeneration can no longer be set from your configuration file(s). Use the --[no-]watch/-w command-line option instead....

Can you use Jekyll layout variables in pages?

jekyll
In a Jekyll layout, default.html, you initialize a variable {% assign relative_path = "../../" %} Inside a page using default layout, this variable is empty though. How can you use inside pages variables set in layout? This is the opposite of Can you use Jekyll page variables in a layout?...

Can I use {{page.date}} with a Collection has format YYYY-MM-DD-filename.md in Jekyll?

jekyll
From the document I read on Jekyll and around the Internet, posts in _posts directory is in YYYY-MM-DD-filename.md format and their date can be retrieved by using {{page.date}} Liquid variable without the need of specify a YAML front matter "date". However, I created a Collection at the same level of...

Jekyll and Liquid for-loop

html5,for-loop,navigation,jekyll,liquid
I want to create a little side navigation vor on-page navigation. The site contains multiple images one above the other, the navigation is inside every single image and is linking to the individual id's. I am using jekyll with the liquid templating engine. To not hard code every single element...