Skip to content

Commit f11018c

Browse files
author
ma.jinyun
committed
update ubuntu-latest
1 parent 6546f27 commit f11018c

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.github/._workflows

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
deploy:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
1313
with:

.github/workflows/_gh-pages.yml_test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
deploy:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
1313
with:

.github/workflows/gp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717
shell: bash
1818
jobs:
1919
build:
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-latest
2121
env:
2222
HUGO_VERSION: 0.99.0
2323
steps:
@@ -49,7 +49,7 @@ jobs:
4949
environment:
5050
name: github-pages
5151
url: ${{ steps.deployment.outputs.page_url }}
52-
runs-on: ubuntu-20.04
52+
runs-on: ubuntu-latest
5353
needs: build
5454
steps:
5555
- name: Deploy to GitHub Pages

themes/hugo-theme-ladder/exampleSite/content/blog/how-to-create-your-blog-for-free-by-hugo-ladder-in-30min.en.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This article is the second in a series on how to create you blog by hugo ladder
1414

1515
### why choose hugo
1616

17-
Most websites today fall into two categories - dynamic websites and static websites. Dynamic websites are server-based(or serverless), which can return different content depending on the user. They rely on a content management system (CMS) or database for rendering. So you need to pay for server costs.
17+
Most websites today fall into two categories - dynamic websites and static websites. Dynamic websites are server-based(or serverless), which can return different content depending on the user. They rely on a content management system (CMS) or database for rendering. So you need to pay for server costs.
1818

1919
Static sites generally display the same content to all users. They use server-side rendering to serve HTML, CSS, and Javascript files, which use static site generators (SSG) technology to display the same content to all users. The advantages of a static site include speed, security and SEO. it is also easy to maintain and highly scalable. Since Static Site Generators (SSG) store an already compiled page on a CDN, they load much faster.
2020

@@ -186,7 +186,7 @@ First we find the `default.md` file in the `archetypes` folder in the root direc
186186

187187
```markdown
188188
---
189-
title:
189+
title:
190190
date: {{ .Date }}
191191
tags: []
192192
series: []
@@ -214,7 +214,7 @@ Once created, you can use `hugo server -D` to build and run the blog and open `h
214214

215215
### multi language support
216216

217-
First, we need to determine which language is the default language of the blog website. Is it multi-language support? For example, `defaultContentLanguage` needs to be set to `en` if the default language is English. If the default language is Chinese it is `zh`.
217+
First, we need to determine which language is the default language of the blog website. Is it multi-language support? For example, `defaultContentLanguage` needs to be set to `en` if the default language is English. If the default language is Chinese it is `zh`.
218218

219219
In addition, if you don't need multi-language support, set `params.options.enableMultiLang` to `false`, and delete the other language configuration which below the `languages`.
220220

@@ -257,7 +257,7 @@ New social icons can be added by modifying the configuration file, the `params.s
257257
If you create a new posts, it is recommended to fill the configuration which means:
258258

259259
```markdown
260-
title:
260+
title:
261261
date: {{ .Date }}
262262
tags: []
263263
series: []
@@ -334,7 +334,7 @@ on:
334334
335335
jobs:
336336
deploy:
337-
runs-on: ubuntu-20.04
337+
runs-on: ubuntu-latest
338338
steps:
339339
- uses: actions/checkout@v2
340340
with:
@@ -352,8 +352,8 @@ jobs:
352352
353353
- name: Deploy
354354
uses: peaceiris/actions-gh-pages@v3
355-
# If you're changing the branch from main,
356-
# also change the `main` in `refs/heads/main`
355+
# If you're changing the branch from main,
356+
# also change the `main` in `refs/heads/main`
357357
# below accordingly.
358358
if: github.ref == 'refs/heads/main'
359359
with:

themes/hugo-theme-ladder/exampleSite/content/blog/zh/how-to-create-your-blog-for-free-by-hugo-ladder-in-30min.zh.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ taxonomies:
209209

210210
```markdown
211211
---
212-
title:
212+
title:
213213
date: {{ .Date }}
214214
tags: []
215215
series: []
@@ -292,7 +292,7 @@ params:
292292
每一次写文章建议填写的配置(也可以不填),文章开头有这个几个字段,分别代表着
293293

294294
```markdown
295-
title:
295+
title:
296296
date: {{ .Date }}
297297
tags: []
298298
series: []
@@ -371,7 +371,7 @@ on:
371371
372372
jobs:
373373
deploy:
374-
runs-on: ubuntu-20.04
374+
runs-on: ubuntu-latest
375375
steps:
376376
- uses: actions/checkout@v2
377377
with:
@@ -389,8 +389,8 @@ jobs:
389389
390390
- name: Deploy
391391
uses: peaceiris/actions-gh-pages@v3
392-
# If you're changing the branch from main,
393-
# also change the `main` in `refs/heads/main`
392+
# If you're changing the branch from main,
393+
# also change the `main` in `refs/heads/main`
394394
# below accordingly.
395395
if: github.ref == 'refs/heads/main'
396396
with:

0 commit comments

Comments
 (0)