Commit 4612e735 authored by lunasorcery's avatar lunasorcery
Browse files

cement the meteoriks as a permanent fixture of the site, scrapping the...

cement the meteoriks as a permanent fixture of the site, scrapping the meteoriksVisible flag and adding pre-emptive text copy for 2022 jurors/nominations
parent 35cac780
<a name="{{slug}}" />
<div class="content-thing">
<a href="{{demozoo_url}}" style="display:block">
{{#meteoriks-visible}}
{{#meteorik-nominee}}
<div class="meteorik meteorik-nominee">Meteoriks {{meteorik-year}} Nominee</div>
{{/meteorik-nominee}}
{{#meteorik-winner}}
<div class="meteorik meteorik-winner">Meteoriks {{meteorik-year}} Winner</div>
{{/meteorik-winner}}
{{/meteoriks-visible}}
<div class="text">
<span class="author">{{author}}</span>
<br/>
......
......@@ -5,6 +5,7 @@ import json
import shutil
import chevron
import binascii
import datetime
def maybe_mkdir(path):
......@@ -18,10 +19,6 @@ def crc32_file(filename):
return f"{buf:08x}"
# nominees are up!
meteoriksVisible = True
# load prods
with open('prods.json') as file:
prods = json.load(file)
......@@ -111,7 +108,9 @@ for idx,prod in enumerate(prods):
sharedTemplate = {
'meteoriks-visible': meteoriksVisible,
'current-year': datetime.datetime.now().year,
'meteoriks-juror-application-open': False,
'meteoriks-nominations-open': False,
'hash-fonts-css': crc32_file('fonts.css'),
'hash-style-css': crc32_file('style.css'),
}
......@@ -124,12 +123,11 @@ with open('index.mustache', 'r') as f:
'page-gallery': True,
'entries': prods }))
if meteoriksVisible:
with open('meteoriks.mustache', 'r') as f:
with open('gen/meteoriks.html', 'w') as fout:
fout.write(chevron.render(f, sharedTemplate | {
'page-meteoriks': True,
'entries': meteorikProds }))
with open('meteoriks.mustache', 'r') as f:
with open('gen/meteoriks.html', 'w') as fout:
fout.write(chevron.render(f, sharedTemplate | {
'page-meteoriks': True,
'entries': meteorikProds }))
with open('about.mustache', 'r') as f:
with open('gen/about.html', 'w') as fout:
......
......@@ -24,8 +24,6 @@
<script src="script.js"></script>
<div class="navbar">
<a href="/" class="entry{{#page-gallery}} active{{/page-gallery}}">Gallery</a>
{{#meteoriks-visible}}
<a href="meteoriks.html" class="entry{{#page-meteoriks}} active{{/page-meteoriks}}">Meteoriks</a>
{{/meteoriks-visible}}
<a href="about.html" class="entry{{#page-about}} active{{/page-about}}">About</a>
</div>
......@@ -8,8 +8,18 @@
<a href="https://meteoriks.org/">The Meteoriks</a> are an award to honor the best productions that the demoscene has to offer, and are presented annually at the Revision demoparty over the Easter weekend.
</p>
<p>
Following a surge of activity in the Executable Graphics field, the Meteoriks introduced a Best Executable Graphics category in 2021. You can see the nominees and winner below.
Following a surge of activity in the Executable Graphics field, the Meteoriks introduced a category for Best Executable Graphics in 2021. You can see the nominees and winner below.
</p>
{{#meteoriks-juror-application-open}}
<p>
Applications to be a juror for the {{current-year}} Meteoriks are <a href="https://meteoriks.org/taking_part/juror">now open</a>!
</p>
{{/meteoriks-juror-application-open}}
{{#meteoriks-nominations-open}}
<p>
Public nominations for the {{current-year}} Meteoriks are now open - you can submit entries for the jurors' consideration through both <a href="https://www.pouet.net/">Pouët</a> and <a href="https://demozoo.org/">Demozoo</a>.
</p>
{{/meteoriks-nominations-open}}
</div>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment