Yugal Page Specific Header

Custom <head> code for YUGAL.JS Pages

If you want to add some custom code to <head> which should be applicable for custom pages only, you can use yugal.header method. Pass your custom head to yugal.header and it will render it to the head.

THIS WILL UPDATE <head> WITHOUT REMOVING DEFAULT CODE WHICH ARE ABOVE THE IMPORTANT COMMENT IN INDEX.HTML.

    yugal.header(`
        <meta name="something" content="something" />
    `); //THIS WILL UPDATE <head> WITHOUT REMOVING DEFAULT CODE WHICH ARE ABOVE THE IMPORTANT COMMENT IN INDEX.HTML.

You can also use yugal.header with empty strings to remove custom head code.

Last updated

Was this helpful?