Skip to content

Commit 1642701

Browse files
committed
Add spellcheck job and fix spelling
1 parent bf7bc2d commit 1642701

File tree

10 files changed

+111
-49
lines changed

10 files changed

+111
-49
lines changed

.github/data/project-dictionary.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
personal_ws-1.1 en 1000 utf-8
2+
Axel
3+
CDNs
4+
Disqus
5+
Ecole
6+
FreeFont
7+
GPLv
8+
Gopherfest
9+
Hollandish
10+
LoveIt
11+
Mononoki
12+
Notrack
13+
OFL
14+
Oxelstierna
15+
Parision
16+
SIL
17+
Vimeo
18+
YouTube
19+
backticks
20+
blockquote
21+
blockquotes
22+
boxsocial
23+
de
24+
endnotes
25+
fn
26+
ipsum
27+
kbd
28+
localhost
29+
lorem
30+
monospace
31+
pensionary
32+
pixelated
33+
shortcode
34+
shortcodes
35+
shortname
36+
strikethrough
37+
subdirectory
38+
tos
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
1 {
2+
/^[-+]\{3\}$/ {
3+
:a
4+
N
5+
/\n[-+]\{3\}$/!ba
6+
d
7+
}
8+
}
9+
/Xerum/d
10+
/Quiatae cullecum/d
11+
/andaepu dandae/d
12+
/Repudiandae in pariatur/,/exercitationem libero/d
13+
/{{< highlight html >}}/,/{{< \/highlight >}}/d
14+
s/{{<.*>}}//g

.github/workflows/check.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ on:
66
branches: ["master"]
77

88
jobs:
9+
spellcheck:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: gevhaz/word-warden@v1.0.0
13+
with:
14+
preprocessing_script: .github/scripts/preprocess-for-spellchecking.sed
15+
files: "**/!(tempora-maxime|lorem|id-modi|LICENSE).md"
16+
917
build:
1018
runs-on: ubuntu-latest
1119
env:

README.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $ hugo server -D --themesDir ../..
6363
You can now see the example website in your browser and interact with it. Hugo
6464
will print instructions for what address to use. Usually it is `http://localhost:1313/`.
6565

66-
# Example site `config`
66+
# Example site configuration file
6767

6868
Here is a working `config.yaml`:
6969

@@ -110,19 +110,19 @@ paginate = 4
110110

111111
| Category | Shortcode | Description |
112112
| :--- | :--- | :--- |
113-
| **Contact info** | contact-box | Displays contact info set in params.social |
114-
| | social | Displays contact info set in params.social |
115-
| **Photo Gallery** | gallery-category | Container for gallery-photo shortcodes |
116-
| | gallery-modal | HTML to allow for full page view of gallery photos |
117-
| | gallery-photo | Include a photo in a gallery |
118-
| | gallery-script | Script to allow for full page view of gallery photos |
119-
| **General** | image | Image for use in any page. See example in [How to create a blog](#user-content-how-to-create-a-blog) |
120-
| | video | Similar to an ordinary <video> html tag but with a CSS class to make it look good in posts |
121-
| | rawhtml | For including raw html without the global unsafe option for Goldmark |
122-
| **Resume** | container | Container for resume shortcodes |
123-
| | resume-entry | One entry in a resume (e.g. a university degree) |
124-
| | resume-section | One section in resume (e.g. "Education") |
125-
| | resume-subcategory | Creates a heading within a section of the resume |
113+
| **Contact info** | `contact-box` | Displays contact info set in `params.social` |
114+
| | `social` | Displays contact info set in `params.social` |
115+
| **Photo Gallery** | `gallery-category` | Container for `gallery-photo` shortcodes |
116+
| | `gallery-modal` | HTML to allow for full page view of gallery photos |
117+
| | `gallery-photo` | Include a photo in a gallery |
118+
| | `gallery-script` | Script to allow for full page view of gallery photos |
119+
| **General** | `image` | Image for use in any page. See example in [How to create a blog](#how-to-create-a-blog) |
120+
| | `video` | Similar to an ordinary `<video>` HTML tag but with a CSS class to make it look good in posts |
121+
| | `rawhtml` | For including raw HTML without the global unsafe option for Goldmark |
122+
| **Resume** | `container` | Container for resume shortcodes |
123+
| | `resume-entry` | One entry in a resume (e.g. a university degree) |
124+
| | `resume-section` | One section in resume (e.g. "Education") |
125+
| | `resume-subcategory` | Creates a heading within a section of the resume |
126126

127127
Most of the shortcodes are explained in more detail in their respective
128128
sections below. I explain the other two here.
@@ -133,8 +133,8 @@ sections below. I explain the other two here.
133133
{{< rawhtml >}}<p>A paragraph</p>{{< /rawhtml >}}
134134
```
135135

136-
This allows you to use html to create elements that you can't create
137-
with just markdown without allowing unsafe html in the site `config`.
136+
This allows you to use HTML to create elements that you can't create
137+
with just markdown without allowing unsafe HTML in the site configuration file.
138138
I'm not a security expert, and there might be a good reason why unsafe HTML
139139
is disabled by default. If you think this shortcode shouldn't be part of
140140
the theme, feel free to open an issue and say why.
@@ -146,8 +146,8 @@ class that I've added some styling for. Use it like this:
146146
{{< video src="your_video.mp4" type="video/mp4" preload="auto" >}}
147147
```
148148

149-
Your video needs to be in the `static` folder or a subfolder of it such
150-
as "video" (in which case you'd add the subfolder in the `src`
149+
Your video needs to be in the `static` folder or a subdirectory of it such
150+
as "video" (in which case you'd add the subdirectory in the `src`
151151
parameter.
152152

153153
## User CSS
@@ -170,7 +170,7 @@ menu:
170170
---
171171
```
172172

173-
Don't use the site `config` to add menus because then the highlighting
173+
Don't use the site configuration file to add menus because then the highlighting
174174
of active tabs might not work (at least not if drop-down menus are involved).
175175

176176
### How to add a page to drop down menu
@@ -180,9 +180,9 @@ Quick instruction: Set it's `parent` parameter to one of the menus in
180180

181181
Instructions with example:
182182

183-
1. Create the top-level menu in config.yaml or your equivalent. An
183+
1. Create the top-level menu in `config.yaml` or your equivalent. An
184184
example where the top-level menu doesn't correspond to a real page
185-
(url is #) and is just there to hold the drop-down menu:
185+
(`url` is #) and is just there to hold the drop-down menu:
186186

187187
```yaml
188188
menu:
@@ -237,9 +237,9 @@ params:
237237
```
238238

239239
If you don't want to show the latest posts from your blog at the bottom
240-
of the home page, set `showBlogLatest` to false in your site `config`.
240+
of the home page, set `showBlogLatest` to false in your site configuration file.
241241
You may also want to change the number of posts shown (default: 3) and
242-
the heading above it (default "Latest from the blog") In config.yaml, it
242+
the heading above it (default "Latest from the blog") In `config.yaml`, it
243243
would look like this:
244244

245245
```yaml
@@ -294,7 +294,7 @@ populate the top of the homepage, like in the Hugo Basic Example.
294294
For those of you who do the third step, there is an option available to
295295
remove the buttons with links to the archive (if you have an archives
296296
page, see step 3), tags and category pages from the top of the blog list
297-
page. Just set the following in your site `config`:
297+
page. Just set the following in your site configuration file:
298298

299299
```yaml
300300
params:
@@ -317,13 +317,13 @@ on that category or tag in any post instead, and you can link to
317317
You can add images just as for the home page. Available options are those of the
318318
built in `figure` shortcode of Hugo, and additionally:
319319

320-
| Parameter name | Allowed Values |
321-
| :--- | :--- |
322-
| `float` | right/left |
323-
| `frame` | true/false/leave out |
324-
| `wide` | true/false |
325-
| `width` | e.g. 10em, 50%, 70px |
326-
| `height` | e.g. 10em, 50%, 70px |
320+
| Parameter name | Allowed Values |
321+
| :--- | :--- |
322+
| `float` | right/left |
323+
| `frame` | true/false/leave out |
324+
| `wide` | true/false |
325+
| `width` | e.g. `10em`, `50%`, `70px` |
326+
| `height` | e.g. `10em`, `50%`, `70px` |
327327

328328
A difference from the built in shortcode is that width and height are for the
329329
outer `<figure>` element. This allows text to wrap around the picture if you set
@@ -341,7 +341,7 @@ can enable it if you want.
341341

342342
Disqus is implemented the [default Hugo
343343
way](https://gohugo.io/content-management/comments/#add-disqus) so just
344-
add your Disqus Shortname in the site `config` and all blog posts will
344+
add your Disqus Shortname in the site configuration file and all blog posts will
345345
have a comments section.
346346

347347
## How to create a gallery
@@ -379,7 +379,7 @@ And place corresponding full-size images under `static/img/fullsize`.
379379
The file names need to be the same as for the thumbnails.
380380

381381
Thumbnails should of course be small so that your page loads fast and
382-
fullsize should be large enough that they don't look pixelated when
382+
full-size should be large enough that they don't look pixelated when
383383
covering the full space of a web browser. One way to resize images is
384384
with (graphicsmagick)[http://www.graphicsmagick.org/]: `gm mogrify
385385
-resize 1920x1920 *.jpg`, which will resize all images in the current
@@ -449,8 +449,8 @@ links to your social media or other contact info on the rights side of the page,
449449
want, some text on the left side of the box, outside the frame. Put this
450450
text within the shortcode tags.
451451

452-
You decide what social media to include in your site `config` under
453-
social under params, like this:
452+
You decide what social media to include in your site configuration file under
453+
`social` under `params`, like this:
454454

455455
```yaml
456456
params:
@@ -476,7 +476,7 @@ parameters defaults to floating to the right, the width defaults to
476476

477477
# How to set a footer
478478

479-
If you want to add a footer to your webpage, you can use the `footer`
479+
If you want to add a footer to your web page, you can use the `footer`
480480
key in your configuration, e.g:
481481

482482
```yaml
@@ -495,9 +495,9 @@ included in the theme files, so you'll homepage will serve the
495495
resources.
496496

497497
Some of the fonts under `static/fonts` are parts of the project [GNU
498-
FreeFont](https://www.gnu.org/software/freefont/). They are licenced
498+
FreeFont](https://www.gnu.org/software/freefont/). They are licensed
499499
under "GPLv3 or later". Licenses are also supposed to be included in the
500-
.woff files themselves. Some of the fonts are edited by me to take up
500+
`.woff` files themselves. Some of the fonts are edited by me to take up
501501
less space by including fewer characters.
502502

503503
The monospace font in the same directory, used for code in the theme, is
@@ -507,9 +507,9 @@ SIL OFL 1.1
507507

508508
The icons used for the `contact-box` and `social` shortcodes are from
509509
[Font Awesome](https://github.com/FortAwesome/Font-Awesome) project.
510-
It's licence is SIL OFL 1.1
510+
It's license is SIL OFL 1.1
511511
([https://scripts.sil.org/OFL](https://scripts.sil.org/OFL)). A HTML
512-
comment is included in the contact-box shortcode to show the licence and
512+
comment is included in the contact-box shortcode to show the license and
513513
source.
514514

515515
For matching the icons from Font Awesome with names for various social

exampleSite/content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Hello, I'm Hugo Grotius and this is my personal page. I'm a Dutch lawyer and
1414
diplomat with experience from academia and government, having published a large
1515
number of books on international law, sometimes even being called the "father"
1616
of this field of study. I have experience working as a diplomat from serving as
17-
the Swedish Ambassdor to France. For a more comprehensive list of my experience,
17+
the Swedish Ambassador to France. For a more comprehensive list of my experience,
1818
see the [Resume]({{< ref "resume.md" >}}) tab.
1919

2020
After having been wrongfully convicted of treason in the Netherlands and

exampleSite/content/blog/markdown-syntax.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = [
1414
"syntax",
1515
]
1616
series = ["Themes Guide"]
17-
aliases = ["migrate-from-jekyl"]
17+
aliases = ["migrate-from-jekyll"]
1818
+++
1919

2020
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.
@@ -86,6 +86,7 @@ html
8686
</body>
8787
</html>
8888
```
89+
8990
#### Code block indented with four spaces
9091

9192
<!DOCTYPE html>
@@ -100,6 +101,7 @@ html
100101
</html>
101102

102103
#### Code block with Hugo's internal highlight shortcode
104+
103105
{{< highlight html >}}
104106
<!DOCTYPE html>
105107
<html lang="en">
@@ -133,7 +135,7 @@ html
133135
1. First Sub-item
134136
2. Second Sub-item
135137

136-
## Other Elements — abbr, sub, sup, kbd, mark
138+
## Other Elements — `abbr`, `sub`, `sup`, `kbd`, `mark`
137139

138140
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
139141

exampleSite/content/blog/rich-content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags = [
99
]
1010
+++
1111

12-
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
12+
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Configuration](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and JavaScript free versions of various social media embeds.
1313
<!--more-->
1414
---
1515

exampleSite/content/hugo-gallery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ menu:
1010
# What I look like
1111

1212
Here are some pictures of pictures or statues of me, all in the public domain by
13-
either age or by the use of Creative Commons CC0 licence.
13+
either age or by the use of Creative Commons CC0 license.
1414

1515
{{< gallery-category >}}
1616
{{< gallery-photo fn="hugo1.jpg" caption="Clay figure of me" >}}

exampleSite/content/resume.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ menu:
1212
{{% resume-section title="About Me" %}}
1313
My career has been a series of ups and downs, starting out as a child
1414
prodigy, getting involved in religious sectarianism which earned me a
15-
life sentence, which I fortuantely were able to circumvent, followed by
16-
presitigous academic and diplomatic roles and finally by barely surving being
15+
life sentence, which I fortunately were able to circumvent, followed by
16+
prestigious academic and diplomatic roles and finally by barely surviving being
1717
shipwrecked.
1818
{{% /resume-section %}}
1919
{{< resume-section title="Experience" >}}
20-
{{< resume-entry what="Swedish Ambassdor to France"
20+
{{< resume-entry what="Swedish Ambassador to France"
2121
where="Paris"
2222
when="1634–1645" >}}
2323
<ul>

layouts/shortcodes/social.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
</div>
2626
{{ end }}
2727

28-
{{ printf "<!-- Icons are from Awesome Font, licenced under SIL OFL 1.1 (https://scripts.sil.org/OFL) -->" | safeHTML }}
28+
{{ printf "<!-- Icons are from Awesome Font, licensed under SIL OFL 1.1 (https://scripts.sil.org/OFL) -->" | safeHTML }}

0 commit comments

Comments
 (0)