A theme you can use to make your Vaunt App.
Make sure you have V installed. You can check out the documentation to install V.
If you have installed V make sure you have the latest version by running v up
.
Now you are able to import Vaunt directly into your projects with import vaunt
!
The default database will be a sqlite file.
Clone the repository and go into the directory
git clone https://github.com/Casper64/vaunt-default vaunt-app
cd vaunt-app
Run v install
to install Vaunt with the V package manager.
Now you are able to import Vaunt directly into your projects with import vaunt
!
Start the dev server by running the following command:
v watch run src
To be able to access the admin you will need to create a superuser.
v run src --create-superuser
The admin panel is accessible at the "/admin" route, or if you click the
"Admin Panel"
button.
You can create and edit articles using the visual editor and when you're done just
hit the publish
button to view the generated html.
You can edit the theme settings in the Theme
section of the admin panel. Or by
changing the default values in src/theme.v
.
You can generate the static site by passing the --generate
flag or -g
for short.
All files needed to host your website will be in the generated public
directory.
v run src --generate
.
├── md // contains markdown files that will be served as html (accessible from '/md/' without ".md")
├── public // contains all files to host your static website
├── static // contains all static assets and will be available globally
├── uploads // contains all image uploads
└── src // project files
├── templates/
│ ├── articles/ // Directory that contains all generated html for an article
│ │ ├── [categories] // category folders
│ │ └── [id].html // html for article with id=[id]
│ ├── tags/ // Directory that contains all html pages for tags
│ │ └── [name].html // html for tag with name=[name]
│ ├── home.html // Home page (index.html)
│ └── layout.html // Default layout
├── main.v // entrypoint
└── theme.v // theme settings
blocks.css
: An article will generate plain html, blocks.css
contains all
css used for styling the blocks.
codemirror.css
: css for the code blocks. It uses the theme
One Dark.
main.css
: General and layout styling.