Skip to content

Commit a8e4c01

Browse files
JupiterXueJupiterXue
JupiterXue
authored and
JupiterXue
committed
Update blog themes to blog-awesome
0 parents  commit a8e4c01

File tree

786 files changed

+130987
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

786 files changed

+130987
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy Hugo
2+
3+
on:
4+
push:
5+
branches:
6+
[main] # 主分支源代码新触发
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
14+
- name: Setup Hugo
15+
uses: peaceiris/actions-hugo@v2
16+
with:
17+
hugo-version: latest
18+
extended: true
19+
20+
- name: Build
21+
run: hugo
22+
23+
- name: Deploy
24+
uses: peaceiris/actions-gh-pages@v3
25+
with:
26+
personal_token: ${{ secrets.PRESONAL_TOKEN }} # TOKEN 这里新建一个 https://github.com/settings/tokens
27+
PUBLISH_BRANCH: gh-pages # 推送到当前 gh-pages 分支
28+
PUBLISH_DIR: ./public # hugo 生成到 public 作为跟目录
29+
commit_message: ${{ github.event.head_commit.message }}

.github/workflows/review.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: reviewdog
2+
on: [pull_request]
3+
jobs:
4+
misspell:
5+
name: runner / misspell
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out code.
9+
uses: actions/checkout@v1
10+
- name: misspell
11+
uses: reviewdog/action-misspell@v1
12+
with:
13+
github_token: ${{ secrets.PERSONAL_TOKEN }}
14+
locale: "zh_CN"

.hugo_build.lock

Whitespace-only changes.

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/myblog.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

archetypes/default.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
date = '{{ .Date }}'
2+
draft = true
3+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'

assets/Jupiter.jpg

157 KB
Loading

assets/avatar.jpg

85.7 KB
Loading

assets/木星.png

38.8 KB
Loading

blog_update_log.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2024-10-17
2+
1. 更换主题为 blog-awesome
3+
2. 集成 github actions,自动部署。

content/en/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: "Home"
3+
author : "Hugo Authors"
4+
---

content/en/pages/about.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: About
3+
description: 'Hugo, the world''s fastest framework for building websites'
4+
author: Hugo Authors
5+
---
6+
7+
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
8+

content/en/posts/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: "Posts"
3+
---
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Emoji Support
3+
date: 2023-02-01
4+
author: Hugo Authors
5+
description: Guide to emoji usage in Hugo
6+
tags:
7+
- emoji
8+
---
9+
10+
Emoji can be enabled in a Hugo project in a number of ways.
11+
<!--more-->
12+
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
13+
14+
To enable emoji globally, set `enableEmoji` to `true` in your site's `hugo.toml`. You can type emoji shorthand codes directly in content files; e.g.
15+
16+
`:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil:
17+
18+
I :heart: Hugo! 😁
19+
20+
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
21+
22+
***
23+
24+
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
25+
26+
{{< highlight css >}}
27+
.emoji {
28+
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
29+
}
30+
{{< /highlight >}}
31+
32+
{{< css.inline >}}
33+
<style>
34+
.emojify {
35+
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
36+
font-size: 2rem;
37+
vertical-align: middle;
38+
}
39+
@media screen and (max-width:650px) {
40+
.nowrap {
41+
display: block;
42+
margin: 25px 0;
43+
}
44+
}
45+
</style>
46+
{{< /css.inline >}}
17.8 KB
Loading
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
---
2+
title: Markdown Syntax Guide
3+
date: 2023-02-11
4+
author: Hugo Authors
5+
description: Sample article showcasing basic Markdown syntax and formatting for HTML elements.
6+
isStarred: true
7+
---
8+
9+
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
10+
<!--more-->
11+
12+
## Headings
13+
14+
The following HTML `<h1>``<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
15+
16+
# H1
17+
18+
## H2
19+
20+
### H3
21+
22+
#### H4
23+
24+
##### H5
25+
26+
###### H6
27+
28+
## Paragraph
29+
30+
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
31+
32+
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
33+
34+
## Image
35+
36+
You can use the following syntax to include an image. Path of the image should be relative to the `index.md` file.
37+
38+
```markdown
39+
![Landscape](1.jpg)
40+
```
41+
42+
![Landscape](1.jpg)
43+
44+
You can also include image from external sources.
45+
46+
```markdown
47+
![Image](https://source.unsplash.com/random/600x400/?tech)
48+
```
49+
50+
![Image](https://source.unsplash.com/random/600x400/?tech)
51+
52+
## Blockquotes
53+
54+
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
55+
56+
### Blockquote without attribution
57+
58+
> You can use Markdown syntax within a blockquote, like **bold**, _italics_, [links](https://gohugo.io/), `code`.
59+
60+
### Blockquote with attribution
61+
62+
> Don't communicate by sharing memory, share memory by communicating.<br>
63+
> — <cite>Rob Pike[^1]</cite>
64+
65+
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
66+
67+
## Tables
68+
69+
Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box.
70+
71+
Name | Age
72+
--------|------
73+
Bob | 27
74+
Alice | 23
75+
76+
### Markdown within tables
77+
78+
| Italics | Bold | Code |
79+
| -------- | -------- | ------ |
80+
| *italics* | **bold** | `code` |
81+
82+
## Code Blocks
83+
84+
### Code block with backticks
85+
86+
```html
87+
<!doctype html>
88+
<html lang="en">
89+
<head>
90+
<meta charset="utf-8">
91+
<title>Example HTML5 Document</title>
92+
</head>
93+
<body>
94+
<p>Test</p>
95+
</body>
96+
</html>
97+
```
98+
99+
### Code block indented with four spaces
100+
101+
<!doctype html>
102+
<html lang="en">
103+
<head>
104+
<meta charset="utf-8">
105+
<title>Example HTML5 Document</title>
106+
</head>
107+
<body>
108+
<p>Test</p>
109+
</body>
110+
</html>
111+
112+
### Code block with Hugo's internal highlight shortcode
113+
114+
{{< highlight html >}}
115+
<!doctype html>
116+
<html lang="en">
117+
<head>
118+
<meta charset="utf-8">
119+
<title>Example HTML5 Document</title>
120+
</head>
121+
<body>
122+
<p>Test</p>
123+
</body>
124+
</html>
125+
{{< /highlight >}}
126+
127+
### Inline code
128+
129+
Use the backtick to refer to a `variable` within a sentence.
130+
131+
## List Types
132+
133+
### Ordered List
134+
135+
1. First item
136+
2. Second item with some `code` in it
137+
3. Third item
138+
139+
### Unordered List
140+
141+
* List item
142+
* Another item with some `code` in it
143+
* And another item
144+
145+
### Nested list
146+
147+
* Fruit
148+
* Apple
149+
* Orange
150+
* Banana
151+
* Dairy
152+
* Milk
153+
* Cheese
154+
155+
## Other Elements — abbr, sub, sup, kbd, mark
156+
157+
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
158+
159+
H<sub>2</sub>O
160+
161+
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
162+
163+
Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
164+
165+
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
author: Hugo Authors
3+
title: Math Typesetting - use Mathematical notation in blog posts
4+
date: 2023-04-01
5+
description: A brief guide to setup KaTeX
6+
math: true
7+
---
8+
9+
Mathematical notation in a Hugo project can be enabled by using
10+
[third party JavaScript libraries](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html).
11+
12+
<!--more-->
13+
14+
In this example we will be using [KaTeX](https://katex.org/).
15+
16+
- To enable KaTeX globally, set the parameter `math` to `true` in a project's
17+
configuration file as follows.
18+
- `hugo.toml`
19+
```toml
20+
[params]
21+
math = true
22+
```
23+
- `hugo.yaml`
24+
```yaml
25+
params:
26+
math: true
27+
```
28+
- To enable KaTeX on a per page basis, include the parameter `math: true` in
29+
Front Matter of Markdown content file as follows.
30+
31+
```
32+
---
33+
math: true
34+
---
35+
```
36+
37+
**Note:** The online reference of
38+
[Supported TeX Functions](https://katex.org/docs/supported.html) is a helpful resource.
39+
40+
### Examples
41+
42+
- Block math:
43+
44+
$$
45+
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
46+
$$
47+
48+
- Inline math:
49+
50+
This is an inline polynomial: $5x^2 + 2y -7$.

0 commit comments

Comments
 (0)