| [在線演示] [简体中文 | English | Deutsche] |
這個項目包含我主頁的源代碼. 基於 GitHub 官方主題之一 minimal 創建
如果您喜歡這個項目,歡迎您使用和分享
只要在你的項目中添加如下內容的_config.yml文件,GitHub Pages 服務就會使用該主題部署網頁:
remote_theme: yaoyao-liu/minimal-light
請注意:添加上述內容到你的項目,會直接應用這個倉庫的所有的默認設置。
如果你希望編輯任何文件(例如:index.md),你仍需要把該文件拷貝到你的項目中。
你也可以直接 fork 這個倉庫(或者使用這個倉庫作為模板),然後把名字改為your-username.github.io.
然後,你可以根據這裡的說明開啟這個倉庫的GitHub Pages服務。
克隆這個項目:
git clone https://github.com/yaoyao-liu/minimal-light.git
cd minimal-light
安裝並運行:
bundle install
bundle exec jekyll server
在localhost預覽網頁:
http://localhost:4000.
你可以在_site文件夾中找到 html 文件.
Minimal Light 主題有以下的變量, 你可以在_config.yml文件中修改:
# 基本信息
title: 你的名字
position: Ph.D. Student
affiliation: 你的單位
email: yourname (at) example.edu
# 搜索引擎優化 (SEO)
keywords: minimal light
description: 在這裡輸入網頁描述.
canonical: https://minimal-light-theme.yliu.me/
# 鏈接
google_scholar: https://scholar.google.com/
cv_link: files/Curriculum_Vitae.pdf
github_link: https://github.com/
linkedin: https://www.linkedin.com/
twitter: https://twitter.com/
# 圖片路徑
avatar: ./assets/img/avatar.png
favicon: ./assets/img/favicon.png
favicon_dark: ./assets/img/favicon-dark.png
# Google Analytics ID
google_analytics: UA-111540567-4
index.md創建index.md並添加你的個人信息(如:發表的論文,研究課題等).
如果你需要修改網頁的風格(基於 CSS):
/assets/css/style.scss文件在該文件的頂端加入如下內容:
---
---
@import "minimal-light";
@import那一行添加自定義 CSS (或 Sass)格式如果你需要修改網頁的 html 樣式:
/_layouts/homepage.html文件這個項目使用 Creative Commons Zero v1.0 Universal 許可證.
我們的項目用到了以下項目的源代碼: