Skip to content

Commit 3fb2bf1

Browse files
committed
updates theme’s default layout
1 parent 9bc8e12 commit 3fb2bf1

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

_layouts/default.html

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ 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+
<!--[if lt IE 9]>
11+
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
12+
<![endif]-->
13+
</head>
14+
<body>
15+
<div class="wrapper">
16+
<header>
17+
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
18+
19+
{% if site.logo %}
20+
<img src="{{site.logo | relative_url}}" alt="Logo" />
21+
{% endif %}
22+
23+
<p>{{ site.description | default: site.github.project_tagline }}</p>
24+
25+
{% if site.github.is_project_page %}
26+
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
27+
{% endif %}
28+
29+
{% if site.github.is_user_page %}
30+
<p class="view"><a href="{{ site.github.owner_url }}">GitHub</a></p>
31+
{% endif %}
32+
33+
{% if site.show_downloads %}
34+
<ul class="downloads">
35+
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
36+
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
37+
<li><a href="{{ site.github.repository_url }}"> <strong>GitHub</strong></a></li>
38+
</ul>
39+
{% endif %}
40+
</header>
41+
<section>
42+
43+
{{ content }}
44+
45+
</section>
46+
<footer>
47+
{% if site.github.is_project_page %}
48+
<p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
49+
{% endif %}
50+
<p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
51+
</footer>
52+
</div>
53+
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
54+
{% if site.google_analytics %}
55+
<script>
56+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
57+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
58+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
59+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
60+
ga('create', '{{ site.google_analytics }}', 'auto');
61+
ga('send', 'pageview');
62+
</script>
63+
{% endif %}
64+
</body>
65+
</html>

0 commit comments

Comments
 (0)