Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRisto Binovski <44679817+RistoBIn@users.noreply.github.com>2019-09-03 15:22:52 +0300
committerzwbetz-gh <37317628+zwbetz-gh@users.noreply.github.com>2019-09-03 15:22:52 +0300
commitd732dd0847aa8e5446d42be23f745c3eab91bab1 (patch)
treee19dba83c3c7a1bf0f6dbc712959e1e1d5156c00
parent55e1a661773e78751c9b66a60ecbb507e5bd214c (diff)
Add Stackbit Integration (#7)
* update for stackbit * update stackbit.yml * rename stackbit.yaml * fix stackbit.yaml issue * stackbit deploy button in ReadMe * fix stackbit button description in Readme * fix netlify.toml * remove themesdir in exmaplesite/config * build commad in netlfy.toml * update README.md about stackbit * update table of contents
-rw-r--r--README.md7
-rw-r--r--exampleSite/content/about.md8
-rw-r--r--exampleSite/content/post/goisforlovers.md16
-rw-r--r--exampleSite/content/post/hugoisforlovers.md16
-rw-r--r--netlify.toml2
-rw-r--r--stackbit.yaml174
6 files changed, 202 insertions, 21 deletions
diff --git a/README.md b/README.md
index feb4390..a636ba6 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@ A minimal hugo theme made with bootstrap that focuses on content readability.
- [`imgRel`](#imgrel)
- [`imgProc`](#imgproc)
- [Getting help](#getting-help)
+- [Stackbit Deploy](#stackbit-deploy)
## Demo
@@ -166,3 +167,9 @@ style="some-style" >}}
## Getting help
If you run into an issue that isn't answered by this documentation or the [`exampleSite`](https://github.com/zwbetz-gh/minimal-bootstrap-hugo-theme/tree/master/exampleSite), then visit the [Hugo forum](https://discourse.gohugo.io/). The folks there are helpful and friendly. **Before** asking your question, be sure to read the [requesting help guidelines](https://discourse.gohugo.io/t/requesting-help/9132). Feel free to tag me in your question, my forum username is [@zwbetz](https://discourse.gohugo.io/u/zwbetz/summary).
+
+## 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/zwbetz-gh/minimal-bootstrap-hugo-theme) \ No newline at end of file
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index a9933bf..5ae8e2c 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -1,7 +1,7 @@
-+++
-title = "About"
-date = "2014-04-09"
-+++
+---
+title: "About"
+date: "2014-04-09"
+---
## This Theme
diff --git a/exampleSite/content/post/goisforlovers.md b/exampleSite/content/post/goisforlovers.md
index 59e6f8d..530ddc6 100644
--- a/exampleSite/content/post/goisforlovers.md
+++ b/exampleSite/content/post/goisforlovers.md
@@ -1,11 +1,11 @@
-+++
-title = "(Hu)go Template Primer"
-date = "2014-04-02"
-publishdate = "2014-04-02"
-lastmod = "2014-04-02"
-draft = false
-tags = ["go", "templates", "hugo"]
-+++
+---
+title: "(Hu)go Template Primer"
+date: "2014-04-02"
+publishdate: "2014-04-02"
+lastmod: "2014-04-02"
+draft: false
+tags: ["go", "templates", "hugo"]
+---
Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for
its template engine. It is an extremely lightweight engine that provides a very
diff --git a/exampleSite/content/post/hugoisforlovers.md b/exampleSite/content/post/hugoisforlovers.md
index baaa7b1..8a6c480 100644
--- a/exampleSite/content/post/hugoisforlovers.md
+++ b/exampleSite/content/post/hugoisforlovers.md
@@ -1,11 +1,11 @@
-+++
-title = "Getting Started with Hugo"
-date = "2014-04-02"
-publishdate = "2014-04-02"
-lastmod = "2014-04-02"
-draft = false
-tags = ["hugo", "git", "fun"]
-+++
+---
+title: "Getting Started with Hugo"
+date: "2014-04-02"
+publishdate: "2014-04-02"
+lastmod: "2014-04-02"
+draft: false
+tags: ["hugo", "git", "fun"]
+---
## Step 1. Install Hugo
diff --git a/netlify.toml b/netlify.toml
index ea61906..b4af737 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,7 +1,7 @@
[build]
publish = "exampleSite/public"
command = "cd exampleSite && hugo --gc --themesDir ../.."
-
+
[build.environment]
HUGO_VERSION = "0.57.2"
HUGO_THEME = "repo"
diff --git a/stackbit.yaml b/stackbit.yaml
new file mode 100644
index 0000000..ccd52ab
--- /dev/null
+++ b/stackbit.yaml
@@ -0,0 +1,174 @@
+stackbitVersion: ~0.2.0
+ssgName: custom
+publishDir: exampleSite/public
+buildCommand: cd exampleSite && hugo --gc --baseURL "/" --themesDir ../.. && cd ..
+uploadDir: images
+staticDir: exampleSite/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 URL
+ description: Hostname (and path) to the root
+ - type: string
+ name: languageCode
+ label: Language Code "en"
+ - type: string
+ name: theme
+ label: Theme Name
+ - type: object
+ name: taxonomies
+ label: Taxonomies
+ description: Site Taxonomies
+ fields:
+ - type: string
+ name: tag
+ label: Tag
+ - type: object
+ name: permalinks
+ label: Permalinks
+ description: Site Permalinks
+ fields:
+ - type: string
+ name: post
+ label: Post
+ - type: object
+ name: params
+ label: Params
+ description: Site Parameters
+ fields:
+ - type: string
+ name: description
+ label: Description
+ - type: string
+ name: contentBackgroundColor
+ label: Content Background Color
+ - type: string
+ name: contentTextColor
+ label: Content text Color
+ - type: string
+ name: contentLinkColor
+ label: Content Link Color
+ - type: string
+ name: contentLinkHoverColor
+ label: Content Link Hover Color
+ - type: string
+ name: navbarBackgroundColor
+ label: Navbar Background Color
+ - type: string
+ name: navbarLinkColor
+ label: Navbar Link Color
+ - type: string
+ name: navbarLinkHoverColor
+ label: Navbar Link Hover Color
+ - type: string
+ name: wrapperMaxWidth
+ label: Wrapper Max Width
+ - type: string
+ name: customDateFormat
+ label: Custom Date Format
+ - type: boolean
+ name: customCodeStyle
+ label: Custom Code Style
+ - type: boolean
+ name: customBlockquoteStyle
+ label: Custom Block Quote Style
+ - type: boolean
+ name: showPostSummary
+ label: Show Post Summary
+ - type: string
+ name: googleAnalytics
+ label: Google Analytics Code
+ - type: boolean
+ name: cookieConsent
+ label: Cookie Consent
+ - type: boolean
+ name: includeBootstrapJs
+ label: Include BootstrapJs
+ - type: string
+ name: faviconSafariPinnedTabColor
+ label: Favicon Safari Pinned Tab Color
+ - type: string
+ name: faviconMsApplicationTileColor
+ label: Favicon Ms Application Tile Color
+ - type: string
+ name: faviconThemeColor
+ label: Favicon Theme Color
+ - type: object
+ name: menu
+ label: Site Menu
+ fields:
+ - type: list
+ name: nav
+ label: Nav Menu
+ items:
+ type: object
+ fields:
+ - type: string
+ name: name
+ label: Menu Name
+ - type: string
+ name: url
+ label: Menu Link
+ - type: number
+ name: weight
+ label: Order Weight
+ basicpage:
+ type: page
+ label: Basic Page
+ match: "*.md"
+ fields:
+ - type: string
+ name: title
+ label: Title
+ - type: date
+ name: date
+ label: Create Date
+ post:
+ type: page
+ label: Post
+ folder: post
+ fields:
+ - type: string
+ name: title
+ label: Title
+ - type: date
+ name: date
+ label: Create Date
+ - type: string
+ name: publishdate
+ label: Publish Date
+ - type: string
+ name: lastmod
+ label: Last Modified date
+ - type: boolean
+ name: draft
+ label: Draft
+ - type: list
+ name: aliases
+ label: Aliases
+ items:
+ type: string
+ - type: list
+ name: tags
+ label: Post Tags
+ items:
+ type: string
+
+
+
+
+
+
+
+