What is Hugo?
Hugo is a static site generator that generates all of the content for a website ahead of time so that when someone visits the webpage, the server can just send files without needing to dynamically generate webpages. The result is faster loading times for visitors and less load on servers.
Why Use This?
Static content is ideal for situations where the website is the same for every visitor - no login is required - so it is ideal for open access journals. For OJS users, a static version of the website may be useful for:
- Creating a mirror of the journal’s content, which readers can be redirected to if the main journal is offline for any reason (e.g. server problems or during OJS update)
- Separating the front-end and the back-end, so that content can be served to readers separately from the OJS submission system
- Mimics and OJS journal running the Health Sciences theme
- Fully functional journal webpage with tables of contents and article pages, ORCIDs, abstracts, keywords, funding and license information
- Metadata embedded in HTML landing pages with
metatags for Dublin Core and Google Scholar and COinS for Zotero
- Export citations in RIS, BIB and CSL-JSON.
- The option to embed Crossmark links in article landing pages
- Mimics the OJS experience of reading PDFs in-browser and XML articles in Lens
- Lens has been modified to show a journal logo with a back button to take you back to the article landing page
- I haven’t implemented the way OJS renders HTML galleys yet, but if you are interested in this feature please let me know
- In conjunction with this theme, we need a plugin that registers the location of ‘remote’ galleys and then injects that information into the OJS OAI repository and potentially metadata exports. I have started fiddling around with development for this, but am not a PHP developer so this will take me some time to learn.
- I am also considering using Hugo’s templating to build in some production tools, either in this theme or in a related repository, which would build Crossref XML exports and frontmatter for LaTeX and JATS XML. For example, you might notice that in the article templates I include places for author affiliations to include ISNIs and RORs.
The theme, like OJS, is GPL-licensed, so please feel free to use and adapt.