2023-07-11 01:06:10 +00:00
|
|
|
# daudix-ufo.codeberg.page/blog
|
2023-06-23 00:19:26 +00:00
|
|
|
|
2023-07-11 03:36:10 +00:00
|
|
|
[![status-badge](https://ci.codeberg.org/api/badges/12428/status.svg)](https://ci.codeberg.org/repos/12428)
|
2023-07-09 19:55:10 +00:00
|
|
|
|
2023-07-12 13:01:53 +00:00
|
|
|
> **Note**
|
|
|
|
> This blog is based on [os-component-website](https://github.com/jimmac/os-component-website)
|
2023-06-26 22:49:31 +00:00
|
|
|
|
2023-06-26 22:51:00 +00:00
|
|
|
## Preview locally
|
2023-06-26 22:49:31 +00:00
|
|
|
|
|
|
|
Build the image:
|
|
|
|
|
2023-07-10 03:19:08 +00:00
|
|
|
```shell
|
2023-07-11 01:06:10 +00:00
|
|
|
podman build --tag pages .
|
2023-06-26 22:49:31 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Run the image:
|
|
|
|
|
2023-07-10 03:19:08 +00:00
|
|
|
```shell
|
2023-07-11 01:06:10 +00:00
|
|
|
podman run -it --rm --volume="$PWD:/srv/jekyll:Z" -w /srv/jekyll -p 4000:4000 pages /bin/sh
|
2023-06-26 22:49:31 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Within the container, run:
|
|
|
|
|
2023-07-10 03:19:08 +00:00
|
|
|
```shell
|
2023-06-26 22:49:31 +00:00
|
|
|
bundle exec jekyll serve --livereload --host 0.0.0.0
|
|
|
|
```
|
|
|
|
|
2023-07-06 06:33:00 +00:00
|
|
|
_Building guide were shamelessly taken from [here](https://talk.jekyllrb.com/t/local-testing-of-existing-github-jekyll-site/7459/4)_
|
2023-07-16 08:23:27 +00:00
|
|
|
|
|
|
|
## Rename posts to web-friendly filenames
|
|
|
|
|
|
|
|
```shell
|
|
|
|
./rename.sh posts/
|
|
|
|
```
|