Skip to content

Commit de18ed4

Browse files
Create default.html
1 parent 2c6ebdd commit de18ed4

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

docs/_layouts/default.html

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

0 commit comments

Comments
 (0)