Pages, Universes & Blogs (PUB)
You can add MD (Markdown) files under content
or change this by setting the environmenta variable PUB_HOME
- Clone the repository:
git clone https://github.com/kaesar/onmind-pub.git pub
- Open the folder, e.g.:
pub/content/
- Write your content starting with
index.md
(see example) - Generate static files, e.g.:
bun run generate
- Check with local preview:
bun run preview
You can use
npm
instead ofbun
.
Forbun
, remeber check if it is installed.
You can change the content
folder by using another path. First include a .env
file and the PUB_HOME
variable like this:
PUB_HOME=/Users/user/myblog/docs/
DOCS_DIR=/
Then, load the file or set the variable in the environment. Example:
source .env
---
title: Pages ~ Universes ~ Blogs
navigation: false
layout: page
main:
fluid: false
---
:ellipsis{right=0px width=75% blur=150px}
::block-hero
---
cta:
---
#title
Pages ~ Universes ~ Blogs
#description
Write pages in [**Markdown**](https://www.markdownguide.org/basic-syntax/), use [**Vue**](https://vuejs.org) components and enjoy your content with **OnMind-PUB**.
::
:card-board
block-hero
includes a block for the title in Home Page.card-board
includes cards for content with filter.