trenz-gmbh / trenz-docs

An SPA wiki made by TRENZ
MIT License
3 stars 0 forks source link

Configurable <head> #3

Open chucker opened 2 years ago

chucker commented 2 years ago

We need some way to define some of these in a config, or at least in a documented way.

theme color

The Vuetify theme color is wrong:

<meta name="theme-color" content="#4DBA87">

I couldn't find the right place to change this. (Vuetify doesn't seem to pick up the configuration.)

title

The title tag needs to change. (It's "wikidown" right now.)

Maybe the root can be configurable in appsettings.local.json. After that, it should append a breadcrumb, or maybe just the current article's title.

favicon

(less important)

ricardoboss commented 2 years ago

Should be configurable using via https://next.vuetifyjs.com/en/features/theme/ May have to find a way to configure it before build without having to edit source code, but only via config files. Maybe some kind of pre-processor script?

ricardoboss commented 2 years ago

Could use this for all meta-tags (including title): https://vue-meta.nuxtjs.org/guide/metainfo.html

Although I suppose some will get overwritten by vuetify... Need to test this.

chucker commented 2 years ago

(Title tag now works)