Hello,
I am totally new to frontity and today I am trying my first project on it. I have successfully set up everything as per the guide and also installed WordPress head tags plugin as well as a package at the root of my project. But, when I place the code in frontitysettings.js, It not working.
I have placed @frontity/head-tags" under “@frontity/tiny-router”, and getting internal server error.
"packages": [{
"name": "@frontity/mars-theme",
"state": {
"theme": {
"menu": [
[
"Home",
"/"
],
[
"menu",
"/menu/"
],
[
"menu",
"/menu/"
],
[
"menu",
"/menu/"
],
[
"menu",
"/menu/"
]
],
"featured": {
"showOnList": true,
"showOnPost": false
}
}
}
},
{
"name": "@frontity/wp-source",
"state": {
"source": {
"api": "https://www.mydomain.com/wp-json"
}
}
},
"@frontity/tiny-router",
"@frontity/html2react",
"@frontity/head-tags"
]
But, I place code like below the site renders but head tags not rendering.
packages: [
"@frontity/mars-theme",
"@frontity/tiny-router",
...
"@frontity/head-tags"
],
"packages": [{
"name": "@frontity/mars-theme",
"state": {
"theme": {
"menu": [
[
"Home",
"/"
],
[
"menu",
"/menu/"
],
[
"menu",
"/menu/"
],
[
"menu",
"/menu/"
],
[
"menu",
"/menu/"
]
],
"featured": {
"showOnList": true,
"showOnPost": false
}
}
}
},
{
"name": "@frontity/wp-source",
"state": {
"source": {
"api": "https://www.mydomain.com/wp-json"
}
}
},
"@frontity/tiny-router",
"@frontity/html2react"
]