Closed kmanadkat closed 11 months ago
You need to add a textarea via the Post Config option. More information can be found here: https://getpublii.com/dev/post-config-options/
You need to add a textarea via the Post Config option. More information can be found here: https://getpublii.com/dev/post-config-options/
Cool, checking it. Thanks
@bobmitro I tried cloning repository & following https://github.com/GetPublii/Publii/wiki/App-build-process
Seeing error:
macos Ventura v13 Node v16.20.0 Xcode v14.3.1
I tried rebuilding better-sqlite package by :
cd app/node_modules/better-sqlite3
npm install
npm run install # strangely, package had install script
npm run rebuild-release
Restarted things in root of project:
npm run dev
npm run build # Another terminal tab
can you please help ?
@bobmitro it worked, I misunderstood earlier. I just added below in config.json
of theme
{
"name": "displayTextarea",
"label": "Additional Head Tags",
"value": "",
"type": "textarea"
},
Like how you suggested with the Post Config options link & added below in head.hbs
{{{@config.post.displayTextarea}}}
This solves the requirement, hence closing ticket.
Off the topic, do you happen to know by any chance if it is ok to have multiple "application/ld+json"
script tags?
Off the topic, do you happen to know by any chance if it is ok to have multiple
"application/ld+json"
script tag
I think it's fine to have multiple JSON-LD data on a single page for example to represent different types of data.
Thanks
Feature Description
I want to add custom meta tags & JSON-LD scripts for SEO. This can differ post by post, so hardcoding in Theme might not be right.
Can we please have an option somewhere in the post settings sidebar, or anywhere it feels feasible?
Example content to add in
(it can be other stuff too like additional meta tags):