update static website generation
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
<link rel="stylesheet" href="{{ base['url_to'](['css', 'osgl.min.css']) }}">
|
||||
</head>
|
||||
<body>
|
||||
{# navigation bar -#}
|
||||
{#- navigation bar -#}
|
||||
<nav class="navbar container is-light" aria-label="main navigation">
|
||||
<div class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
@ -32,9 +32,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{# content block -#}
|
||||
{#- content block -#}
|
||||
{% block content %}{% endblock %}
|
||||
{# footer -#}
|
||||
{#- footer -#}
|
||||
<footer class="footer">
|
||||
<div class="container is-size-7">
|
||||
<div class="block">
|
||||
|
@ -3,12 +3,14 @@
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="box">
|
||||
{#- title and subtitle -#}
|
||||
<div class="block">
|
||||
<h1 class="title">{{ macros.render_element(index['title']) }}</h1>
|
||||
{%- if 'subtitle' in index -%}
|
||||
<h2 class="subtitle">{{ macros.render_element(index['subtitle']) }}</h2>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
{#- index of the categories -#}
|
||||
<div class="tags">
|
||||
{% for category in index['categories'] -%}
|
||||
<span class="tag is-white {% if index['number_entries'][category] > index['number_entries_per_category_threshold'] %}is-size-5{% else %}is-size-6{% endif %}">
|
||||
@ -17,18 +19,21 @@
|
||||
{%- endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{#- each of the categories -#}
|
||||
{% for category in index['categories'] %}
|
||||
<div class="box">
|
||||
<div class="block"><h2 id="{{ category.lower() }}" class="is-size-4 has-text-weight-semibold">{{ macros.render_element(index['category-names'][category]) }}</h2></div>
|
||||
<div class="block">
|
||||
<h2 id="{{ category.lower() }}" class="is-size-4 has-text-weight-semibold">{{ macros.render_element(index['category-names'][category]) }}</h2>
|
||||
{%- if category in index['category-infos'] -%}{{ macros.render_element(index['category-infos'][category]) }}{%- endif -%}
|
||||
</div>
|
||||
<div class="columns">
|
||||
{%- for entries_column in index['entries'][category] -%}
|
||||
<div class="column">
|
||||
<ul>
|
||||
{%- for entry in entries_column -%}
|
||||
<li>{%- if 'tags' in entry -%}{{ macros.render_element(entry['url']) }}{{ macros.render_element(entry['tags']) }}
|
||||
{%- else -%}
|
||||
<span class="has-text-weight-semibold">{{ macros.render_element(entry['url']) }}</span>
|
||||
{%- endif -%}</li>
|
||||
<li>{%- if index['entry_bold'](entry) -%}<span class="has-text-weight-semibold">{%- endif -%}
|
||||
{{ macros.render_element(entry['url']) }}{%- if 'tags' in entry -%}{{ macros.render_element(entry['tags']) }}{%- endif -%}
|
||||
{%- if index['entry_bold'](entry) -%}</span>{%- endif -%}</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
</div>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 280 KiB |
@ -6,7 +6,9 @@
|
||||
<div class="container">
|
||||
<h1 class="title">Open source games list (OSGL)</h1>
|
||||
<p class="subtitle">{{ macros.render_text(index['subtitle']) }}</p>
|
||||
<img src="collage_games.jpg" alt="" width="1200" height="600">
|
||||
<figure class="image is-2by1">
|
||||
<img src="collage_games.jpg" alt="">
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -5,11 +5,11 @@
|
||||
<h1 class="title">{{ listing['title'] }}</h1>
|
||||
{# iterate over items -#}
|
||||
{% for item in listing['items'] %}
|
||||
<div class="box">
|
||||
<div id="{{ item['anchor-id'] }}" class="box">
|
||||
<div class="level">
|
||||
<div class="level-left">
|
||||
<div class="level-item">
|
||||
<h2 id="{{ item['anchor-id'] }}" class="title is-4">{{ item['name'] }}</h2>
|
||||
<h2 class="title is-4">{{ item['name'] }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="level-right is-size-5">
|
||||
|
@ -8,11 +8,11 @@
|
||||
{%- endif -%}
|
||||
{# iterate over items -#}
|
||||
{% for item in listing['items'] %}
|
||||
<div class="box">
|
||||
<div id="{{ item['anchor-id'] }}" class="box">
|
||||
<nav class="level">
|
||||
<div class="level-left">
|
||||
<div class="level-item">
|
||||
<h2 id="{{ item['anchor-id'] }}" class="title is-4">{{ item['name'] }}</h2>
|
||||
<h2 class="title is-4">{{ item['name'] }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="level-right">
|
||||
|
@ -5,9 +5,9 @@
|
||||
<h1 class="title">{{ listing['title'] }}</h1>
|
||||
{# iterate over items -#}
|
||||
{% for item in listing['items'] %}
|
||||
<div class="box">
|
||||
<div id="{{ item['anchor-id'] }}" class="box">
|
||||
<div class="block">
|
||||
<h2 id="{{ item['anchor-id'] }}" class="title is-4">{{ item['name'] }}</h2>
|
||||
<h2 class="title is-4">{{ item['name'] }}</h2>
|
||||
<div class="subtitle is-size-6">{{ macros.render_element(item['inspired']) }}</div>
|
||||
{%- if 'media' in item -%}{{ macros.render_element(item['media']) }}{%- endif -%}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user