Skip to content

Commit 9569f21

Browse files
Create default.html
1 parent 7632947 commit 9569f21

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

_layouts/default.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-CN">
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+
10+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
11+
<!-- Google tag (gtag.js) -->
12+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
13+
<script>
14+
window.dataLayer = window.dataLayer || [];
15+
function gtag(){dataLayer.push(arguments);}
16+
gtag('js', new Date());
17+
gtag('config', '{{ site.google_analytics }}');
18+
</script>
19+
</head>
20+
21+
<body>
22+
23+
<section class="page-header">
24+
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
25+
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
26+
{% if site.github.is_project_page %}
27+
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
28+
{% endif %}
29+
{% if site.show_downloads %}
30+
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
31+
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
32+
{% endif %}
33+
</section>
34+
35+
<section class="main-content">
36+
{{ content }}
37+
</section>
38+
39+
</body>
40+
</html>

0 commit comments

Comments
 (0)