Skip to content

Add a placeholder to inject tags into <head> #345

Open
@tastapod

Description

@tastapod

I have two use cases for meta tags:

  • making a page hidden: <meta name="robots" content="noindex,nofollow">
  • adding non-Google analytics: <script src="https://cdn.usefathom.com/script.js" ...></script>

The simplest solution would be to have something like an empty partials/custom-head.html that the theme invokes in the <head> part of the _default/baseof.html template.

Some themes put placeholders everywhere, which provides a clean way to customise the theme without having to copy and edit the whole baseof.html, which might change dramatically between versions of the theme.

I am happy to roll a PR if you are interested.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions