Using MathJax with Jekyll

Certainly you can use mathjax with Jekyll. To get this working make sure that If you’re writing your post in markdown, your markdown interpreter isn’t hammering your mathjax input. The best way to protect it I have found is to always put display math in <div> elements and inline math in <span> elements, which most … Read more

What is the best approach for redirection of old pages in Jekyll and GitHub Pages?

The best solution is to use both <meta http-equiv=”refresh” and <link rel=”canonical” href= It works very well, Google Bot reindexed my entire website under new links without losing positions. Also the users are redirected to the new posts right away. <meta http-equiv=”refresh” content=”0; url=http://konradpodgorski.com/blog/2013/10/21/how-i-migrated-my-blog-from-wordpress-to-octopress/”> <link rel=”canonical” href=”http://konradpodgorski.com/blog/2013/10/21/how-i-migrated-my-blog-from-wordpress-to-octopress/” /> Using <meta http-equiv=”refresh” will redirect each visitor … Read more

How to support latex in GitHub-pages?

Since resources online have changed regarding this question, here’s an update on supporting LateX with GitHub Pages. Note that the closest to Latex rendering without exporting as images and natively supporting it on your Jekyll site would be to use MathJax. MathJax is actually recommended in Jekyllrb docs for math support, with Kramdown, it also … Read more

Change site.url to localhost during jekyll local development

This is a common problem between different Jekyll environments. Some explanations We need to understand site.url and site.baseurl and in which situation we need them. Those variables don’t serve the same purpose. site.url By default, this variable is only used in page head for the canonical header and the RSS link. It’s also used in … Read more

How does Jekyll date formatting work?

Solution This output filter: {{ page.date | date: “%-d %B %Y” }} produces dates formatted like: 9 September 2013 Be sure not to miss the minus (-) in front of %-d for the day. Without it, numbers below ten would have leading zeros (e.g. 09 September 2013). Details on the individual date formatting tokens can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)