mirror of
https://github.com/2009scape/2009scape.github.io.git
synced 2024-10-03 22:17:13 +02:00
Dynamic monthy newspost promo image + ability to specify promo images in posts
This commit is contained in:
parent
747d6a0f38
commit
39398e874b
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
_site/
|
||||
.jekyll-cache/
|
25
index.html
25
index.html
@ -29,7 +29,7 @@ title: A free & open-source remake of 2009 era RuneScape
|
||||
src="./site/img/2009img/main/home/feature_poll_icon.jpg" alt="Hiscores" /></a>
|
||||
<div class="featureTitle">Community Hiscores</div>
|
||||
<div class="featureDesc">See who's on top & check your skill levels! View the <a
|
||||
href="./services/m=hiscore/hiscores.html">Hiscores</a>.</div>
|
||||
href="./services/m=hiscore/hiscores.html?world=2">Hiscores</a>.</div>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<a href="https://gitlab.com/2009scape/2009scape/-/issues"><img
|
||||
@ -85,23 +85,11 @@ title: A free & open-source remake of 2009 era RuneScape
|
||||
</DIV>
|
||||
<div id="right">
|
||||
<!--MAIN BUTTON: PLAY/CLIENT DOWNLOAD-->
|
||||
<a href="#" target="_blank" id="playbutton">
|
||||
<a href="https://gitlab.com/2009scape/09launcher/-/jobs/artifacts/master/raw/build/libs/2009scape.jar?job=build" target="_blank" id="playbutton">
|
||||
<img src="./site/2009scape-resources/img/buttons/btn-play.png"
|
||||
alt="Play 2009Scape - Download the game client" />
|
||||
<span class="shim"></span>
|
||||
</a>
|
||||
<script type="text/javascript">
|
||||
document.getElementById("playbutton").onclick = function () {
|
||||
if (navigator.appVersion.indexOf("Win") != -1) Name = "windows";
|
||||
else Name = "unix";
|
||||
if (Name == "windows") {
|
||||
window.location.href = "https://gitlab.com/2009scape/09launcher/-/jobs/artifacts/master/raw/build/libs/2009scape.jar?job=build";
|
||||
} else {
|
||||
window.location.href = "https://gitlab.com/2009scape/09launcher/-/jobs/artifacts/master/raw/build/libs/2009scape.jar?job=build";
|
||||
}
|
||||
return false;
|
||||
};
|
||||
</script>
|
||||
<div id="recentnews">
|
||||
<!--TITLE: LATEST UPDATES-->
|
||||
<div class="sectionHeader">
|
||||
@ -133,8 +121,13 @@ title: A free & open-source remake of 2009 era RuneScape
|
||||
<span>{{ page.date | date: '%d-%B-%Y' }}</span>
|
||||
</div>
|
||||
<!--UPDATE IMAGE-->
|
||||
<a class="newsImage" href="./services/m=news/archives/2021-09-16.html"><img clalt=''
|
||||
src="./site/2009scape-resources/img/updates/update-monthly-09.png"></a>
|
||||
{% if page.promo_image and page.promo_image != "" and page.promo_image != nil %}
|
||||
{% assign promoImage = page.promo_image %}
|
||||
{% else %}
|
||||
{% assign promoImage = "./site/2009scape-resources/img/updates/update-monthly-" | append: page.date | date: './site/2009scape-resources/img/updates/update-monthly-%m.png' %}
|
||||
{% endif %}
|
||||
<a class="newsImage" href="{{ page.url | prepend: site.baseurl }}"><img clalt=''
|
||||
src="{{promoImage}}"></a>
|
||||
<!--UPDATE CONTENT TEASER-->
|
||||
<p> {{ page.excerpt | truncate: 350 }}
|
||||
<!--READ MORE LINK-->
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Archived Post - Website Creation
|
||||
title: Archived Post - Website Creation Part 1
|
||||
tags: news
|
||||
layout: newspost
|
||||
collection: Game Updates
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Archived Post - Website Creation
|
||||
title: Archived Post - Website Creation Part 2
|
||||
tags: news
|
||||
layout: newspost
|
||||
collection: Game Updates
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: A Fair Start
|
||||
title: A Fair Start Part 1
|
||||
tags: news
|
||||
layout: newspost
|
||||
collection: Game Updates
|
||||
@ -21,7 +21,7 @@ authors: Summer
|
||||
</div>
|
||||
<div id="contrast_panel">
|
||||
<div id="infopane">
|
||||
<div class="title thrd">A Fair Start
|
||||
<div class="title thrd">A Fair Start Part 1
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: A Fair Start
|
||||
title: A Fair Start Part 2
|
||||
tags: news
|
||||
layout: newspost
|
||||
collection: Game Updates
|
||||
@ -24,7 +24,7 @@ the next announcement that I will quote underneath."
|
||||
</div>
|
||||
<div id="contrast_panel">
|
||||
<div id="infopane">
|
||||
<div class="title thrd">A Fair Start
|
||||
<div class="title thrd">A Fair Start Part 2
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user