Configuration
There is three configuration files in the blog:
app.config.ts
in the root of the project.env
in the root of the projectnuxt.config.ts
in the root of the project
.env
The .env
file is used to store environment variables. With Bloggrify, you have to define the BASE_URL
variable in this file.
BASE_URL=https://www.example.com
This is important for SEO and for the generation of the sitemap and the robots.txt.
app.config.ts
You can read the content of app.config.ts file to see the configuration of the blog.
You can configure
- the url,
- the title,
- the description,
- the logo,
- the social networks (twitter, mastodon, youtube, linkedin, facebook, instagram, github) for the website
- the top menu,
- the list of authors
Key | Type | Default | Description |
---|---|---|---|
url | string | https://www.example.com | The url of the website |
language | string | en | The default language of this blog |
logo | string | /images/logo.svg | The logo to be used on the header |
avatar | string | /images/avatar.jpg | The logo of the main author if there is only one author. |
description | string | lorem ipsum | Website description |
theme | string | default | The name of the theme to be used (experimental feature) |
name | string | Bloggrify | Name of your website (used as a title on the index page) |
table_of_contents | boolean | false | wether you display the table of content on each blog post per default or not |
toc.showChildren | boolean | false | wether you display the children of the table of content on each blog post or not |
Socials | |||
socials | object | {} | Social links |
socials.github | string | The repository to use on GitHub links | |
socials.linkedin | string | The account to use on Linkedin links | |
socials.twitter | string | The account to use on Twitter links | |
socials.youtube | string | The channel to use on Youtube links | |
socials.instagram | string | The account to use on Instagram links | |
socials.facebook | string | The account to use on Facebook links | |
socials.sharing_networks | array | The list of network to display in the "share" section (if supported by the theme) | |
Authors | |||
authors | array | [] | if you have multiple authors, you can set them here |
authors.username | string | the username | |
authors.name | string | The full name | |
authors.description | string | A text describing this author | |
authors.avatar | string | An avatar for this author | |
author.socials.twitter | string | The account to use on Twitter links | |
author.socials.youtube | string | The channel to use on Youtube links | |
author.socials.linkedin | string | The channel to use on Linkedin links | |
author.socials.instagram | string | The account to use on Instagram links | |
author.socials.facebook | string | The account to use on Facebook links |
Some module can also have their own configuration. For example, the comment system, the robots.txt module, etc...
Look at their respective documentation to see how to configure them.
nuxt.config.ts
Bloggrify is based on Nuxt.js. You can configure your blog by modifying the nuxt.config.ts
file.
We won't detail all the configuration options of Nuxt.js here. You can find more information on the official documentation.
Some modules can also have their own configuration. For example, the sitemap module, the robots.txt module, etc...
Table of Contents