From 50cdeda872184445f4f90e943db71760b17fd7dc Mon Sep 17 00:00:00 2001 From: downthecrop Date: Sun, 19 Sep 2021 14:08:42 -0700 Subject: [PATCH] Mirror lastest instead of redirecting --- services/m=news/archives/latest.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/services/m=news/archives/latest.html b/services/m=news/archives/latest.html index cf67912e1..480a9e57a 100644 --- a/services/m=news/archives/latest.html +++ b/services/m=news/archives/latest.html @@ -1,12 +1,15 @@ --- +layout: newspost +title: Lastest --- - + {% assign sorted = site.pages | orderby: 'date' %} +{% assign flag = true %} {% for page in sorted %} {% for tag in page.tags %} - {% if tag == "news" %} - - {% break %} + {% if tag == "news" and flag %} + {{page.content}} + {% assign flag = false %} {% endif %} {% endfor %} {% endfor %} \ No newline at end of file