-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strip html tags from the SITENAME and AUTHOR when used in the head #3147
Comments
OK I got it, I'm sorry I was not familiar with the templating system. I realize it's dependent on the template files, exclusively. Mine was using the theme "Peli-Kiera". So we could write this in all templates:
|
Putting HTML tags in the |
Thanks. This makes sense. This pull request updates the default themes, just in case. |
Feature Request
Hi, Pelican is great!
I wanted to give style to specific words in the
SITENAME
andAUTHOR
, that are usually displayed at the top of the generated home page, which means adding html tags in those variables. However, this is inappropriate in the metadata and in the<title>
fields of the html page (because it shows the raw text).Specifically, my SITENAME is something like:
firstname <span class="smallcaps">lastname</span>
.Is there a way to tolerate html markup in these variables, and tell Pelican or the jinja2 template to strip it away when needed?
Thanks!
The text was updated successfully, but these errors were encountered: