improved static website
This commit is contained in:
@ -4,22 +4,22 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ base['title'] }}</title>
|
||||
<link rel="stylesheet" href="{{ base['paths']['css'] }}">
|
||||
<link rel="stylesheet" href="{{ base['url_to']('css/bulma.min.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="container navbar" role="navigation" aria-label="main navigation">
|
||||
<div class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="navbar-item" href="{{ base['paths']['index'] }}">
|
||||
<a class="navbar-item" href="{{ base['url_to']('index.html') }}">
|
||||
Home
|
||||
</a>
|
||||
|
||||
<a class="navbar-item" href="{{ base['paths']['index-games'] }}">
|
||||
<a class="navbar-item" href="{{ base['url_to']('games/index.html') }}">
|
||||
Games
|
||||
</a>
|
||||
|
||||
<a class="navbar-item" href="{{ base['paths']['index-developers'] }}">
|
||||
<a class="navbar-item" href="{{ base['url_to']('developers/index.html') }}">
|
||||
Developers
|
||||
</a>
|
||||
|
||||
@ -29,28 +29,33 @@
|
||||
</a>
|
||||
|
||||
<div class="navbar-dropdown">
|
||||
<a class="navbar-item" href="{{ base['paths']['index-inspirations'] }}">
|
||||
<a class="navbar-item" href="{{ base['url_to']('inspirations/index.html') }}">
|
||||
By inspiration
|
||||
</a>
|
||||
<a class="navbar-item" href="{{ base['paths']['index-developers'] }}">
|
||||
<a class="navbar-item" href="{{ base['url_to']('games/genres.html') }}">
|
||||
By category
|
||||
</a>
|
||||
<a class="navbar-item" href="{{ base['paths']['index-developers'] }}">
|
||||
<a class="navbar-item" href="{{ base['url_to']('games/languages.html') }}">
|
||||
By code language
|
||||
</a>
|
||||
<a class="navbar-item" href="{{ base['paths']['index-developers'] }}">
|
||||
<a class="navbar-item" href="{{ base['url_to']('games/platforms.html') }}">
|
||||
By OS support
|
||||
</a>
|
||||
<a class="navbar-item" href="{{ base['paths']['index-developers'] }}">
|
||||
By dependency
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="navbar-item" href="{{ base['paths']['index-statistics'] }}">
|
||||
<a class="navbar-item" href="{{ base['url_to']('statistics.html') }}">
|
||||
Statistics
|
||||
</a>
|
||||
|
||||
<a class="navbar-item" href="{{ base['url_to']('contribute.html') }}">
|
||||
Contribute
|
||||
</a>
|
||||
|
||||
<a class="navbar-item" href="https://github.com/Trilarion/opensourcegames">
|
||||
On GitHub
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@ -58,10 +63,9 @@
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<footer class="footer">
|
||||
<div class="content has-text-centered">
|
||||
<p>
|
||||
Footer content {{ base['creation-date'] }}
|
||||
</p>
|
||||
<div class="container is-size-7">
|
||||
<a href="https://trilarion.blogspot.com/search/label/osgames">Blog</a><br>
|
||||
Last updated on {{ base['creation-date'] }}
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
@ -3,26 +3,29 @@
|
||||
{% block content %}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1>{{ index['title'] }}</h1>
|
||||
<p>
|
||||
<div class="box">
|
||||
<h1 class="title">{{ index['title'] }}</h1>
|
||||
{% set comma = joiner(",") %}
|
||||
{% for category in index['categories'] %}
|
||||
{{ comma() }} <a href="#{{ category }}">{{ category.capitalize() }}</a> ({{ index['number_entries'][category] }})
|
||||
{{ comma() }} <a href="#{{ category }}" class="is-size-4">{{ category }}</a> with {{ index['number_entries'][category] }} item(s)
|
||||
{% endfor %}
|
||||
</p>
|
||||
</div>
|
||||
{% for category in index['categories'] %}
|
||||
<h2 id="{{ category }}">{{ category.capitalize() }}</h2>
|
||||
<div class="box">
|
||||
<h2 id="{{ category }}" class="is-size-4">{{ category }}</h2>
|
||||
<div class="columns">
|
||||
{% for entries_column in index['entries'][category] %}
|
||||
<div class="column">
|
||||
<ul>
|
||||
{% for entry in entries_column %}
|
||||
<li>{{ entry }}</li>
|
||||
<li><a href="{{ base['url_to'](entry['href']) }}">{{ entry['name'] }}</a> {% if 'tags' in entry %}<span class="is-light is-size-7">({{ entry['tags'] }})</span>{% endif %}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<a class="is-light is-size-7" href="#">Back to top</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -3,12 +3,13 @@
|
||||
{% block content %}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1>Inspirations ({{ letter.capitalize() }})</h1>
|
||||
<h1 class="title">Developers ({{ letter.capitalize() }})</h1>
|
||||
{% for developer in developers %}
|
||||
<p>
|
||||
{{ developer['Name'] }}<br>
|
||||
Games: {{ developer['Games']|join(', ') }}
|
||||
</p>
|
||||
<div class="box">
|
||||
<h2 id="{{ developer['anchor-id'] }}">{{ developer['Name'] }}</h2><br>
|
||||
{% set comma = joiner(", ") %}
|
||||
Game(s):{% for game in developer['Games'] %}{{ comma() }}<a href="{{ base['url_to'](game[0]) }}">{{ game[1] }}</a>{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -3,21 +3,41 @@
|
||||
{% block content %}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1>Games ({{ letter.capitalize() }})</h1>
|
||||
{% for g in games %}
|
||||
<p>
|
||||
<a id="#{{ g['title-anchor'] }}">{{ g['Title'] }}</a><br>
|
||||
Home: {{ g['Home'] }}<br>
|
||||
{% if 'Inspirations' in g %}{% endif%}
|
||||
{% if 'Media' in g %}{% endif%}
|
||||
{% if 'Download' in g %}{% endif%}
|
||||
{% if 'Play' in g %}{% endif%}
|
||||
{% if 'Developer' in g %}{% endif%}
|
||||
{% if 'Note' in g %}{% endif%}
|
||||
Technical info:<br>
|
||||
Language: {{ g['Code language'] }}<br>
|
||||
License: {{ g['Code license'] }}
|
||||
</p>
|
||||
<h1 class="title">{{ data['title'] }}</h1>
|
||||
{% for g in data['games'] %}
|
||||
<div class="box">
|
||||
<nav class="level is-mobile">
|
||||
<div class="level-left">
|
||||
<h2 id="{{ g['anchor-id'] }}">{{ g['Title'] }}</h2>
|
||||
</div>
|
||||
<div class="level-right is-size-7">
|
||||
<p class="level-item"><a href="{{ base['url_to']('contribute.html') }}">Edit</a></p>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{%- set comma = joiner(", ") -%}
|
||||
Home: {% for url in g['Home'] %}{{ comma() }}<a href="{{ url }}">{{ url }}</a>{% endfor %}<br>
|
||||
{% if 'Inspirations' in g %}
|
||||
{%- set comma = joiner(", ") -%}
|
||||
Inspirations: {% for inspiration in g['Inspirations']%}{{ comma() }}<a href="{{ base['url_to'](inspiration[0]) }}">{{ inspiration[1] }}</a>{% endfor %}<br>
|
||||
{% endif%}
|
||||
{%- set comma = joiner(", ") -%}
|
||||
{% if 'Media' in g %}Media: {% for url in g['Media'] %}{{ comma() }}<a href="{{ url }}">{{ url }}</a>{% endfor %}<br>{% endif%}
|
||||
{%- set comma = joiner(", ") -%}
|
||||
{% if 'Download' in g %}Download: {% for url in g['Download'] %}{{ comma() }}<a href="{{ url }}">{{ url }}</a>{% endfor %}<br>{% endif%}
|
||||
{%- set comma = joiner(", ") -%}
|
||||
{% if 'Play' in g %}Play: {% for url in g['Play'] %}{{ comma() }}<a href="{{ url }}">{{ url }}</a>{% endfor %}<br>{% endif%}
|
||||
{% if 'Developer' in g %}
|
||||
{%- set comma = joiner(", ") -%}
|
||||
Developer: {% for developer in g['Developer']%}{{ comma() }}<a href="{{ base['url_to'](developer[0]) }}">{{ developer[1] }}</a>{% endfor %}<br>{% endif%}
|
||||
{% if 'Note' in g %}{{ g['Note'] }}<br>{% endif%}
|
||||
Technical info<br>
|
||||
{%- set comma = joiner(", ") -%}
|
||||
Language: {% for language in g['Code language'] %}{{ comma() }}{{ language }}{% endfor %}<br>
|
||||
{%- set comma = joiner(", ") -%}
|
||||
License: {% for license in g['Code license'] %}{{ comma() }}{{ license }}{% endfor %}<br>
|
||||
{% if 'Build system' in g['Building'] %}Build system: <br>{% endif%}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -3,9 +3,7 @@
|
||||
{% block content %}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title">
|
||||
Open source games list (OSGL)
|
||||
</h1>
|
||||
<h1 class="title">Open source games list (OSGL)</h1>
|
||||
<p class="subtitle">
|
||||
Contains information about {{ index['number_games'] }} open source games.
|
||||
</p>
|
||||
|
@ -3,13 +3,14 @@
|
||||
{% block content %}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1>Inspirations ({{ letter.capitalize() }})</h1>
|
||||
<h1 class="title">Inspirations ({{ letter.capitalize() }})</h1>
|
||||
{% for inspiration in inspirations %}
|
||||
<p>
|
||||
{{ inspiration['Name'] }}<br>
|
||||
<div class="box">
|
||||
<h2 id="{{ inspiration['anchor-id'] }}">{{ inspiration['Name'] }}</h2><br>
|
||||
{% if 'Media' in inspiration %}Media: {{ inspiration['Media'] }}<br>{% endif %}
|
||||
Inspired entries: {% for game in inspiration['Inspired entries'] %}{{ game }}{% endfor %}
|
||||
</p>
|
||||
{% set comma = joiner(", ") %}
|
||||
Inspired entries: {% for game in inspiration['Inspired entries'] %}{{ comma() }}<a href="{{ base['url_to'](game[0]) }}">{{ game[1] }}</a>{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
28
code/html/statistics.jinja
Normal file
28
code/html/statistics.jinja
Normal file
@ -0,0 +1,28 @@
|
||||
{% extends "base.jinja" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title">{{ data['title'] }}</h1>
|
||||
{% set comma = joiner(",") %}
|
||||
{% for section in data['sections'] %}
|
||||
{{ comma() }} <a href="#">{{ section['title'] }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% for section in data['sections'] %}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h2 id="">{{ section['title'] }}</h2>
|
||||
<ul>
|
||||
{% for item in section['items'] %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
@ -1,4 +0,0 @@
|
||||
{% extends "base.jinja" %}
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user