rfcs/templates/index.html

65 lines
2.8 KiB
HTML

{%- import "partials/rfclist.html" as rfclist -%}
{%- import "partials/rfctoc.html" as rfctoc -%}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://tilde.team/css/hacker.css">
<link rel="stylesheet" href="{{ get_url(path="css/fork-awesome.css") }}">
<link rel="icon" type="image/png" sizes="96x96" href="{{ get_url(path="favicon-96x96.png") }}">
<title>{% block title %}tildeverse RFCs | {{ title | default(value='the tildeverse RFC system') }}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
{% block og %}
<meta property="og:title" content="tildeverse RFCs | {{ title | default(value=config.title) }}">
<meta property="og:url" content="{{ url | default(value=config.base_url) }}">
<meta property="og:description" content="{{ description | default(value=config.description) }}">
<meta property="og:image" content="{{ get_url(path="apple-icon.png") }}">
<meta property="og:site_name" content="tildeverse RFCs">
<meta property="og:type" content="website">
{% endblock %}
{% if config.generate_rss %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") }}">
{% endif %}
<style>
:target:before {
content:\"\";
display:block;
height:50px; /* fixed header height*/
margin:-50px 0 0; /* negative fixed header height */
}
.nav-menu {
font-weight: bold;
font-size: 2.5rem;
padding: 0.5rem;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.nav-menu > a { margin: 0.2rem 1.5rem; text-decoration: none; border-bottom: 1px solid; }
</style>
</head>
<body style="padding-top: 1rem;">
<header class="container header" style="text-align: center; font-size: 2rem;">
<nav class="nav-menu">
<a href="{{ config.base_url }}"><i class="fa fa-home"></i>&nbsp;Home</a>
<a href="{{ get_url(path="@/rfcs/_index.md") }}"><i class="fa fa-file-text"></i>&nbsp;RFCs</a>
<a href="{{ get_url(path="@/drafts/_index.md") }}"><i class="fa fa-commenting"></i>&nbsp;Drafts</a>
<a href="https://tildegit.org/tildeverse/rfcs"><i class="fa fa-code-fork"></i>&nbsp;Git</a>
</nav>
</header>
<div class="container">
{% block main %}
{{ section.content | safe }}
<h1>Latest RFCs</h1>
{{ rfclist::from(name="rfcs", max=config.extra.home_entries|default(value=0)) }}
{% endblock %}
</div>
<br>
<br>
</div>
</body>
</html>