A Hugo boilerplate for creating truly epic websites
Generated by Hugo and Deployed by netlify.
Managed by Netlify CMS
See more in Hogo website.
use git subsubmodule
like
cd themes
git submodule add https://github.com/<THEMECREATOR>/<THEMENAME>
After changing a theme, need to
- Add the Netlify Identity Widget
add this to head
tag of /admin/index.html
, as well as the head
of your site's main index page.
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
add the following script before the closing body
tag of your site's main index page
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>