Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Revert template changes from master
Browse files Browse the repository at this point in the history
  • Loading branch information
dshevtsov committed Dec 16, 2020
1 parent 5de386b commit 11664d7
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions src/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,35 @@ title: What's new on DevDocs

{% assign grouped_by_year = entries | group_by_exp: "entry", "entry.date | date: '%Y'" %}

{% for year_group in grouped_by_year limit:2 %}
{% for group in grouped_by_year limit:2 %}

{% assign grouped_by_month = year_group.items | group_by_exp: "entry", "entry.date | date: '%B'" %}
## {{ year_group.name }}

{% for month_group in grouped_by_month %}
### {{ month_group.name }}

{% assign grouped_by_date = month_group.items | group_by: "date" %}

{% for date_group in grouped_by_date %}
#### {{ date_group.name }}
## {{ group.name }}

<table>
<thead>
<tr>
<th>Description</th>
<th>Versions</th>
<th>Type</th>
<th>Pull request</th>
<th>Date</th>
</tr>
</thead>
<tbody>
{% for item in date_group.items %}
{% for item in group.items %}
<tr>
<td>{{ item.description | markdownify }}</td>
<td>{{ item.versions }}</td>
<td>{{ item.type }}</td>
<td><a href="{{ item.link }}">{{ item.link | split: "/" | last }}</a></td>
<td>
{%- if item.link -%}
<a href="{{ item.link }}">{{ item.date | date: "%B&nbsp;%e" }}</a>
{%- else -%}
{{ item.date | date: "%B&nbsp;%e" }}
{%- endif -%}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}<!-- date_group -->
{% endfor %}<!-- month_group -->

{% endfor %}<!-- year_group -->
{% endfor %}

0 comments on commit 11664d7

Please sign in to comment.