Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate dataset.notes #138

Open
willemvanopstal opened this issue Mar 2, 2018 · 0 comments
Open

Truncate dataset.notes #138

willemvanopstal opened this issue Mar 2, 2018 · 0 comments

Comments

@willemvanopstal
Copy link

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 %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant