Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.15 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.15 KB

ordbokene-content

Source for text content at ordbokene.no

Add a locale

Create a subdirectory in content/ with the three letter ISO 639-2 code as folder name. Add your text files as seen in the existing locales. Preceding numbers in the filenames decide the order of the sections, and the first section of "help" and "about" will be shown as the introduction.

Override text in the welcome page articles

Add a .md file in welcome/bm or welcome/nn with the article ID as filename, e. g. 40922.md

Conversion to vue components

The markdown is sanitized and converted to vue componens by running src/md2vue.py Html tags and attributes not found in ALLOWED_TAGS and ALLOWED_ATTRIBUTES in md2vue will be removed. External contributors should not modify .gitlab-ci.yml or the files in src/

Images

Add images by uploading them to /content-images Remember to have a preceding slash when using them in the markdown, otherwise the nuxt application will fail to build:

![Alt text](/content-images/example-image.png)

Use html img tags if you need to tweak the size and styling of the image.