timwis / jkan

A lightweight, backend-free open data portal, powered by Jekyll

Home Page:https://jkan.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Truncate dataset.notes

willemvanopstal opened this issue · comments

Truncating the dataset.notes on the dataset-page does not work.

See for example Homes Saved in the JKAN demo and for (non-)truncating: filtered dataset-page.

I fixed this through applying a different truncate mechanism from this gist. It works although not automaticcaly. You'll need to insert a 'truncate-statement' in the description manually.

{% for dataset in include.datasets %}
<dataset>
  <h3><a href="{{ site.baseurl }}{{ dataset.url }}">{{ dataset.title }}</a></h3>
  {{ dataset.notes | split:'<!-- break -->' | first }}
</dataset>
{% endfor %}