feat: Rename images to web-friendly format

This commit is contained in:
David Lapshin 2023-08-08 21:45:14 +03:00
parent 8377e37836
commit 5a43f9d2e0
Signed by: daudix
GPG key ID: 93ECF15D3053D81C
10 changed files with 10 additions and 10 deletions

View file

@ -5,7 +5,7 @@
</details>
</small>
<p>&copy; {{ site.title }}, 2023</p>
<p title="Last built at {{ "now" | date: "%Y-%m-%d %H:%M" }}">&copy; {{ site.title }}, 2023</p>
<p><a href="{{ site.sourceurl }}" title="Last built at {{ "now" | date: "%Y-%m-%d %H:%M" }}">Website source</a></p>
<p><a href="{{ site.sourceurl }}">Website source</a></p>
</footer>

View file

@ -129,35 +129,35 @@ _Personally I use [VSCodium](https://vscodium.com), fork of VSCode with Microsof
Push all the changes and [Generate an Access Token](https://docs.codeberg.org/advanced/access-token), you need to generate token named `cbtoken` with the `repo` scope selected
![](../assets/posts/2023-07-15/Pasted image 20230715225539.png)
![](../assets/posts/2023-07-15/pasted-image-20230715225539.png)
Then copy the resulted token and save it to a safe place, as it won't be shown again.
Go to [Woodpecker](https://ci.codeberg.org) and navigate to _Repositories_ tab and add a new repository (`blog-source`)
![](../assets/posts/2023-07-15/Pasted image 20230715224850.png)
![](../assets/posts/2023-07-15/pasted-image-20230715224850.png)
Navigate to _Settings_ and go to _Secrets_ tab
![](../assets/posts/2023-07-15/Pasted image 20230715225826.png)
![](../assets/posts/2023-07-15/pasted-image-20230715225826.png)
![](../assets/posts/2023-07-15/Pasted image 20230715225841.png)
![](../assets/posts/2023-07-15/pasted-image-20230715225841.png)
Here create two secrets, `cbmail` and `cbtoken`
`cbmail` should contain your Codeberg account email
![](../assets/posts/2023-07-15/Pasted image 20230715230017.png)
![](../assets/posts/2023-07-15/pasted-image-20230715230017.png)
And `cbtoken` should contain the secret we saved earlier
![](../assets/posts/2023-07-15/Pasted image 20230715230115.png)
![](../assets/posts/2023-07-15/pasted-image-20230715230115.png)
Make sure these two secrets have successfully created and make some changes in `blog-source` to trigger the CI, it should finish successfully.
> If you don't want to trigger the CI (the change doesn't affect content for example) you can add `[CI SKIP]` to your commit message to skip the CI
![](../assets/posts/2023-07-15/Pasted image 20230715231347.png)
![](../assets/posts/2023-07-15/pasted-image-20230715231347.png)
Now it's up to you to choose Jekyll theme and write something ;)

View file

@ -7,7 +7,7 @@ toc: true
## Backstory
While writing and the [previous post](../posts/migration-from-github-to-codeberg.md) I ran into an "issue" that post file names had spaces in them and special characters like `:`, I could rename them manually but why not use script to do this automatically?
While writing and the [previous post](./2023-07-15-migration-from-github-to-codeberg.md) I ran into an "issue" that post file names had spaces in them and special characters like `:`, I could rename them manually but why not use script to do this automatically?
## The ~~programming~~ asking

View file

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View file

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View file

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB