syntax error and some small fixes

This commit is contained in:
D-u-c-k-s-e-l 2025-07-23 14:15:37 -05:00
parent c91dfcf691
commit dc7c5affb3
5 changed files with 23 additions and 16 deletions

View file

@ -24,6 +24,7 @@ main:
- title: Molly's Page - title: Molly's Page
url: https://molly.linuxposting.xyz/ url: https://molly.linuxposting.xyz/
idn: 'molly' idn: 'molly'
target: '_blank'
sub: sub:
- title: Register - title: Register
url: /register/ url: /register/

View file

@ -1,5 +1,6 @@
{% for item in site.data.nav.main %} {% for item in site.data.nav.main %}
<a href="{{ item.url }}" <a href="{{ item.url }}"
class="button {% if item.idn %}btn-{{item.idn}}{% endif %}" class="button {% if item.idn %}btn-{{item.idn}}{% endif %}"
{% if item.target %}target="{{ item.target }}"{% endif %}
id="btn-{{forloop.index}}">{{ item.title }}</a> id="btn-{{forloop.index}}">{{ item.title }}</a>
{% endfor %} {% endfor %}

View file

@ -6,5 +6,6 @@
{% assign subnav_index = forloop.index | plus: subnav_offset %} {% assign subnav_index = forloop.index | plus: subnav_offset %}
<a href="{{ item.url }}" <a href="{{ item.url }}"
class="button {% if item.idn %}btn-{{item.idn}}{% endif %}" class="button {% if item.idn %}btn-{{item.idn}}{% endif %}"
{% if item.target %}target="{{ item.target }}"{% endif %}
id="btn-{{ subnav_index }}">{{ item.title }}</a> id="btn-{{ subnav_index }}">{{ item.title }}</a>
{% endfor %} {% endfor %}

View file

@ -13,12 +13,6 @@
<h1>{{ page.headline }}</h1> <h1>{{ page.headline }}</h1>
<form action="#"> <form action="#">
<input type="text" placeholder="Search.." name="search"> <input type="text" placeholder="Search.." name="search">
<!-- FIXME: the search icon should either be added manually
using the unicode and adding nerdfonts as a fallback
font, or by @importing the nerdfont css file which
will add the icon using 'content:' just by the class.
Here you have marked it as both while not adding
nerdfonts as a font in any way. -->
<button type="submit"><i class="nerd nf-fa-search"></i></button> <button type="submit"><i class="nerd nf-fa-search"></i></button>
</form> </form>
</div> </div>
@ -79,14 +73,19 @@
<p>No announcements available at the moment.</p> <p>No announcements available at the moment.</p>
{% endfor %} {% endfor %}
</div> </div>
<a href="/feed.xml" class="button-small"> <div class="news-button-area">
<a href="/announcements/" class="button-small">
<img src="/assets/img/icon.png">Read More
</a>
<a href="/announcements/feed.xml" class="button-small">
<img src="/assets/img/icon.png">RSS Feed <img src="/assets/img/icon.png">RSS Feed
<!-- Pixel Molly with 'RSS icon' icon --> <!-- Pixel Molly with 'RSS icon' icon -->
</a> </a>
</div> </div>
</div>
<div class="news"> <div class="news">
<div class="news-item"> <div class="news-item">
<h5>NEWS NEWS NEWS</h5> <h5>NEWSLETTER</h5>
{% for article in site.news %} {% for article in site.news %}
<p> <p>
<a href="{{ article.url }}">{{ article.headline }}</a> <a href="{{ article.url }}">{{ article.headline }}</a>
@ -95,11 +94,16 @@
<p>No news articles available at the moment.</p> <p>No news articles available at the moment.</p>
{% endfor %} {% endfor %}
</div> </div>
<a href="#" class="button-small"> <div class="news-button-area">
<a href="/news/" class="button-small">
<img src="/assets/img/icon.png">Read more <img src="/assets/img/icon.png">Read more
</a>
<a href="/news/feed.xml" class="button-small">
<img src="/assets/img/icon.png">RSS Feed
<!-- Pixel Molly with 'RSS icon' icon --> <!-- Pixel Molly with 'RSS icon' icon -->
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<!-- Oneko does not like eating mice, just chasing them. <!-- Oneko does not like eating mice, just chasing them.

View file

@ -18,7 +18,7 @@ module Jekyll
end end
if config['settings']['process_collections'] == true if config['settings']['process_collections'] == true
combined_applicable += site.collections.values.map(&:docs).flatten combined_applicable += site.collections.values.map(&:docs).flatten
elif config['settings']['process_collections'].is_a?(Array) elsif config['settings']['process_collections'].is_a?(Array)
for collection_name in config['settings']['process_collections'] for collection_name in config['settings']['process_collections']
if site.collections.key?(collection_name) if site.collections.key?(collection_name)
combined_applicable += site.collections[collection_name].docs combined_applicable += site.collections[collection_name].docs