wasabeef / blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Netlify Status

Hugo Novela Forestry Starter

A port of Narrative's Gatsby theme Novela

Import this project into Forestry

Content Management

Forestry user interface

This project has been pre-configured to work with Forestry, just import your repository ✨.
Any changes you make will be commited back to the repo, and deployed if you're using Netlify.

Deployment and hosting with Netlify

Import your site in Netlify

  1. Create a new site in Netlify and import your repository.
  2. Set the build command to: hugo --minify
  3. Set the publish directory to: public

That's it, now your site gets deployed automatically on git push or when saving documents from Forestry.

Development

# clone the repository
git clone git@github.com:forestryio/novela-hugo-starter.git

# cd in the project directory
cd novela-hugo-starter

# Start local dev server
hugo server

For more information, see official Hugo documentation.

Customization

Logo

Add to your projects layout directory your logo's SVG: /layouts/icons/ui/logo.html

Socials

In order for the Socials to be surfaced in Forestry, you should copy the theme's config/_default/social.yaml to your project.

Authors

You should register authors as a taxonomy in your project's `config.yaml``

taxonomies:
  author: authors

Creating authors

Add a similar file to your content directory and Front Matter example.

# /content/authors/firstname-lastname/_index.md
---
title: Dennis Brotzky
bio: |
  Written by You. This is where your author bio lives. Share your work, your
  joys and of course, your Twitter handle.
avatar: /images/dennis-brotzky.jpg
featured: true
social:
  - title: github
    url: https://github.com
  - title: twitter
    url: https://twitter.com
  - title: instagram
    url: https://instagram.com
  - title: dribbble
    url: https://dribbble.com
  - title: unsplash
    url: https://unsplash.com
---

Assigning authors to posts.

Add the name of the author to the "authors" field:

authors:
  - Dennis Brotzky
  - Thiago Costa

Newsletter call to action

This theme includes a shortcode for a newsletter callout form that you can add to any page. It uses formspree.io as proxy to send the actual email. Each month, visitors can send you up to one thousand emails without incurring extra charges. Visit the Formspree site to get get going add your Formspree email to your shortcode like this:

{{< subscribe email="your@email.com" >}}

LICENSE

MIT

About

License:MIT License