how to include video in jekyll markdown blog

You should be able to put the HTML for embedding directly into your markdown. Under the video, there is a “Share” button, click on this, and then the “Embed” button, which should give you something that looks a little like: <iframe width=”420″ height=”315″ src=”http://www.youtube.com/embed/dQw4w9WgXcQ” frameborder=”0″ allowfullscreen></iframe> Just copy and paste that into your post, the … Read more

Sorted navigation menu with Jekyll and Liquid

Since Jekyll 2.2.0 you can sort an array of objects by any object property. You can now do : {% assign pages = site.pages | sort:”weight” %} <ul> {% for p in pages %} <li> <a {% if p.url == page.url %}class=”active”{% endif %} href=”https://stackoverflow.com/questions/9053066/{{ p.url }}”> {{ p.title }} </a> </li> {% endfor %} … Read more

Local post assets with Jekyll

I wrote a plugin to let me organise assets in subdirectories easily: https://github.com/samrayner/jekyll-asset-path-plugin {% asset_path my-image.png %} in post 2013-01-01-post-title would output: /assets/posts/post-title/my-image.png in page my-first-page would output: /assets/my-first-page/my-image.png

How to fix: Domain does not resolve to the GitHub Pages server. Error in Github Pages for custom domain setup with Enforce HTTPS Enabled?

For anyone stumbling across this. Actually I realized I have outlined the correct method to set this up with Github Pages. And this is in line with what is recommended by Github as of today and works perfectly well. Just make sure you wait for the DNS Propagation to take effect which in some cases … Read more

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