fix: typos across codebase (#543)

This commit is contained in:
Viktor Szépe
2025-06-20 12:10:07 +02:00
committed by GitHub
parent bd2f335c3c
commit 9ee01aafa2
8 changed files with 42 additions and 42 deletions
+32 -32
View File
@@ -13,61 +13,61 @@
animation: load-gauge 1s ease forwards animation: load-gauge 1s ease forwards
} }
.guage-text { .gauge-text {
font-size: 40px; font-size: 40px;
font-family: monospace; font-family: monospace;
text-align: center text-align: center
} }
.guage-red { .gauge-red {
color: #ff4e42; color: #ff4e42;
fill: #ff4e42; fill: #ff4e42;
stroke: #ff4e42 stroke: #ff4e42
} }
.guage-orange { .gauge-orange {
color: #ffa400; color: #ffa400;
fill: #ffa400; fill: #ffa400;
stroke: #ffa400 stroke: #ffa400
} }
.guage-green { .gauge-green {
color: #0cce6b; color: #0cce6b;
fill: #0cce6b; fill: #0cce6b;
stroke: #0cce6b stroke: #0cce6b
} }
.theme--agnostic .guage-undefined { .theme--agnostic .gauge-undefined {
color: #5c5c5c; color: #5c5c5c;
fill: #5c5c5c; fill: #5c5c5c;
stroke: #5c5c5c stroke: #5c5c5c
} }
.theme--light .guage-undefined { .theme--light .gauge-undefined {
color: #1e1e1e; color: #1e1e1e;
fill: #1e1e1e; fill: #1e1e1e;
stroke: #1e1e1e stroke: #1e1e1e
} }
.theme--dark .guage-undefined { .theme--dark .gauge-undefined {
color: #f5f5f5; color: #f5f5f5;
fill: #f5f5f5; fill: #f5f5f5;
stroke: #f5f5f5 stroke: #f5f5f5
} }
.guage-title { .gauge-title {
stroke: none; stroke: none;
font-size: 26px; font-size: 26px;
line-height: 26px; line-height: 26px;
font-family: Roboto, Halvetica, Arial, sans-serif font-family: Roboto, Halvetica, Arial, sans-serif
} }
.metric.guage-title { .metric.gauge-title {
font-family: 'Courier New', Courier, monospace font-family: 'Courier New', Courier, monospace
} }
.theme--agnostic .guage-title { .theme--agnostic .gauge-title {
color: #737373; color: #737373;
fill: #737373 fill: #737373
} }
.theme--light .guage-title { .theme--light .gauge-title {
color: #212121; color: #212121;
fill: #212121 fill: #212121
} }
.theme--dark .guage-title { .theme--dark .gauge-title {
color: #f5f5f5; color: #f5f5f5;
fill: #f5f5f5 fill: #f5f5f5
} }
@@ -90,7 +90,7 @@
.lh-gauge--pwa__visible { .lh-gauge--pwa__visible {
display: inline display: inline
} }
.guage-invisible { .gauge-invisible {
display: none display: none
} }
.lh-gauge--pwa__logo--primary-color { .lh-gauge--pwa__logo--primary-color {
@@ -118,26 +118,26 @@
stroke: #f5f5f566 stroke: #f5f5f566
} }
</style> </style>
<svg class="guage-div guage-perf guage-green" viewBox="0 0 200 200" width="200" height="200" x="100" y="0"> <svg class="gauge-div gauge-perf gauge-green" viewBox="0 0 200 200" width="200" height="200" x="100" y="0">
<circle class="gauge-base" r="56" cx="100" cy="60" stroke-width="8"/> <circle class="gauge-base" r="56" cx="100" cy="60" stroke-width="8"/>
<circle class="gauge-arc guage-arc-1" r="56" cx="100" cy="60" stroke-width="8" style="stroke-dasharray: 351.858, 351.858;"/> <circle class="gauge-arc gauge-arc-1" r="56" cx="100" cy="60" stroke-width="8" style="stroke-dasharray: 351.858, 351.858;"/>
<text class="guage-text" x="100px" y="60px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">100</text> <text class="gauge-text" x="100px" y="60px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">100</text>
<text class="guage-title" x="100px" y="160px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">Performance</text> <text class="gauge-title" x="100px" y="160px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">Performance</text>
</svg>,<svg class="guage-div guage-perf guage-green" viewBox="0 0 200 200" width="200" height="200" x="300" y="0"> </svg>,<svg class="gauge-div gauge-perf gauge-green" viewBox="0 0 200 200" width="200" height="200" x="300" y="0">
<circle class="gauge-base" r="56" cx="100" cy="60" stroke-width="8"/> <circle class="gauge-base" r="56" cx="100" cy="60" stroke-width="8"/>
<circle class="gauge-arc guage-arc-1" r="56" cx="100" cy="60" stroke-width="8" style="stroke-dasharray: 351.858, 351.858;"/> <circle class="gauge-arc gauge-arc-1" r="56" cx="100" cy="60" stroke-width="8" style="stroke-dasharray: 351.858, 351.858;"/>
<text class="guage-text" x="100px" y="60px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">100</text> <text class="gauge-text" x="100px" y="60px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">100</text>
<text class="guage-title" x="100px" y="160px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">Accessibility</text> <text class="gauge-title" x="100px" y="160px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">Accessibility</text>
</svg>,<svg class="guage-div guage-perf guage-green" viewBox="0 0 200 200" width="200" height="200" x="500" y="0"> </svg>,<svg class="gauge-div gauge-perf gauge-green" viewBox="0 0 200 200" width="200" height="200" x="500" y="0">
<circle class="gauge-base" r="56" cx="100" cy="60" stroke-width="8"/> <circle class="gauge-base" r="56" cx="100" cy="60" stroke-width="8"/>
<circle class="gauge-arc guage-arc-1" r="56" cx="100" cy="60" stroke-width="8" style="stroke-dasharray: 351.858, 351.858;"/> <circle class="gauge-arc gauge-arc-1" r="56" cx="100" cy="60" stroke-width="8" style="stroke-dasharray: 351.858, 351.858;"/>
<text class="guage-text" x="100px" y="60px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">100</text> <text class="gauge-text" x="100px" y="60px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">100</text>
<text class="guage-title" x="100px" y="160px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">Best Practices</text> <text class="gauge-title" x="100px" y="160px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">Best Practices</text>
</svg>,<svg class="guage-div guage-perf guage-green" viewBox="0 0 200 200" width="200" height="200" x="700" y="0"> </svg>,<svg class="gauge-div gauge-perf gauge-green" viewBox="0 0 200 200" width="200" height="200" x="700" y="0">
<circle class="gauge-base" r="56" cx="100" cy="60" stroke-width="8"/> <circle class="gauge-base" r="56" cx="100" cy="60" stroke-width="8"/>
<circle class="gauge-arc guage-arc-1" r="56" cx="100" cy="60" stroke-width="8" style="stroke-dasharray: 351.858, 351.858;"/> <circle class="gauge-arc gauge-arc-1" r="56" cx="100" cy="60" stroke-width="8" style="stroke-dasharray: 351.858, 351.858;"/>
<text class="guage-text" x="100px" y="60px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">100</text> <text class="gauge-text" x="100px" y="60px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">100</text>
<text class="guage-title" x="100px" y="160px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">SEO</text> <text class="gauge-title" x="100px" y="160px" alignment-baseline="central" dominant-baseline="central" text-anchor="middle">SEO</text>
</svg> </svg>
<svg width="604" height="76" x="200" y="250"> <svg width="604" height="76" x="200" y="250">
<g> <g>
@@ -151,9 +151,9 @@
<rect stroke="#000" rx="8" id="svg_3" height="14" width="48" y="30" x="35" stroke-opacity="null" stroke-width="0" fill="#ff4e42"/> <rect stroke="#000" rx="8" id="svg_3" height="14" width="48" y="30" x="35" stroke-opacity="null" stroke-width="0" fill="#ff4e42"/>
<rect stroke="#000" rx="6" id="svg_4" height="14" width="48" y="30" x="220" stroke-opacity="null" stroke-width="0" fill="#ffa400"/> <rect stroke="#000" rx="6" id="svg_4" height="14" width="48" y="30" x="220" stroke-opacity="null" stroke-width="0" fill="#ffa400"/>
<rect stroke="#000" rx="6" id="svg_5" height="14" width="48" y="30" x="410" stroke-opacity="null" stroke-width="0" fill="#0cce6b"/> <rect stroke="#000" rx="6" id="svg_5" height="14" width="48" y="30" x="410" stroke-opacity="null" stroke-width="0" fill="#0cce6b"/>
<text class="metric guage-title" xml:space="preserve" text-anchor="start" font-size="26" id="svg_6" y="45" x="100" stroke-opacity="null" stroke-width="0" stroke="#000">0-49</text> <text class="metric gauge-title" xml:space="preserve" text-anchor="start" font-size="26" id="svg_6" y="45" x="100" stroke-opacity="null" stroke-width="0" stroke="#000">0-49</text>
<text class="metric guage-title" xml:space="preserve" text-anchor="start" font-size="26" id="svg_7" y="45" x="280" stroke-opacity="null" stroke-width="0" stroke="#000">50-89</text> <text class="metric gauge-title" xml:space="preserve" text-anchor="start" font-size="26" id="svg_7" y="45" x="280" stroke-opacity="null" stroke-width="0" stroke="#000">50-89</text>
<text class="metric guage-title" xml:space="preserve" text-anchor="start" font-size="26" id="svg_8" y="45" x="470" stroke-opacity="null" stroke-width="0" stroke="#000">90-100</text> <text class="metric gauge-title" xml:space="preserve" text-anchor="start" font-size="26" id="svg_8" y="45" x="470" stroke-opacity="null" stroke-width="0" stroke="#000">90-100</text>
</g> </g>
</svg> </svg>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

+1 -1
View File
@@ -317,7 +317,7 @@ All notable changes to this project will be documented in this file. See [standa
* [#133](https://github.com/satnaing/astro-paper/issues/133) update LOCALE config to cover overall locales ([cd02b04](https://github.com/satnaing/astro-paper/commit/cd02b047d2b5e3b4a2940c0ff30568cdebcec0b8)) * [#133](https://github.com/satnaing/astro-paper/issues/133) update LOCALE config to cover overall locales ([cd02b04](https://github.com/satnaing/astro-paper/commit/cd02b047d2b5e3b4a2940c0ff30568cdebcec0b8))
* [#72](https://github.com/satnaing/astro-paper/issues/72) replace SITE.website with a URL in astro.config site value ([26ecd17](https://github.com/satnaing/astro-paper/commit/26ecd173ddec1075abb6ede9bbb62572b9f74b33)) * [#72](https://github.com/satnaing/astro-paper/issues/72) replace SITE.website with a URL in astro.config site value ([26ecd17](https://github.com/satnaing/astro-paper/commit/26ecd173ddec1075abb6ede9bbb62572b9f74b33))
* anchor oveflow on small screen size ([d025c91](https://github.com/satnaing/astro-paper/commit/d025c914d91a9b7969c8db4bd6a700723ef86a39)) * anchor overflow on small screen size ([d025c91](https://github.com/satnaing/astro-paper/commit/d025c914d91a9b7969c8db4bd6a700723ef86a39))
* **css:** text wrap in code blocks ([0c92492](https://github.com/satnaing/astro-paper/commit/0c92492959bed20f144d5d949116891d61c8e098)) * **css:** text wrap in code blocks ([0c92492](https://github.com/satnaing/astro-paper/commit/0c92492959bed20f144d5d949116891d61c8e098))
* decode unicode tag chars in breadcrumb ([#175](https://github.com/satnaing/astro-paper/issues/175)) ([058c790](https://github.com/satnaing/astro-paper/commit/058c790d26cbeab286679a8a8e3bad6c14042d6d)) * decode unicode tag chars in breadcrumb ([#175](https://github.com/satnaing/astro-paper/issues/175)) ([058c790](https://github.com/satnaing/astro-paper/commit/058c790d26cbeab286679a8a8e3bad6c14042d6d))
* get og image url correctly ([7f3edbd](https://github.com/satnaing/astro-paper/commit/7f3edbdecdce597d15e562e7d497d69af505d550)) * get og image url correctly ([7f3edbd](https://github.com/satnaing/astro-paper/commit/7f3edbdecdce597d15e562e7d497d69af505d550))
+2 -2
View File
@@ -18,9 +18,9 @@ interface Social {
export const SOCIALS: Social[] = [ export const SOCIALS: Social[] = [
{ {
name: "Github", name: "GitHub",
href: "https://github.com/satnaing/astro-paper", href: "https://github.com/satnaing/astro-paper",
linkTitle: `${SITE.title} on Github`, linkTitle: `${SITE.title} on GitHub`,
icon: IconGitHub, icon: IconGitHub,
}, },
{ {
@@ -28,7 +28,7 @@ I've been always thinking about launching my own website with my custom domain n
So, "what about blog?" you may ask. Yeah, blog also has been in my project list for some time. I always wanted to make a blog project using some of the latest technologies. However, I've been busy with my works and other projects so that blog project has never been started. So, "what about blog?" you may ask. Yeah, blog also has been in my project list for some time. I always wanted to make a blog project using some of the latest technologies. However, I've been busy with my works and other projects so that blog project has never been started.
In these days, I tend to develop my own projects with the focus in good quality rather than quantity. After the project is done, I usually put a proper readme file in the Github repo. But Github repo readme is only suitable for technical aspects (this is just my thought). I want to write down my experiences and challenges. Thus, I decided to make my own blog. Plus, at this point, I have decent experiences and confidence to develop this project. In these days, I tend to develop my own projects with the focus in good quality rather than quantity. After the project is done, I usually put a proper readme file in the GitHub repo. But GitHub repo readme is only suitable for technical aspects (this is just my thought). I want to write down my experiences and challenges. Thus, I decided to make my own blog. Plus, at this point, I have decent experiences and confidence to develop this project.
## Tech Stack ## Tech Stack
@@ -163,9 +163,9 @@ You can configure social links in `SOCIALS` object inside `constants.ts`.
```ts file=src/constants.ts ```ts file=src/constants.ts
export const SOCIALS = [ export const SOCIALS = [
{ {
name: "Github", name: "GitHub",
href: "https://github.com/satnaing/astro-paper", href: "https://github.com/satnaing/astro-paper",
linkTitle: ` ${SITE.title} on Github`, linkTitle: ` ${SITE.title} on GitHub`,
icon: IconGitHub, icon: IconGitHub,
}, },
{ {
@@ -29,9 +29,9 @@ The approach is serverless, as the comments are stored on _GitHub_ and dynamical
_Giscus_ can be set up easily on [giscus.app](https://giscus.app/), but I will outline the process shortly still. _Giscus_ can be set up easily on [giscus.app](https://giscus.app/), but I will outline the process shortly still.
### Prequisites ### Prerequisites
Prequisites to get _Giscus_ working are Prerequisites to get _Giscus_ working are
- the repository is [public](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility#making-a-repository-public) - the repository is [public](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility#making-a-repository-public)
- the [Giscus app](https://github.com/apps/giscus) is installed - the [Giscus app](https://github.com/apps/giscus) is installed
+1 -1
View File
@@ -65,7 +65,7 @@ In most cases, the files and directories you might not want to override (as you'
If youre someone who only updates the bare minimum of the template, it should be okay to replace everything with the latest AstroPaper except the above files and directories. Its like pure Android OS and other vendor-specific OSes like OneUI. The less you modify the base, the less you have to update. If youre someone who only updates the bare minimum of the template, it should be okay to replace everything with the latest AstroPaper except the above files and directories. Its like pure Android OS and other vendor-specific OSes like OneUI. The less you modify the base, the less you have to update.
You can manually replace every file one by one, or you can use the magic of git to update everything. I wont show you the manual replacement process since it is very straightforward. If youre not interested in that straightfoward and inefficient method, bear with me 🐻. You can manually replace every file one by one, or you can use the magic of git to update everything. I wont show you the manual replacement process since it is very straightforward. If youre not interested in that straightforward and inefficient method, bear with me 🐻.
### Updating AstroPaper using Git ### Updating AstroPaper using Git
+1 -1
View File
@@ -85,7 +85,7 @@ This could be added to only look for files that we markdown files in the `blog`
The regex will capture the two parts, the letter and the file path. We are going to pipe this list into a while loop to iterate over the matching lines and assign the letter to `a` and the path to `b`. We are going to ignore `a` for now. The regex will capture the two parts, the letter and the file path. We are going to pipe this list into a while loop to iterate over the matching lines and assign the letter to `a` and the path to `b`. We are going to ignore `a` for now.
To know the draft staus of the file, we need its frontmatter. In the following code we are using `cat` to get the content of the file, then using `awk` to split the file on the frontmatter separator (`---`) and taking the second block (the fonmtmatter, the bit between the `---`). From here we are using `awk` again to find the draft key and print is value. To know the draft status of the file, we need its frontmatter. In the following code we are using `cat` to get the content of the file, then using `awk` to split the file on the frontmatter separator (`---`) and taking the second block (the fonmtmatter, the bit between the `---`). From here we are using `awk` again to find the draft key and print is value.
```shell ```shell
filecontent=$(cat "$file") filecontent=$(cat "$file")