forked from sampsyo/cs6120
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
54 lines (52 loc) · 1.77 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config.title }}{% if page.title %}: {{ page.title }}{% endif %}</title>
<link href="{{ get_url(path="main.css", trailing_slash=false) | safe }}" rel="stylesheet">
<link rel="alternate" type="application/rss+xml" href="{{ get_url(path="rss.xml", trailing_slash=false) | safe }}">
<link rel="icon" href="{{ get_url(path=config.extra.favicon, trailing_slash=false) | safe }}">
<link rel="apple-touch-icon-precomposed" href="{{ get_url(path=config.extra.bigicon, trailing_slash=false) | safe }}">
{% block header %}{% endblock header %}
</head>
<body>
<header>
<nav>
<h1>
<a href="{{ get_url(path="/") }}">{{ config.title }}</a>
</h1>
{% set pages = get_section(path="_index.md") %}
{% for page in pages.pages %}
{% if not page.extra.hide %}
<p><a href="{{ page.permalink | safe }}">
{{ page.title }}
</a></p>
{% endif %}
{% endfor %}
{% for link in config.extra.links %}
<p><a href="{{link.url | safe}}">{{link.name}}</a></p>
{% endfor %}
{% set blog = get_section(path="blog/_index.md") %}
<p><a href="{{ blog.permalink }}">
Blog
</a></p>
{% set projects = get_section(path="project/_index.md") %}
<p><a href="{{ projects.permalink }}">
Projects
</a></p>
</nav>
</header>
<main>
{% block main %}
Hello, world!
{% endblock main %}
</main>
<footer>
<p><a href="https://www.cornell.edu">Cornell University</a>
—
<a href="https://www.cs.cornell.edu">Department of Computer Science</a></p>
</footer>
</body>
</html>