Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ Hermit is a minimal and fast theme for Hugo. It's built for bloggers who want a

![](https://github.com/Track3/hermit/raw/master/images/hermit.png)


## Stackbit Deploy

This theme is ready to import into Stackbit. This theme can be deployed to Netlify and you can connect any headless CMS including Forestry, NetlifyCMS, DatoCMS or Contentful.

[![Create with Stackbit](https://assets.stackbit.com/badge/create-with-stackbit.svg)](https://app.stackbit.com/create?theme=https://github.com/Track3/hermit)


## Getting started

### Installation
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ pygmentsUseClasses = true
rssLimit = 10 # Maximum number of items in the RSS feed.
copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." # This message is only used by the RSS template.
enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/functions/emojify/
# googleAnalytics = "UA-123-45"
# disqusShortname = "yourdiscussshortname"
googleAnalytics = ""
disqusShortname = ""

[author]
name = "John Doe"
Expand All @@ -38,7 +38,7 @@ enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/func

homeSubtitle = "A minimal and fast theme for Hugo."
footerCopyright = ' &#183; <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
# bgImg = "" # Homepage background-image URL
bgImg = "" # Homepage background-image URL

# Prefix of link to the git commit detail page. GitInfo must be enabled.
# gitUrl = "https://github.com/username/repository/commit/"
Expand Down
12 changes: 2 additions & 10 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
[build]
base = "exampleSite"
command = "hugo --gc --themesDir ../.. -b $URL"
publish = "exampleSite/public"

[build.environment]
HUGO_VERSION = "0.55.6"
HUGO_THEME = "repo"
HUGO_BASEURL = "/"

[context.deploy-preview]
command = "hugo --gc --themesDir ../.. -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
command = "hugo --gc --themesDir ../.. -b $DEPLOY_PRIME_URL"
213 changes: 213 additions & 0 deletions stackbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
stackbitVersion: ~0.2.0
ssgName: custom
publishDir: exampleSite/public
buildCommand: cd exampleSite && hugo --gc --baseURL "/" --themesDir ../.. && cd ..
uploadDir: "/"
staticDir: "static"
pagesDir: exampleSite/content
dataDir: exampleSite
models:
config:
type: data
label: Config
file: config.toml
fields:
- type: string
name: title
label: Title
required: true
- type: string
name: baseURL
label: Base baseURL
description: Hostname (and path) to the root
- type: string
name: languageCode
label: Language Code "en"
- type: string
name: defaultContentLanguage
label: Default Content Language
- type: string
name: theme
label: Theme name
- type: boolean
name: pygmentsCodefences
label: Pygments Codefences
- type: boolean
name: pygmentsUseClasses
label: Pygments Use Classes
- type: number
name: rssLimit
label: RSS Limit
description: Maximum number of items in the RSS feed.
- type: string
name: copyright
label: Copyright
- type: boolean
name: enableEmoji
label: Enable Emoji
- type: string
name: googleAnalytics
label: Google Analytics Code
- type: string
name: disqusShortname
label: Disqus Shortname
- type: object
name: author
label: Author
fields:
- type: string
name: name
label: Name
- type: object
name: blackfriday
label: Blackfriday Settings
fields:
- type: boolean
name: hrefTargetBlank
label: HrefTargetBlank
description: true opens absolute links in a new window or tab.
- type: boolean
name: noreferrerLinks
label: HTML Noreferrer Links
description: true creates absolute links with noreferrer being added to their rel attribute.
- type: boolean
name: nofollowLinks
label: HTML No Follow Links
description: rue creates absolute links with nofollow being added to their rel attribute.
- type: object
name: taxonomies
label: Taxonomies
fields:
- type: string
name: tag
label: Tag
- type: object
name: params
label: Site Params
fields:
- type: string
name: dateform
label: Date Format
- type: string
name: dateformShort
label: Short Date Format
- type: string
name: dateformNum
label: Number Style Date Format
- type: string
name: dateformNumTime
label: Number Time Style Date Format
- type: string
name: themeColor
label: Theme Color
- type: string
name: homeSubtitle
label: Home Subtitle
- type: string
name: footerCopyright
label: Footer Copyright
- type: string
name: target
label: Target
- type: string
name: bgImg
label: Background Image
description: Homepage background-image
- type: boolean
name: justifyContent
label: Justify Content
- type: boolean
name: relatedPosts
label: Related Posts
description: Add a related content section to all single posts page
- type: boolean
name: code_copy_button
label: Code Copy Button
description: Turn on/off the code-copy-button for code-fields
- type: list
name: social
label: Social Icons
items:
type: object
fields:
- type: string
name: name
label: Icon Name
- type: string
name: url
label: Social Link
- type: object
name: menu
label: Site Menu
fields:
- type: list
name: main
label: Main Menu
items:
type: object
fields:
- type: string
name: name
label: Menu Name
- type: string
name: url
label: Menu Link
- type: number
name: weight
label: Menu Order Weight
basicpage:
type: page
label: Basic Page
match: "*.md"
fields:
- type: string
name: title
label: Title
required: true
- type: date
name: date
label: Creat Date
post:
type: page
label: Blog post
folder: posts
fields:
- type: string
name: title
label: Title
required: true
- type: string
name: author
label: Author
- type: date
name: date
label: Published Date
- type: image
name: featuredImg
label: Featured Image
- type: list
name: tags
label: Tags
items:
type: string
- type: list
name: images
label: Images
items:
type: string
- type: boolean
name: toc
label: TOC
- type: boolean
name: draft
label: Draft