generated from skills/github-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,3 @@ | ||
<header> | ||
# 个人网站的搭建仓库 | ||
|
||
<!-- | ||
<<< Author notes: Course header >>> | ||
Include a 1280×640 image, course title in sentence case, and a concise description in emphasis. | ||
In your repository settings: enable template repository, add your 1280×640 social image, auto delete head branches. | ||
Add your open source license, GitHub uses MIT license. | ||
--> | ||
|
||
# GitHub Pages | ||
|
||
_Create a site or blog from your GitHub repositories with GitHub Pages._ | ||
|
||
</header> | ||
|
||
<!-- | ||
<<< Author notes: Step 2 >>> | ||
Start this step by acknowledging the previous step. | ||
Define terms and link to docs.github.com. | ||
Historic note: previous version checked for empty pull request, changed to the correct theme `minima`. | ||
--> | ||
|
||
## Step 2: Configure your site | ||
|
||
_You turned on GitHub Pages! :tada:_ | ||
|
||
We'll work in a branch, `my-pages`, that I created for you to get this site looking great. :sparkle: | ||
|
||
Jekyll uses a file titled `_config.yml` to store settings for your site, your theme, and reusable content like your site title and GitHub handle. You can check out the `_config.yml` file on the **Code** tab of your repository. | ||
|
||
We need to use a blog-ready theme. For this activity, we will use a theme named "minima". | ||
|
||
### :keyboard: Activity: Configure your site | ||
|
||
1. Browse to the `_config.yml` file in the `my-pages` branch. | ||
1. In the upper right corner, open the file editor. | ||
1. Add a `theme:` set to **minima** so it shows in the `_config.yml` file as below: | ||
```yml | ||
theme: minima | ||
``` | ||
1. (optional) You can modify the other configuration variables such as `title:`, `author:`, and `description:` to further customize your site. | ||
1. Commit your changes. | ||
1. (optional) Create a pull request to view all the changes you'll make throughout this course. Click the **Pull Requests** tab, click **New pull request**, set `base: main` and `compare:my-pages`. | ||
1. Wait about 20 seconds then refresh this page (the one you're following instructions from). [GitHub Actions](https://docs.github.com/en/actions) will automatically update to the next step. | ||
|
||
<footer> | ||
|
||
<!-- | ||
<<< Author notes: Footer >>> | ||
Add a link to get support, GitHub status page, code of conduct, license link. | ||
--> | ||
|
||
--- | ||
|
||
Get help: [Post in our discussion board](https://github.com/orgs/skills/discussions/categories/github-pages) • [Review the GitHub status page](https://www.githubstatus.com/) | ||
|
||
© 2023 GitHub • [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md) • [MIT License](https://gh.io/mit) | ||
|
||
</footer> | ||
## 感谢github及其中文社区的教程 |