
zola init zola_sitegit clone https://codeberg.org/kogeletey/karzok zola_site/themes
或作为子模块安装:
cd zola_site
git init # if your project is a git repository already, ignore this command
git submodule add https://codeberg.org/kogeletey/karzok zola_site/themesconfig.tomlbase_url = "https://karzok.example.net" # set-up for production
theme = "karzok"
See more in configuration
cp ./themes/content/_index.md content/_index.md
之后你就可以自由发挥进行创作。
i. 开发环境
pnpm ci
pnpm run build
zola servezola serve
在浏览器打开 http://127.0.0.1:1111。保存改动后会自动热重载。
ii. 生产环境
FROM ghcr.io/kogeletey/karzok:latest AS build-stage
# or your path to image
ADD . /www
WORKDIR /www
RUN sh /www/build.sh
FROM nginx:stable-alpine
COPY --from=build-stage /www/public /usr/share/nginx/html
EXPOSE 80
docker build -t <your_name_image> . &&\
docker run -d -p 8080:8080 <your_name_image>
image: ghcr.io/kogeletey/karzok:latest # or change use your registry
pages:
script:
- sh /www/build.sh
- mv /www/public public
artifacts:
paths:
- public/
Open in favorite browser https://localhost:8080
这是自由软件:你可以按自己的意愿使用、研究、分享和改进它。
具体来说,你可以在 MIT 条款下重新分发和/或修改它。
请先阅读 Code of Conduct。
On the codeberg issues or github issues