-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Option for adding noindex tag in preview? #96
Comments
Do you do that already locally using some quarto configuration ? Just wondering if you have a current way to do that and you would like it to be automated ... I am thinking your project profile you can be able to add this in your website. And then this is just a matter of using the action with the right profile. |
I don't do that at all yet, I was exploring how I can do it. I was thinking about includes https://quarto.org/docs/reference/formats/pdf.html#includes but I don't think any of them adds something to the head. 🤔 |
this is doc for PDF. So probably not what you were looking. You want in the
|
@cderv Thank you! What works: format:
html:
include-in-header:
- text: |
<meta name="robots" content="noindex"> I was confused by the option name, because I think of head and header as two different things. I used this solution, with project profiles, in cynkra/cynkrablog#41 I still wonder whether it could be more "built-in" as an option of the action, since it might be a rather common need? |
Name is based on Pandoc flag So basically, this insert above the the body part, which in HTML means in
Looks good !
So it would mean for example
🤔 |
I wonder whether the render and publish actions could have a parameter for adding a noindex,nofollow meta tag in the website head (that one could activate for preview workflows). Sorry if I missed something equivalent.
The text was updated successfully, but these errors were encountered: