Giter VIP home page Giter VIP logo

jbrunton.com's Introduction

jbrunton.com

Source code for my personal blog, built using Jekyll.

Development

Run locally with bundle exec jekyll serve.

jbrunton.com's People

Contributors

jbrunton avatar

Watchers

James Cloos avatar  avatar

jbrunton.com's Issues

View blog posts

Scenario: view posts

Given a blog post "Some Post" created yesterday
And a blog post "Another Post" created today
When I am on the page for blog posts
Then I should see the post "Some Post"
And I should see the post "Another Post"
And the first blog post should be "Another Post"

Tidy admin role

Testing is awkward because it's purely dependent on environment variables. It should be possible to construct admin users purely using FactoryGirl.

Tidy Cucumber steps

Count selectors:

page.should have_css(selector, count: count.to_i)

Generalize steps for resources

etc.

Render content using Markdown

Acceptance criteria:

Given a blog post "Some Post" with content "lorem ipsum"
When I view the post "Some Post"
Then there should be the html "

lorem ipsum

"

Improve typography

It's not to elegant to read. Consider e.g. http://typeplate.com/

Possible font stack: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;

Investigate coverage results

There's no coverage for the markdown method on the BlogPostsHelper, yet coverage stats seem to be universally 100%. It's possible cucumber tests are being included in those metrics.

Redirect old permalinks

For when the permalink is edited, if a user visits a url with the incorrect title in the permalink then they should be redirected (based on the id) to the correct post

View blog post

As a user
I would like to view individual posts
So that I can read them more easily

Acceptance criteria:

Scenario: view post

Given a blog post "Some Post" with content "Lorem ipsum"
When I am on the page for the blog post "Some Post"
Then I should see the post "Some Post"
And I should see the text "Lorem ipsum"

Spin out deploy rake tasks into new gem

A heroku deploy gem could be useful across projects. Suggested behavior:

  • Allow optional development, staging and production heroku servers.
  • deploy:development, deploy:staging and deploy:production would deploy to appropriate servers with varying behavior:
    • deploy:development would push HEAD directly
    • deploy:staging would push the tip of master to staging, provided it's not ahead of origin
    • deploy:production would push the tip of master to production, provided that it's not ahead of origin; and, if there is a staging server, providing it's not ahead of staging.

Config file could look something like this:

apps:
  development: jbrunton-com-development
  staging: jbrunton-com-staging
  production: jbrunton-com

checks:
  staging:
    behind: true
  production:
    behind: true
    staged: true

Could probably build on top of https://github.com/fastestforward/heroku_san

Investigate cache warnings

Seems to occur when assets are recompiled. Slow dev significantly:

Warning. Error encountered while saving cache 853427f86ce78bf493d1a0fa8323f631846cc6f0/_functions.scssc: can't dump anonymous class #<Class:0x007fa6d1da5730>

Add url titles to blog post links

Acceptance criteria:

  1. Blog posts should have a permalink field based on the title of the post
  2. The url for each post should be in the form 'blog/id/permalink'

Preview blog posts on index page

Each blog post listing should include only the first few paragraphs, up to some constant number of words.

Each listing should include a link to 'Continue Reading'.

Acceptance criteria:

Given a blog post "Some Post"
When I am on the page for blog posts
Then there should be a blog post "Some Post"
And it should have a link "Continue Reading" which links to the blog post "Blog Post"

Add CI with Travis CI

Acceptance criteria:

  • Passing CI on Travis running rspec and cucumber tests
  • Pull requests tested automatically
  • Travis CI sticker on readme

Recent blog posts on home page

As a user
I would like to see recent blog posts on the home page
So that I can easily browse recent content

Acceptance criteria:

Given a blog post "Some Post"
When I navigate to the home page
Then I should see the post "Some Post"

Create dummy home page

Acceptance criteria:

Given I am on the home page
Then I should see the text "Welcome!"

Notes:

  • home page = root url

Display date beside blog post headers

Acceptance criteria:

Given a blog post "Some Post" created on "2013-05-01"
When I am on the page for blog posts
Then there should be the blog post "Some Post"
And its date should be "May 1, 2013"

Given a blog post "Some Post" created on "2013-05-01"
When I am on the page for the blog post "Some Post"
Then there should be the blog post "Some Post"
And its date should be "May 1, 2013"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.