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

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)