Bits and pieces about photography, computers and ships.
  • SCSS 38.5%
  • JavaScript 30.6%
  • HTML 24.9%
  • Shell 6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-02-08 19:44:37 +01:00
default Fix the image gallery height for laptop screens 2021-02-08 19:44:37 +01:00
.gitignore Initial commit 2020-09-13 16:49:17 +02:00
.gitlab-ci.yml Add ci script 2020-10-26 21:23:24 +01:00
build.sh Fix build script 2020-10-26 21:28:31 +01:00
package.json Initial commit 2020-09-13 16:49:17 +02:00
README.md Initial commit 2020-09-13 16:49:17 +02:00
yarn.lock Initial commit 2020-09-13 16:49:17 +02:00

Bundling of static assets for the blog

The bundler.sh script goes through every folder and creates a entry for that in the dist output.

default contains the required templates for bokstaever to run. Namely:

  • base.html Base template for the site
  • ìndex.html Index site
  • page.html Template for pages (content without a release date) supplied via the database
  • post.html Template for posts (as in blog posts) supplied via the database

Pages can be configured via a page.env file with the following options:

Option Description
entrypoint Template that should be loaded.
slug url slug for the page, e.g. example.com/slug
headline Title for the menu
menu if true the entry is shown in the menu

All pages are assembled into a fixture which can be loaded into bokstaever. The images on the index page are resized via the resize.sh script. Following file formats are bundled:

  • .vue
  • .scss
  • .js
  • .svg
  • .png
  • .jpg
  • .mp4
  • .ogg