Skip to content

Get raw values, without HTML tags #64

Closed
@ZsharE

Description

@ZsharE

Hi,

Is there any way to get the plain data value, without the HTML tag ?
Right know the {{ page.meta.git_revision_date_localized }} and {{ page.meta.git_creation_date_localized }} renders in a span tag.

<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date">2021-11-3</span>

There should be an option to be able to use only the date value.

I need this to be able to create custom meta tags for: article:published_time & article:modified_time properties like this:

<meta property="article:published_time" content="{{ page.meta.git_creation_date_localized }}">
<meta property="article:modified_time" content="{{ page.meta.git_revision_date_localized }}">

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