From f5de18652144d686ee5c1df09037a6ec9d2a8d1e Mon Sep 17 00:00:00 2001 From: Tomas Bankauskas Date: Thu, 10 Oct 2019 16:04:13 +0300 Subject: [PATCH 1/7] Add stackbit.yaml --- stackbit.yaml | 260 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 260 insertions(+) create mode 100755 stackbit.yaml diff --git a/stackbit.yaml b/stackbit.yaml new file mode 100755 index 000000000..880061f9b --- /dev/null +++ b/stackbit.yaml @@ -0,0 +1,260 @@ +stackbitVersion: "~0.2.0" +ssgName: jekyll +buildCommand: "bundle install && bundle exec jekyll build" +staticDir: "" +uploadDir: assets/images +publishDir: "_site" +pagesDir: "" +pageTemplateKey: layout +models: + config: + type: config + label: Global Site Config + fields: + - type: string + name: email + label: Your email address + - type: string + name: baseurl + label: Baseurl + description: The subpath of your site, e.g. /blog, for generating urls. + - type: string + name: permalink + label: Permalink + description: The permalink pattern. + - type: string + name: google_analytics + label: Google Analytics + description: Your Google Analytics identifier. For example, UA-99631805-1. + - type: string + name: name + label: Your name + description: Your name used in meta tags. + - type: string + name: title + label: Site Title + description: The title displayed in the site header, title tag. + - type: string + name: description + label: Description + description: The default description displayed in meta tags. + - type: string + name: url + label: Url + description: The base hostname & protocol for your site, e.g. http://example.com + - type: string + name: twitter_username + label: Twitter username + description: Twitter username used in meta tags. + - type: image + name: default_img + label: Default image + description: Default site image used in meta tags. + - type: list + name: social + label: Social links + description: Footer social links. + items: + type: object + labelField: name + fields: + - type: string + name: name + label: Title + required: true + - type: string + name: url + label: URL + - type: image + name: contact_img + label: Contact form image + description: Image for contact form. + - type: string + name: formcarry + label: Formcarry + description: Formcarry form URL. + - type: string + name: disqus + label: Disqus username + description: The shortname for your Disqus site to enable comments. + - type: string + name: mailchimp_action + label: Mailchimp action + description: Mailchimp action URL. + - type: string + name: mailchimp_input + label: Mailchimp input + description: Mailchimp hidden input field name value. + - type: list + name: author + label: Author + items: + type: object + labelField: name + fields: + - type: string + name: name + label: Name + required: true + - type: string + name: bio + label: Bio + - type: string + name: url + label: URL + - type: string + name: markdown + label: Markdown + hidden: true + - type: list + name: plugins + label: Plugins + items: + type: string + - type: object + name: compress_html + label: Compress HTML + hidden: true + fields: + - type: string + name: clippings + label: Clippings + - type: string + name: comments + label: Comments + - type: list + name: startings + label: Startings + items: + type: string + - type: object + name: pagination + label: Pagination setings + fields: + - type: boolean + name: enabled + label: Pagination enabled + default: true + - type: boolean + name: debug + label: Debug + default: false + - type: number + name: per_page + label: Number of posts per page + - type: string + name: permalink + label: Permalink + description: The permalink pattern. + - type: string + name: title + label: Title + - type: number + name: limit + label: Limit + - type: string + name: sort_field + label: Sort field + - type: boolean + name: sort_reverse + label: Sort reverse + default: true + - type: list + name: exclude + label: Exclude + items: + type: string + hidden: true + - type: object + name: autopages + label: Autopages setings + fields: + - type: boolean + name: enabled + label: Autopages enabled + default: true + - type: object + name: categories + label: Categories + fields: + - type: boolean + name: enabled + label: Categories enabled + default: false + - type: object + name: collections + label: Collections + fields: + - type: boolean + name: enabled + label: Collections enabled + default: false + - type: object + name: tags + label: Tags + fields: + - type: list + name: layouts + label: Layouts + items: + type: string + - type: string + name: title + label: Title + - type: string + name: permalink + label: Permalink + - type: object + name: slugify + label: Slugify + fields: + - type: string + name: mode + label: mode + - type: boolean + name: cased + label: Cased + default: true + post: + type: page + label: Post + template: post + folder: _posts + fields: + - name: title + type: string + label: Title + description: The title of the post. + required: true + - name: date + type: date + label: Date + description: The publish date of the post. + required: true + - name: image + type: image + label: Featured image + description: The featured image of the post. + - name: author + type: string + label: Author + description: The author of the post. + - name: tags + type: list + label: Tags + items: + type: string + page: + type: page + label: Page + template: page + fields: + - type: string + name: title + label: Title + description: The title of the page. + required: true + - type: image + name: image + label: Featured image + description: The featured image of the page. From 905b8597b9fe6446e80c93a14e09c4b7bfb291bd Mon Sep 17 00:00:00 2001 From: Tomas Bankauskas Date: Thu, 10 Oct 2019 16:07:54 +0300 Subject: [PATCH 2/7] Update _config.yml --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 305ca7f02..49f7f0d43 100644 --- a/_config.yml +++ b/_config.yml @@ -2,7 +2,7 @@ email: okay@samesies.io baseurl: "" permalink: /:year/:month/:day/:title/ -google_analytics: +google_analytics: "" name: Thomas Vaeth title: The Barber Theme From d9e8abc8f315c8ee7476acc43be21e52a4e99587 Mon Sep 17 00:00:00 2001 From: Tomas Bankauskas Date: Sat, 12 Oct 2019 00:20:35 +0300 Subject: [PATCH 3/7] Fixed image path and changed posts file ending --- _config.yml | 4 ++-- ...-10-08-brunch-swag.markdown => 2017-10-08-brunch-swag.md} | 4 ++-- ...0-09-lumbersexual.markdown => 2017-10-09-lumbersexual.md} | 4 ++-- ...pt-raw-denim.markdown => 2017-10-10-disrupt-raw-denim.md} | 4 ++-- ...rn-echo-park.markdown => 2017-10-11-unicorn-echo-park.md} | 4 ++-- ...eytar.markdown => 2017-10-12-butcher-vaporware-keytar.md} | 4 ++-- ...in-coffee.markdown => 2017-10-13-single-origin-coffee.md} | 4 ++-- ...2017-10-14-snackwave.markdown => 2017-10-14-snackwave.md} | 4 ++-- ...r-listicle.markdown => 2017-10-15-craft-beer-listicle.md} | 4 ++-- _posts/{2017-10-16-beard.markdown => 2017-10-16-beard.md} | 4 ++-- ...rkdown => 2017-10-17-taxidermy-dreamcatcher-readymade.md} | 4 ++-- ...-10-18-blue-bottle.markdown => 2017-10-18-blue-bottle.md} | 4 ++-- ...led.markdown => 2017-10-19-waistcoat-tote-bag-pickled.md} | 4 ++-- ...17-10-20-roof-party.markdown => 2017-10-20-roof-party.md} | 4 ++-- ...arkdown => 2017-10-21-flannel-distillery-asymmetrical.md} | 4 ++-- ...22-coloring-book.markdown => 2017-10-22-coloring-book.md} | 4 ++-- ...iamsburg.markdown => 2017-10-23-polaroid-williamsburg.md} | 4 ++-- stackbit.yaml | 5 +++++ style-guide.html => style-guide.md | 2 +- 19 files changed, 40 insertions(+), 35 deletions(-) rename _posts/{2017-10-08-brunch-swag.markdown => 2017-10-08-brunch-swag.md} (98%) rename _posts/{2017-10-09-lumbersexual.markdown => 2017-10-09-lumbersexual.md} (99%) rename _posts/{2017-10-10-disrupt-raw-denim.markdown => 2017-10-10-disrupt-raw-denim.md} (99%) rename _posts/{2017-10-11-unicorn-echo-park.markdown => 2017-10-11-unicorn-echo-park.md} (97%) rename _posts/{2017-10-12-butcher-vaporware-keytar.markdown => 2017-10-12-butcher-vaporware-keytar.md} (97%) rename _posts/{2017-10-13-single-origin-coffee.markdown => 2017-10-13-single-origin-coffee.md} (98%) rename _posts/{2017-10-14-snackwave.markdown => 2017-10-14-snackwave.md} (97%) rename _posts/{2017-10-15-craft-beer-listicle.markdown => 2017-10-15-craft-beer-listicle.md} (98%) rename _posts/{2017-10-16-beard.markdown => 2017-10-16-beard.md} (97%) rename _posts/{2017-10-17-taxidermy-dreamcatcher-readymade.markdown => 2017-10-17-taxidermy-dreamcatcher-readymade.md} (98%) rename _posts/{2017-10-18-blue-bottle.markdown => 2017-10-18-blue-bottle.md} (97%) rename _posts/{2017-10-19-waistcoat-tote-bag-pickled.markdown => 2017-10-19-waistcoat-tote-bag-pickled.md} (97%) rename _posts/{2017-10-20-roof-party.markdown => 2017-10-20-roof-party.md} (98%) rename _posts/{2017-10-21-flannel-distillery-asymmetrical.markdown => 2017-10-21-flannel-distillery-asymmetrical.md} (98%) rename _posts/{2017-10-22-coloring-book.markdown => 2017-10-22-coloring-book.md} (98%) rename _posts/{2017-10-23-polaroid-williamsburg.markdown => 2017-10-23-polaroid-williamsburg.md} (98%) rename style-guide.html => style-guide.md (98%) diff --git a/_config.yml b/_config.yml index 49f7f0d43..dcbff6d8f 100644 --- a/_config.yml +++ b/_config.yml @@ -10,7 +10,7 @@ description: > Barber is a blog theme for Jekyll built by Thomas Vaeth for Samesies using HTML, Sass, and JavaScript. url: http://barber.samesies.io twitter_username: thomasvaeth -default_img: /assets/images/seo.jpg +default_img: assets/images/seo.jpg social: - name: twitter url: https://twitter.com/thomasvaeth @@ -24,7 +24,7 @@ social: url: https://codepen.io/thomasvaeth/ # Contact settings -contact_img: /assets/images/placeholder-28.jpg +contact_img: assets/images/placeholder-28.jpg formcarry: https://formcarry.com/s/HkIo0nMb7 # Disqus settings diff --git a/_posts/2017-10-08-brunch-swag.markdown b/_posts/2017-10-08-brunch-swag.md similarity index 98% rename from _posts/2017-10-08-brunch-swag.markdown rename to _posts/2017-10-08-brunch-swag.md index d29a58589..ca4d16688 100644 --- a/_posts/2017-10-08-brunch-swag.markdown +++ b/_posts/2017-10-08-brunch-swag.md @@ -2,8 +2,8 @@ layout: post title: "Brunch Swag" date: 2017-10-08 -description: -image: /assets/images/placeholder-15.jpg +description: "" +image: assets/images/placeholder-15.jpg author: Thomas Vaeth tags: - Squid diff --git a/_posts/2017-10-09-lumbersexual.markdown b/_posts/2017-10-09-lumbersexual.md similarity index 99% rename from _posts/2017-10-09-lumbersexual.markdown rename to _posts/2017-10-09-lumbersexual.md index 34055bf7f..c4ea45b4a 100644 --- a/_posts/2017-10-09-lumbersexual.markdown +++ b/_posts/2017-10-09-lumbersexual.md @@ -2,8 +2,8 @@ layout: post title: "Lumbersexual" date: 2017-10-09 -description: -image: /assets/images/placeholder-3.jpg +description: "" +image: assets/images/placeholder-3.jpg author: Thomas Vaeth tags: - Mixtape diff --git a/_posts/2017-10-10-disrupt-raw-denim.markdown b/_posts/2017-10-10-disrupt-raw-denim.md similarity index 99% rename from _posts/2017-10-10-disrupt-raw-denim.markdown rename to _posts/2017-10-10-disrupt-raw-denim.md index 6855523e0..848514618 100644 --- a/_posts/2017-10-10-disrupt-raw-denim.markdown +++ b/_posts/2017-10-10-disrupt-raw-denim.md @@ -2,8 +2,8 @@ layout: post title: "Disrupt Raw Denim" date: 2017-10-10 -description: -image: /assets/images/placeholder-14.jpg +description: "" +image: assets/images/placeholder-14.jpg author: Thomas Vaeth tags: - Squid diff --git a/_posts/2017-10-11-unicorn-echo-park.markdown b/_posts/2017-10-11-unicorn-echo-park.md similarity index 97% rename from _posts/2017-10-11-unicorn-echo-park.markdown rename to _posts/2017-10-11-unicorn-echo-park.md index cd5a5b37c..035e79822 100644 --- a/_posts/2017-10-11-unicorn-echo-park.markdown +++ b/_posts/2017-10-11-unicorn-echo-park.md @@ -2,8 +2,8 @@ layout: post title: "Unicorn Echo Park" date: 2017-10-11 -description: -image: /assets/images/placeholder-10.jpg +description: "" +image: assets/images/placeholder-10.jpg author: Thomas Vaeth tags: - Mixtape diff --git a/_posts/2017-10-12-butcher-vaporware-keytar.markdown b/_posts/2017-10-12-butcher-vaporware-keytar.md similarity index 97% rename from _posts/2017-10-12-butcher-vaporware-keytar.markdown rename to _posts/2017-10-12-butcher-vaporware-keytar.md index 967fe9336..956e60faf 100644 --- a/_posts/2017-10-12-butcher-vaporware-keytar.markdown +++ b/_posts/2017-10-12-butcher-vaporware-keytar.md @@ -2,8 +2,8 @@ layout: post title: "Butcher Vaporware Keytar" date: 2017-10-12 -description: -image: /assets/images/placeholder-13.jpg +description: "" +image: assets/images/placeholder-13.jpg author: Thomas Vaeth tags: - Squid diff --git a/_posts/2017-10-13-single-origin-coffee.markdown b/_posts/2017-10-13-single-origin-coffee.md similarity index 98% rename from _posts/2017-10-13-single-origin-coffee.markdown rename to _posts/2017-10-13-single-origin-coffee.md index 78a480096..771e7ed6f 100644 --- a/_posts/2017-10-13-single-origin-coffee.markdown +++ b/_posts/2017-10-13-single-origin-coffee.md @@ -2,8 +2,8 @@ layout: post title: "Single-origin Coffee" date: 2017-10-13 -description: -image: /assets/images/placeholder-21.jpg +description: "" +image: assets/images/placeholder-21.jpg author: Thomas Vaeth tags: - Mixtape diff --git a/_posts/2017-10-14-snackwave.markdown b/_posts/2017-10-14-snackwave.md similarity index 97% rename from _posts/2017-10-14-snackwave.markdown rename to _posts/2017-10-14-snackwave.md index c925b7223..a60d08d3d 100644 --- a/_posts/2017-10-14-snackwave.markdown +++ b/_posts/2017-10-14-snackwave.md @@ -2,8 +2,8 @@ layout: post title: "Snackwave" date: 2017-10-14 -description: -image: /assets/images/placeholder-11.jpg +description: "" +image: assets/images/placeholder-11.jpg author: Thomas Vaeth tags: - Squid diff --git a/_posts/2017-10-15-craft-beer-listicle.markdown b/_posts/2017-10-15-craft-beer-listicle.md similarity index 98% rename from _posts/2017-10-15-craft-beer-listicle.markdown rename to _posts/2017-10-15-craft-beer-listicle.md index d12d2d443..ad662b7d0 100644 --- a/_posts/2017-10-15-craft-beer-listicle.markdown +++ b/_posts/2017-10-15-craft-beer-listicle.md @@ -2,8 +2,8 @@ layout: post title: "Craft Beer Listicle" date: 2017-10-15 -description: -image: /assets/images/placeholder-16.jpg +description: "" +image: assets/images/placeholder-16.jpg author: Thomas Vaeth tags: - Mixtape diff --git a/_posts/2017-10-16-beard.markdown b/_posts/2017-10-16-beard.md similarity index 97% rename from _posts/2017-10-16-beard.markdown rename to _posts/2017-10-16-beard.md index 2c25556d1..bb481736b 100644 --- a/_posts/2017-10-16-beard.markdown +++ b/_posts/2017-10-16-beard.md @@ -2,8 +2,8 @@ layout: post title: "Beard" date: 2017-10-16 -description: -image: /assets/images/placeholder-7.jpg +description: "" +image: assets/images/placeholder-7.jpg author: Thomas Vaeth tags: - Squid diff --git a/_posts/2017-10-17-taxidermy-dreamcatcher-readymade.markdown b/_posts/2017-10-17-taxidermy-dreamcatcher-readymade.md similarity index 98% rename from _posts/2017-10-17-taxidermy-dreamcatcher-readymade.markdown rename to _posts/2017-10-17-taxidermy-dreamcatcher-readymade.md index a8a7dbc0b..75c6a688c 100644 --- a/_posts/2017-10-17-taxidermy-dreamcatcher-readymade.markdown +++ b/_posts/2017-10-17-taxidermy-dreamcatcher-readymade.md @@ -2,8 +2,8 @@ layout: post title: "Taxidermy Dreamcatcher Readymade" date: 2017-10-17 -description: -image: /assets/images/placeholder-6.jpg +description: "" +image: assets/images/placeholder-6.jpg author: Thomas Vaeth tags: - Dummy Text diff --git a/_posts/2017-10-18-blue-bottle.markdown b/_posts/2017-10-18-blue-bottle.md similarity index 97% rename from _posts/2017-10-18-blue-bottle.markdown rename to _posts/2017-10-18-blue-bottle.md index 8a2baba0b..0599c1203 100644 --- a/_posts/2017-10-18-blue-bottle.markdown +++ b/_posts/2017-10-18-blue-bottle.md @@ -2,8 +2,8 @@ layout: post title: "Blue Bottle" date: 2017-10-18 -description: -image: /assets/images/placeholder-5.jpg +description: "" +image: assets/images/placeholder-5.jpg author: Thomas Vaeth tags: - Squid diff --git a/_posts/2017-10-19-waistcoat-tote-bag-pickled.markdown b/_posts/2017-10-19-waistcoat-tote-bag-pickled.md similarity index 97% rename from _posts/2017-10-19-waistcoat-tote-bag-pickled.markdown rename to _posts/2017-10-19-waistcoat-tote-bag-pickled.md index 703ac074a..9a6ab59ef 100644 --- a/_posts/2017-10-19-waistcoat-tote-bag-pickled.markdown +++ b/_posts/2017-10-19-waistcoat-tote-bag-pickled.md @@ -2,8 +2,8 @@ layout: post title: "Waistcoat Tote Bag Pickled" date: 2017-10-19 -description: -image: /assets/images/placeholder-4.jpg +description: "" +image: assets/images/placeholder-4.jpg author: Thomas Vaeth tags: - Dummy Text diff --git a/_posts/2017-10-20-roof-party.markdown b/_posts/2017-10-20-roof-party.md similarity index 98% rename from _posts/2017-10-20-roof-party.markdown rename to _posts/2017-10-20-roof-party.md index b8c9756d5..c7edabe0f 100644 --- a/_posts/2017-10-20-roof-party.markdown +++ b/_posts/2017-10-20-roof-party.md @@ -2,8 +2,8 @@ layout: post title: "Roof Party" date: 2017-10-20 -description: -image: /assets/images/placeholder-1.jpg +description: "" +image: assets/images/placeholder-1.jpg author: Thomas Vaeth tags: - Squid diff --git a/_posts/2017-10-21-flannel-distillery-asymmetrical.markdown b/_posts/2017-10-21-flannel-distillery-asymmetrical.md similarity index 98% rename from _posts/2017-10-21-flannel-distillery-asymmetrical.markdown rename to _posts/2017-10-21-flannel-distillery-asymmetrical.md index 218dffc90..08f078e80 100644 --- a/_posts/2017-10-21-flannel-distillery-asymmetrical.markdown +++ b/_posts/2017-10-21-flannel-distillery-asymmetrical.md @@ -2,8 +2,8 @@ layout: post title: "Flannel Distillery Asymmetrical" date: 2017-10-21 -description: -image: /assets/images/placeholder-12.jpg +description: "" +image: assets/images/placeholder-12.jpg author: Thomas Vaeth tags: - Dummy Text diff --git a/_posts/2017-10-22-coloring-book.markdown b/_posts/2017-10-22-coloring-book.md similarity index 98% rename from _posts/2017-10-22-coloring-book.markdown rename to _posts/2017-10-22-coloring-book.md index 5986a9f19..649f065aa 100644 --- a/_posts/2017-10-22-coloring-book.markdown +++ b/_posts/2017-10-22-coloring-book.md @@ -2,8 +2,8 @@ layout: post title: "Coloring Book" date: 2017-10-22 -description: -image: /assets/images/placeholder-8.jpg +description: "" +image: assets/images/placeholder-8.jpg author: Thomas Vaeth tags: - Squid diff --git a/_posts/2017-10-23-polaroid-williamsburg.markdown b/_posts/2017-10-23-polaroid-williamsburg.md similarity index 98% rename from _posts/2017-10-23-polaroid-williamsburg.markdown rename to _posts/2017-10-23-polaroid-williamsburg.md index 85f47c500..1bd760b0e 100644 --- a/_posts/2017-10-23-polaroid-williamsburg.markdown +++ b/_posts/2017-10-23-polaroid-williamsburg.md @@ -2,8 +2,8 @@ layout: post title: "Polaroid Williamsburg" date: 2017-10-23 -description: -image: /assets/images/placeholder-9.jpg +description: "" +image: assets/images/placeholder-9.jpg author: Thomas Vaeth tags: - Dummy Text diff --git a/stackbit.yaml b/stackbit.yaml index 880061f9b..7c9018681 100755 --- a/stackbit.yaml +++ b/stackbit.yaml @@ -231,6 +231,10 @@ models: label: Date description: The publish date of the post. required: true + - name: description + type: string + label: Description + description: The description used in meta tags. - name: image type: image label: Featured image @@ -248,6 +252,7 @@ models: type: page label: Page template: page + exclude: "_posts/**" fields: - type: string name: title diff --git a/style-guide.html b/style-guide.md similarity index 98% rename from style-guide.html rename to style-guide.md index 8695b0b04..1474b22cc 100644 --- a/style-guide.html +++ b/style-guide.md @@ -1,7 +1,7 @@ --- layout: page title: Style Guide -image: /assets/images/placeholder-18.jpg +image: assets/images/placeholder-18.jpg ---

My name is Thomas Vaeth and this is Barber. 💈 Barber is a minimal blog theme with a masonry grid layout and infinite scroll. Samesies builds themes for Ghost, WordPress, and Jekyll and they are only available through ThemeForest.

From 30c2c5e6259f75ed2fa55285aaa2a4f8ef829980 Mon Sep 17 00:00:00 2001 From: Tomas Bankauskas Date: Sat, 12 Oct 2019 00:33:29 +0300 Subject: [PATCH 4/7] Add relative_url --- _includes/post-card.html | 2 +- _layouts/page.html | 2 +- _layouts/post.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/post-card.html b/_includes/post-card.html index 7e62532b6..56285a597 100644 --- a/_includes/post-card.html +++ b/_includes/post-card.html @@ -2,7 +2,7 @@
{% if post.image %} {% endif %}
From a667d621a21db8efa5b7c63035d70792154297b9 Mon Sep 17 00:00:00 2001 From: Tomas Bankauskas Date: Sat, 12 Oct 2019 00:53:10 +0300 Subject: [PATCH 5/7] Add relative_url to the post image --- _layouts/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index b800a312f..12274e427 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -14,7 +14,7 @@

{{ page.title }}

{% if page.image %}
-
+
{% endif %} From 772b2170a320f4e8854ec64e6830c01675a7d649 Mon Sep 17 00:00:00 2001 From: Tomas Bankauskas Date: Sat, 12 Oct 2019 01:07:55 +0300 Subject: [PATCH 6/7] Fix image path in contact.html --- _includes/contact.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/contact.html b/_includes/contact.html index 809095f0f..c29f037a7 100644 --- a/_includes/contact.html +++ b/_includes/contact.html @@ -4,7 +4,7 @@