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 flag = true %}
|
||||
{% for page in sorted %}
|
||||
{% for tag in page.tags %}
|
||||
{% if tag == "news" %}
|
||||
<meta http-equiv="refresh" content="0; URL={{ page.url | prepend: site.baseurl }}" />
|
||||
{% break %}
|
||||
{% if tag == "news" and flag %}
|
||||
{{page.content}}
|
||||
{% assign flag = false %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
Loading…
Reference in New Issue
Block a user