home.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {% extends "base.html" %}
  2. {% block title %}{{ section.title }}{% endblock title %}
  3. {% block header_logo %}
  4. <p class="header-title">
  5. <img class="logo" src="{{ get_url(path="images/mask.jpg") }}" alt="{{ section.title }}" title="Logo"/>
  6. </p>
  7. {% endblock header_logo %}
  8. {% block content %}
  9. <div>
  10. <h1>{{ config.extra.blog_title}}</h1>
  11. <p>{{ config.extra.description }}</p>
  12. {% set core_rules_href = get_url(path="rules/core") %}
  13. <p>Get started with the <a href="{{ core_rules_href }}">core rules</a>.</p>
  14. <p>Distributed under the {{ config.extra.license }}.</p>
  15. </div>
  16. <div>
  17. <h2>Headlines</h2>
  18. <p>
  19. Fenris Punk is playable, but please consider the available rules
  20. in Alpha state.
  21. </p>
  22. <p>
  23. As of December 9, 2024 most website content might be unavailable
  24. during the migration.
  25. </p>
  26. </div>
  27. <div>
  28. <h2>Recent Entries</h2>
  29. <ul>
  30. {% set lore_section = get_section(path="archive/lore/_index.md") %}
  31. {% set lore_pages = lore_section.pages %}
  32. {% set news_section = get_section(path="archive/news/_index.md") %}
  33. {% set news_pages = news_section.pages %}
  34. {% set sessions_section = get_section(path="archive/sessions/_index.md") %}
  35. {% set sessions_pages = sessions_section.pages %}
  36. {% set section_pages = section.pages %}
  37. {% set all_pages = section_pages | concat(with=lore_pages) | concat(with=news_pages) | concat(with=sessions_pages) %}
  38. {% set sorted_pages = all_pages | sort(attribute="date") | reverse %}
  39. {% for page in sorted_pages | slice(end=5) %}
  40. <li>
  41. <h3>{{ page.date }} &bullet; <a href="{{ page.permalink }}">{{ page.title }}</a></h3>
  42. {% if page.description %}
  43. <p>{{ page.description }}</p>
  44. {% elif page.summary %}
  45. <p>{{ page.summary }}</p>
  46. {% else %}
  47. <p>{{ page.title }}....</p>
  48. {% endif %}
  49. </li>
  50. {% endfor %}
  51. </ul>
  52. </div>
  53. {% endblock content %}