78 lines
2.0 KiB
Markdown
78 lines
2.0 KiB
Markdown
# CQRE.NET Website
|
|
|
|
Hugo static site for [cqre.net](https://cqre.net). Bilingual: English and Czech.
|
|
|
|
## Prerequisites
|
|
|
|
- [Hugo](https://gohugo.io/installation/) extended edition, v0.120+
|
|
|
|
## Local development
|
|
|
|
```bash
|
|
hugo server -D
|
|
```
|
|
|
|
The site will be available at http://localhost:1313.
|
|
|
|
## Build
|
|
|
|
```bash
|
|
hugo --minify
|
|
```
|
|
|
|
Output goes to `public/`. Deploy the `public/` directory to your web server or static hosting.
|
|
|
|
## Structure
|
|
|
|
```
|
|
content/
|
|
en/ # English content
|
|
_index.md # Home page
|
|
products/ # PULSAR, ASTRAL, AURORA
|
|
consulting/ # Antifragile consulting + skills
|
|
vciso.md # Virtual CISO page
|
|
about.md # About & contact
|
|
cs/ # Czech content (mirrors en/ structure)
|
|
|
|
layouts/ # Hugo templates
|
|
static/css/ # Stylesheet (single file)
|
|
i18n/ # Translation strings (en.yaml, cs.yaml)
|
|
hugo.yaml # Site config
|
|
```
|
|
|
|
## Editing content
|
|
|
|
All content is in Markdown files under `content/en/` and `content/cs/`. Front matter (the `---` block at the top) controls page title, description, hero text, and actions. The page body is standard Markdown.
|
|
|
|
To add a page: create a `.md` file in the appropriate section directory. Hugo picks it up automatically.
|
|
|
|
## Language switching
|
|
|
|
The language switcher in the navigation links to the translated version of the current page. Translations are in `i18n/en.yaml` and `i18n/cs.yaml`.
|
|
|
|
## Deployment on Gitea / self-hosted
|
|
|
|
Push this repository to your Gitea instance. For automatic deployment, configure a Gitea Action or webhook that runs `hugo --minify` and copies `public/` to your web root.
|
|
|
|
Example Gitea Actions workflow (`.gitea/workflows/deploy.yml`):
|
|
|
|
```yaml
|
|
name: Deploy
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: peaceiris/actions-hugo@v3
|
|
with:
|
|
hugo-version: 'latest'
|
|
extended: true
|
|
- run: hugo --minify
|
|
- name: Deploy
|
|
# Add your deployment step here (rsync, scp, etc.)
|
|
run: echo "Deploy public/ to your server"
|
|
```
|