Create a website from a json.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

54 lines
1.7 KiB

<!DOCTYPE html>
<html data-darkreader-mode="dynamic" data-darkreader-scheme="dark" lang="fr-FR">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="main.css" type="text/css" />
<link href="./static/bootstrap.css" rel="stylesheet"/>
<title>{{ config.name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=0.6" />
<link rel="icon" type="image/x-icon" href="{{ config.favicon }}" />
</head>
<body>
<nav class="navbar sticky-top navbar-light bg-light">
{% for category in config.categories %}
<a class="nav-link" href="#{{ category.id }}"> {{ category.name }} </a>
{% endfor %}
</nav>
{% for category in config.categories %}
<div class="container-xxl px-5 py-5">
<h1 class="pb-2 border-bottom" id="{{ category.id }}">
{{ category.name }}
</h1>
<div class="flex-container">
{% for item in category.content %}
<div class="flex-item">
<a
class="item-{{ category.id }}"
href="{{ item.url }}"
target="_blank"
rel="noopener noreferrer"
>
<img src="{{ item.image }}" alt="{{ item.name }}" />
<div class="desc"><h3>{{ item.name }}</h3></div>
</a>
</div>
{% endfor %}
</div>
</div>
<div class="b-example-divider"></div>
{% endfor %}
</body>
<footer class="bg-light text-center text-lg-start">
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.2)">
Auto genrated with
<a
class="text-dark"
style="text-decoration: none"
href="https://git.rezel.net/Rezel/rezelator"
>rezelator</a
>!
</div>
</footer>
</html>