Ever wondered how to create an author page in Hugo that displays the author’s name, their bio, and a list of their articles, like Wordpress does? Me too!
This repository is an example site based on the Victor Hugo boilerplate that shows how it can be done.
You can see the example live at https://hugo-multiauthor-example.netlify.com/
Clone this repository and run:
yarn
This will take some time and will install all packages necessary to run Victor Hugo and its tasks.
To run the site locally in development mode:
yarn start
Then visit http://localhost:3000/ - or a new browser windows popped-up already - to preview your new website. BrowserSync will automatically reload the CSS or refresh the whole page, when stylesheets or content changes.
To build a static version of the website run:
yarn build
See package.json or the included gulp file for all tasks.
- Push your clone to your own GitHub repository.
- Create a new site on Netlify and link the repository.
Now Netlify will build and deploy your site whenever you push to git.
You can also click the Deploy to Netlify button below – Netlify will clone this repo into your account and deploy it for you.