First :
I’m struggling to output a localized text in the header partials, in Hugo Portfolio Demo template. I think the problem is here: https://github.com/datocms/hugo-portfolio/blob/master/dato.config.js#L43. So how can I create a localized Settings.yml with Datocms and Hugo? I’m coming from Middleman.
Second :
In fact I need to access the record associated to a single-instance model Home › intro_text. Found this in Dato Docs but, how to render this in my index.html in FR and EN :
// dato.config.js
module.exports = (dato, root, i18n) => {
// returns the record for the `about_page` single-instance model
// (or null, if it hasn't been created yet)
dato.aboutPage;
};
Can someone point out a tutorial or a solution?