The ThinkShout.com website, built with Jekyll, Foundation 5, SASS, and lots of love.
Something along the lines of the following should be used by developers working on this site.
git checkout dev
.git pull origin dev
.git rebase stage
.'git checkout -b myfeature
.git checkout dev && git merge myfeature
. Clean up and delete your feature branch.rake serve
and make sure all is well.git push origin dev
.git checkout stage && git merge dev && git push origin stage
.rake stage
.git checkout live && git merge stage
.Blog posts should be managed via prose.io. Visit the website and, when prompted, authorize via GitHub. Select the thinkshout/thinkshout project. Prose will only make the blog post folder accessible. You can create new posts by clicking the large green "new file" button at the top of the page (see below "New Posts section"). Existing posts can be edited by clicking on the file in the list. When editing or creating a post, the metadata button on the right side will load with the available variables that can be filled in, including teaser, author name, and tags.
It is important that the file name of the post uses the following format: blog/_posts/[date]*.md
Where "*
" is the title of your post (with no spaces - use dashes instead).
For example the default blog/_posts/2014-03-14-your-filename.md
file name could be changed to blog/_posts/2014-03-14-my-new-blog-post.md
.
This is necessary because Jekyll uses this field value to generate the Markdown file that will be complied into your blog post, which must be in the blog/_posts
directory and be named with a leading date.
Head to the metadata tab using the button on the right and specify your title in the "Raw Metadata" field as follows:
title: "My New Blog Post"
If you do not specify a title, Jekyll will generate one for you based on the name of your file by replacing dashes with spaces and capitalizing the first letter of each word.
To get a post to show on the home page, add featured: true
to the post's YAML front matter. This will also add a class of featured-post
across the site for styling convenience.
Click on the preview (eye) button on the right hand side. If you don't see images, etc. that you're referencing in your Markdown it's because they're not pushed to the repo (stage branch).
The site is hosted on Netlify. Netlify will build previews of all commits in any branch. Preview environments are available in the Pull Request status checks. Commits to stage
are published to https://stage.thinkshout.com and commits to live
are published to https://thinkshout.com.
Sites you might be interested in looking at:
The /wonderlab sub-site is generated using the following components:
wonderlab.html
landing page that lists wonderlab blogswonderlab
collection defined in config.yml
_wonderlab/*
_data/wonderlab.yml
Most of the post fields are standard for Jekyll, with the exception of the "index" field, which is used for manually ordering posts within a Wonderlab category.
The code is set up to work for multiple categories, so hypothetically if you
wanted to launch a new topic, you would just add a new entry to
_data/wonderlab.yml
(at the top of the array).