• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
Is there a way to append HTML code into the <head> on export? I am creating very large PWA apps (around 1,000 pages) which require a manifest.json link to be included in the <head> of each page. Due to extremely slow loading I am having to move to a multi-page export which means that manually placing the link on every page is not an option...

Is there a way to do this currently? Can I manually adjust the software to append all html in the <head> section instead of the footer on my end? I personally have no use of ever appending custom html into the footer, but appending various html into the <head> would save me countless hours and hassle.
in how_to by (330 points)
edited by

2 Answers

0 votes
You can automatically put a link to a file in the <head> section of every page of a multi-page web publication by going to in5 > Export HTML5 with in5..., and in the SEO & Meta tab, enter the URL.
by (2.5k points)
I tried entering the link under "Book URL" (it didn't reach header) and "Description" which didn't work because that section auto adds an incorrect meta description tag...

<meta name="description" content=                         ">
I checked with Justin on this one. Right now, the output HTML has to be modified to add a custom meta tag. He's going to work on making this better in the future, so that it will search attached HTML for a <head> tag and place that content in the actual <head> tag.
That would be amazing. Thanks!
It will be available in the next update. :-)
0 votes

When v3.6.10 is released in the next 1-2 weeks, you'll have the ability to attach an HTML Resource containing a <head> tag and have contents appear in the <head> tag of the output.

<!--?xml version="1.0" encoding="UTF-8"?-->
ago by (193k points)
1 to 2 weeks! That is truly awesome news! I just came to the conclusion that I will need to use a multi-page architecture PWA for all of my larger projects to keep load times reasonable. You can't imagine how many hours of manual header coding this will save me. Thanks a ton!