Skip to content

Git hash comes out empty when used in material/copyright partial #178

@zyv

Description

@zyv

Hi,

I was very happy about #162, but unfortunately I can't get it to work.

I'm adding the following to the overridden copyright partial:

{{ pages.0.page.meta.git_revision_date_localized_hash }}

Unfortunately, it's empty.

I tried

{{ pages.0.page.meta }}

and it indeed shows {'git_revision_date_localized': ..., but no hashes!

I have enabled the plugin in mkdocs.yml as follows:

plugins:
  - git-revision-date-localized:
      enable_creation_date: true

Everything (mkdocs, material, plugin) is the latest released versions. I'm running mkdocs build from the full repository checkout.

Any ideas? Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions