~euandreh/website

bb84685b83d76ddcaae7e572c32a054dd9141fed — EuAndreh 10 days ago 122f9cb
Sort pastebins listing by date
1 files changed, 2 insertions(+), 1 deletions(-)

M _layouts/pastebins-listing.html
M _layouts/pastebins-listing.html => _layouts/pastebins-listing.html +2 -1
@@ 3,7 3,8 @@ layout: default
---
<h1>Pastebins listing</h1>
<ul>
  {%- for pastebin in site.pastebins -%}
  {% assign pastebins = site.pastebins | sort: "date" | reverse %}
  {%- for pastebin in pastebins -%}
  <li>
    <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: site.t.date_format[page.lang] }}
  </li>