website/README.md

34 lines
752 B
Markdown
Raw Normal View History

2023-07-11 01:06:10 +00:00
# daudix-ufo.codeberg.page/blog
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:51:00 +00:00
## Preview locally
Build the image:
2023-07-10 03:19:08 +00:00
```shell
2023-07-11 01:06:10 +00:00
podman build --tag pages .
```
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
```
Within the container, run:
2023-07-10 03:19:08 +00:00
```shell
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
2023-07-16 12:48:20 +00:00
./rename.sh posts
2023-07-16 08:23:27 +00:00
```