Skip to content

Truncate dataset.notes #138

Open
Open
@willemvanopstal

Description

@willemvanopstal

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 %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions