Skip to content

"More News(All news)" page should display contents of all news instead of just date and title #173

@sdash-github

Description

@sdash-github

Currently the LIS news page(from MORE NEWS link), https://www.legumeinfo.org/news/ displays just the date, title & summary and lacks the news contents. To see what has been the news one has to click on by one (not ideal).
Asking for approval from @adf-ncgr
At PeanutBase Sven accomplished this by including a news.html file under _layouts/ whose code is below. This uses markdownify to spit the news content from each of the .md files into the news all page.

I use this at PB to

  • review the progress and write progress reports,
  • to check what we have already covered in previous news,
  • to update a news about a tool if the previous one doesn't mention the current enhancement, etc.

_layouts/news.html

---
layout: default
---

<h1>News</h1>

<dl class="uk-description-list uk-description-list-divider">
{% for post in site.categories.news %}
<dt><a href="{{ post.url }}">{{ post.title }}</a></dt>
  <dd>{{ post.content | markdownify }}</dd>
{% endfor %}
</dl>

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions