File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Jekyll Minimal 主题网站
2+
3+ 这是一个基于 Jekyll Minimal 主题的 GitHub Pages 网站。
4+
5+
6+ ## 部署到 GitHub Pages
7+
8+ 1 . 将本仓库推送到 GitHub
9+ 2 . 在仓库设置中启用 GitHub Pages
10+ 3 . 选择 main 分支作为源
11+ 4 . 网站将 ` https://username.github.io ` 上线
12+
13+ ## 自定义
14+
15+ - 编辑 ` _config.yml ` 修改网站配置
16+ - 编辑 ` index.md ` 修改首页内容
17+ - 编辑 ` about.md ` 修改关于页面
18+ - 在 ` _posts ` 目录中添加新文章
Original file line number Diff line number Diff line change 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="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
12+ <![endif]-->
13+ {% include head-custom.html %}
14+ </ head >
15+ < body >
16+ < div class ="wrapper ">
17+ < header >
18+ < h1 > < a href ="{{ "/" | absolute_url }}"> {{ site.title | default: site.github.repository_name }}</ a > </ h1 >
19+
20+ {% if site.logo %}
21+ < img src ="{{site.logo | relative_url}} " alt ="Logo " />
22+ {% endif %}
23+
24+ < p > {{ site.description | default: site.github.project_tagline }}</ p >
25+
26+ {% if site.github.is_project_page %}
27+ < p class ="view "> < a href ="{{ site.github.repository_url }} "> View the Project on GitHub < small > {{ site.github.repository_nwo }}</ small > </ a > </ p >
28+ {% endif %}
29+
30+ {% if site.github.is_user_page %}
31+ < p class ="view "> < a href ="{{ site.github.owner_url }} "> View My GitHub Profile</ a > </ p >
32+ {% endif %}
33+
34+ {% if site.show_downloads %}
35+ < ul class ="downloads ">
36+ < li > < a href ="{{ site.github.zip_url }} "> Download < strong > ZIP File</ strong > </ a > </ li >
37+ < li > < a href ="{{ site.github.tar_url }} "> Download < strong > TAR Ball</ strong > </ a > </ li >
38+ < li > < a href ="{{ site.github.repository_url }} "> View On < strong > GitHub</ strong > </ a > </ li >
39+ </ ul >
40+ {% endif %}
41+ </ header >
42+ < section >
43+
44+ {{ content }}
45+
46+ </ section >
47+ < footer >
48+ {% if site.github.is_project_page %}
49+ < p > This project is maintained by < a href ="{{ site.github.owner_url }} "> {{ site.github.owner_name }}</ a > </ p >
50+ {% endif %}
51+ </ footer >
52+ </ div >
53+ < script src ="{{ "/assets/js/scale.fix.js" | relative_url }}"> </ script >
54+ </ body >
55+ </ html >
Original file line number Diff line number Diff line change 1+ ---
2+ layout: default
3+ ---
4+
5+ < small > {{ page.date | date: "%-d %B %Y" }}</ small >
6+ < h1 > {{ page.title }}</ h1 >
7+
8+ < p class ="view "> by {{ page.author | default: site.author }}</ p >
9+
10+ {{content}}
11+
12+ {% if page.tags %}
13+ < small > tags: < em > {{ page.tags | join: "</ em > - < em > " }}</ em > </ small >
14+ {% endif %}
You can’t perform that action at this time.
0 commit comments