Metadata for All Topics in a Publication
Learn how to add a custom meta name and content pair to the metadata of all topics.
With Paligo's HTML5 layout, you can add HTML meta elements (name and content) to every page in your HTML5 output. The HTML meta tag is often used for adding metadata that is required by other applications such as search engines.
When you publish to HTML5, Paligo takes the metadata information from the HTML5 layout. It then generates the HTML5 output, and adds the metadata to every page. Each metadata name and content pair will appear as:
<meta name="name of metadata" content="value of metadata" />
If you want to add a metadata name and pair to some, but not all, of your topics, see HTML Meta Tags for Individual Topics.
Note
Paligo only supports metadata name and content pairs. It does not support other metadata attributes such as property.
To add custom metadata to all of the pages in your HTML5 output:
-
Select Layout and then edit the HTML5 layout you are going to use for publishing. Alternatively, you can create a new HTML5 layout and edit that.
-
Select General.
-
In the Custom meta tags field, enter the meta tags that you want to to all of the pages in your HTML5 output. Use the following syntax:
name separator value terminator
For example:
robots:noindex, follow;
Where:
-
robots is the value
-
colon ( : ) is the separator
-
noindex, follow is the value
-
semi-colon ( ; ) is the terminator.
Another example is for location metadata, like this:
geo.position:latitude,longitude;
Note
To include a colon or semi-colon as part of the name or value, you will first need to change the separator and/or terminator characters for Paligo (see Separator and Terminator for HTML Meta Tags).
When entered correctly, the metadata will come out as a metadata name and content pair in the HTML5 output. For example:
<meta name="geo.position" content="59.334591, 18.063240" />
-
-
Select Save.
-
Publish your content using the layout you edited in steps 1-4.
-
Check that the meta name and content pair(s) are included in your output. Unzip the output file and open index.html in a browser. Navigate to a page that should have the meta tag and then use the browser's inspect feature to view the source code. You should see that the meta tag is included inside the
<head>
element.If the meta tag is missing, check that you have used the correct syntax in the layout and that you are publishing with that layout. Also, if there is a colon or semi-colon in the name or value, make sure that you have set alternative separators and terminators.