Skip to content

Commit 956f7a9

Browse files
authored
Merge pull request #671 from hvdijk/rfcs-show-preamble
Include preamble in rendered HTML.
2 parents d834a30 + 9af18d8 commit 956f7a9

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

_layouts/default.html

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en-US" }}">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
{% seo %}
9+
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
10+
{% include head-custom.html %}
11+
</head>
12+
<body>
13+
<div class="container-lg px-3 my-5 markdown-body">
14+
{% if site.title and site.title != page.title %}
15+
<h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
16+
{% endif %}
17+
18+
<h1>{{ page.title }}</h1>
19+
20+
<table>
21+
<tbody>
22+
<tr>
23+
<th align="left">RFC</th>
24+
<td>{{ page.rfc | escape }}</td>
25+
</tr>
26+
<tr>
27+
<th align="left">Author</th>
28+
<td>{{ page.author | escape }}
29+
</tr>
30+
{% if page.sponsor %}
31+
<tr>
32+
<th align="left">Sponsor</th>
33+
<td>{{ page.sponsor | escape }}</td>
34+
</tr>
35+
{% endif %}
36+
{% if page.discussions-to %}
37+
<tr>
38+
<th align="left">Discussions-To</th>
39+
<td><a href="{{ page.discussions-to | escape }}">{{ page.discussions-to | escape }}</a></td>
40+
</tr>
41+
{% endif %}
42+
{% if page.status %}
43+
<tr>
44+
<th align="left">Status</th>
45+
<td>{{ page.status | escape }}</td>
46+
</tr>
47+
{% endif %}
48+
</tbody>
49+
</table>
50+
51+
{{ content }}
52+
53+
{% if site.github.private != true and site.github.license %}
54+
<div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
55+
This site is open source. {% github_edit_link "Improve this page" %}.
56+
</div>
57+
{% endif %}
58+
</div>
59+
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
60+
<script>anchors.add();</script>
61+
</body>
62+
</html>

0 commit comments

Comments
 (0)