I'm trying to add a page to my Jekyll Bootstrap blog and it's not showing up in the navbar. I thought that if you included the correct YAML front matter, the pages would automatically generate in the nav. I've created the page manually with a .html file extension, created the page using the command
rake page name="about.md"
... and neither one seems to work. I've restarted my server, I'm using
jekyll serve --force_polling
and I can't seem to get the page to show in my navigation ... please advise.
LINKS:
My github codebase: https://github.com/twotimes22/twotimes22.github.io
Documentation: http://jekyllbootstrap.com/usage/jekyll-quick-start.html
Thanks in advance.
Your need to put your page in the navigation group by adding group: navigation in the front matter.
See the page_list inclusion and the Jekyll bootstrapp documentation.
Edit: After watching at your repository I found a strange bug.
You have a trailing space in the front matter that the page away fronm the jekyll page listing ??
This is your front matter :
---[space]
layout: page
title: "Toto"
group: navigation
---[space]
Removing the [space] makes the page appear in the pages list. Strange !
Related
I have a website which is running on Magento. There i'd like to add a code inside the body tag of each page. Where can i find this on my website? Is this a single file or do i have to do this on every page.
Anything would be helpful.
You can add it in Magento backend:
Log into Magento backend;
Navigate to System→Configuration, under ‘General’ open ‘Design’,
scroll down and click to extend the Html Head section;
Paste the GTM Code into the field next to Miscellaneous Scripts;
I have a Jekyll site deployed to Heroku. I have created a custom 404 error page in source/404.html file. The page can be found at mydomain.com/404/. But when I try to go to pages which don't exist, the custom 404 page doesn't work. And instead I get a blank, default Heroku error page.
What can be a reason for that? Note that a permalink for the page doesn't have an html extension. Can this be a problem?
Have you tried adding a permalink to the YAML front matter?
permalink: /404.html
also I have read that the 404 page is specific to GitHub pages, but worth a try
If you have followed the Heroku official Jekyll setup, you should use 2 buildpacks :
heroku/ruby
https://github.com/heroku/heroku-buildpack-static
The latter allow a static.json configuration file (at the root of your project) to customize nginx. The documentation tells you how to add custom error pages.
In your case, the static.json file should contain :
{
...
"error_page": "404.html",
...
}
I'm using Jekyll for a blog/portfolio site. I have several posts which are portfolio entries, and several which are blog entries.
I am able to use the portfolio-entry posts to build a portfolio page (www.alexmarchant.com/portfolio), but Jekyll still generates a permalinked individual page for each portfolio entry. Is there any way to turn this off?
I've tried the following in the YAML front-matter section of the posts:
permalink: none
permalink: false
Neither works.
I found one hack to do what you want: when you set the permalink to be an already existent page, then it won't be generated (the original page would be there), but it still would be available as an post/page entity in Jekyll.
So, if you'd have an index page for portfolio at such url: /portfolio/index.html, and then in your /_posts/ you would have any posts which would have this in YAML front matter: permalink: /portfolio/index.html, then those pages wouldn't be generated.
I want to enable Compilation on our Magento website, but when I enable it, I get blank content for my home page. It stops rendering before outputting the menu. Category and product pages seem to be fine.
We use the Mercado theme, and the home page uses a HomepageGrid block which is a CMS page.
Could anybody provide some insight?
Thanks
all you have to do is to check your error log. blank page means php error, and your output configured into error log, not screen. possible places to look: path_to/magento/var/log/ files system.log and exception.log. or /var/log/ and folders httpd/error_log etc. looks like you have some module like featured products or other custom stuff on front page, check your CMS > Pages > Homepage content. thank you
I know how to create a post in jekyll, but how can I create a page (like About) without it being considered as a post?
Also, I use Github pages, so I can't use extensions.
If you create a file called about.html, about.markdown or about.textile in the root of your project it will be treated as a static page.
You can still give it some YAML front matter and jekyll if you wish to share a template etc.
It's all explained on the jekyll wiki at https://github.com/mojombo/jekyll/wiki/usage
Here's an excerpt from my about.markdown file
---
layout: default
title: About | Purebreeze
---
I'm a software developer based in London...
That's saying use the default template, set title to "About | Purebreeze" (which is rendered via a liquid tag in my default template) and then the contents of my about page.
This is then rendered at http://purebreeze.com/about by github (by default this would have been (http://levent.github.com/about)
This looks like a bug. But there's a workaround: create a directory called eg. "about" and put your content into about/index.[fill in the blank]. (oh, and by the way, report it.)