Sign in

[Question] How to edit the social media tags helper?

  • This topic has 1 reply, 2 voices, and was last updated 2 years, 5 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6019
    Avatar photopennula

    Hello Publii-Team and Publii-Users!

    I discovered Publii two weeks ago. It is a great software suite that I like very much. Nevertheless, there are certain sections in the source code that I would like to vary and optimise, for example the social media tags.

    In the directory …input\themes\simple\partials… there is the file named head.hbs, there is the declaration {{socialMetaTags}} in line 18.

    Where can I find the original source code to change the details for the Open Graph Protocol (#ogp)? How can I change the output individually? I use Windows as a platform. I have not yet found the user directory on my hard disk, where this source code can be edited.

    The user manual describes this here:
    https://getpublii.com/dev/socialmetatags-helper/

    How can I add more elements to the #ogp output code, for example an article tag or the tag for different languages?

    Thanks,
    PENNULA

    #6030
    Avatar photoTomasz Dziuda

    Hi,

    Then only solution would be creation of custom helper which will extend the available helper: some example helpers can be founded here https://getpublii.com/dev/tags/custom-helpers/

    But I suppose that it will be quite complicated.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.