diff --git a/generate.py b/generate.py index 2a8292b56..6cec8e420 100644 --- a/generate.py +++ b/generate.py @@ -7,6 +7,7 @@ from dataclasses import dataclass, asdict from datetime import datetime, timezone from pathlib import Path +from shutil import copyfile from git import Repo from jinja2 import Environment, FileSystemLoader @@ -104,10 +105,12 @@ class LanguageProjectData: generation_time=generation_time, duration=(datetime.now(timezone.utc) - generation_time).seconds, ) + related = env.get_template('related.html.jinja').render() - Path('build/style.css').write_bytes(Path('src/style.css').read_bytes()) - Path('build/logo.png').write_bytes(Path('src/logo.png').read_bytes()) + copyfile('src/style.css', 'build/style.css') + copyfile('src/logo.png', 'build/logo.png') Path('build/index.html').write_text(index) + Path('build/related.html').write_text(related) Path('build/index.json').write_text( json.dumps([asdict(project) for project in completion_progress], indent=2) diff --git a/src/style.css b/src/style.css index f374c6dff..bdffd46be 100644 --- a/src/style.css +++ b/src/style.css @@ -40,6 +40,9 @@ body { .navbar-brand a { text-decoration: none; outline-offset: 8px; + font-size: 1.25rem; + font-weight: 700; + color: #4a4a4a; } .nav-link svg { diff --git a/templates/base.html.jinja b/templates/base.html.jinja index 7f271c110..028dd36ca 100644 --- a/templates/base.html.jinja +++ b/templates/base.html.jinja @@ -19,7 +19,7 @@ @@ -49,6 +49,14 @@ Translating + diff --git a/templates/related.html.jinja b/templates/related.html.jinja new file mode 100644 index 000000000..6b80d9f49 --- /dev/null +++ b/templates/related.html.jinja @@ -0,0 +1,12 @@ +{% extends "base.html.jinja" %} + +{% block main %} +

Related projects:

+ +{% endblock %}