mirror of
https://github.com/2009scape/2009scape.github.io.git
synced 2024-08-19 07:39:39 +02:00
Mirror lastest instead of redirecting
This commit is contained in:
parent
15aedfaafc
commit
50cdeda872
@ -1,12 +1,15 @@
|
|||||||
---
|
---
|
||||||
|
layout: newspost
|
||||||
|
title: Lastest
|
||||||
---
|
---
|
||||||
<!-- Redirect to latest news post -->
|
<!-- Mirror latest news post -->
|
||||||
{% assign sorted = site.pages | orderby: 'date' %}
|
{% assign sorted = site.pages | orderby: 'date' %}
|
||||||
|
{% assign flag = true %}
|
||||||
{% for page in sorted %}
|
{% for page in sorted %}
|
||||||
{% for tag in page.tags %}
|
{% for tag in page.tags %}
|
||||||
{% if tag == "news" %}
|
{% if tag == "news" and flag %}
|
||||||
<meta http-equiv="refresh" content="0; URL={{ page.url | prepend: site.baseurl }}" />
|
{{page.content}}
|
||||||
{% break %}
|
{% assign flag = false %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
Loading…
Reference in New Issue
Block a user