Skip to content

Commit

Permalink
Merge pull request #2 from harrison-broadbent/v1.2
Browse files Browse the repository at this point in the history
v1.2
  • Loading branch information
harrison-broadbent authored Aug 20, 2024
2 parents 242f3ea + 5442c47 commit cef3ba1
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 497 deletions.
37 changes: 19 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.8.2)
activesupport (7.0.8.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
autoprefixer-rails (10.4.16.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
autoprefixer-rails (10.4.19.0)
execjs (~> 2)
backports (3.25.0)
builder (3.2.4)
builder (3.3.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.4)
contracts (0.16.1)
dotenv (3.1.2)
em-websocket (0.5.3)
Expand All @@ -27,7 +27,8 @@ GEM
execjs (2.9.1)
fast_blank (1.0.1)
fastimage (2.3.1)
ffi (1.16.3)
ffi (1.17.0)
ffi (1.17.0-arm64-darwin)
haml (6.3.0)
temple (>= 0.8.2)
thor
Expand Down Expand Up @@ -93,37 +94,37 @@ GEM
middleman-syntax (3.4.0)
middleman-core (>= 3.2)
rouge (~> 3.2)
mini_portile2 (2.8.6)
minitest (5.23.0)
nokogiri (1.16.5)
mini_portile2 (2.8.7)
minitest (5.25.1)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.5-arm64-darwin)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
padrino-helpers (0.15.3)
i18n (>= 0.6.7, < 2)
padrino-support (= 0.15.3)
tilt (>= 1.4.1, < 3)
padrino-support (0.15.3)
parallel (1.24.0)
parallel (1.26.3)
parslet (2.0.0)
public_suffix (5.0.5)
racc (1.7.3)
public_suffix (6.0.1)
racc (1.8.1)
rack (2.2.9)
rack-livereload (0.3.17)
rack
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.2.8)
strscan (>= 3.0.9)
rexml (3.3.5)
strscan
rouge (3.30.0)
sassc (2.4.0)
ffi (~> 1.9)
servolux (0.13.0)
strscan (3.1.0)
temple (0.10.3)
terser (1.2.2)
terser (1.2.3)
execjs (>= 0.3.0, < 3)
thor (1.2.2)
tilt (2.0.11)
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
# Ruby Middleman Tailwind Starter Blog

[![Netlify Status](https://api.netlify.com/api/v1/badges/1d340bcd-8b88-47db-b12d-e83d2ac350ef/deploy-status)](https://app.netlify.com/sites/ruby-middleman-tailwind-starter-blog/deploys)

A Middleman blog template configured with TailwindCSS, markdown parsing, code highlighting, a sitemap.xml and more. It perfect for lightweight blogging or a personal website. Ruby knowledge is helpful, but not necessary.

## Features

- Middleman v4.5,
- TailwindCSS v3.4.3,
- TailwindCSS v3.4.10,
- Markdown support (via `kramdown`),
- Blogging support (via `middleman-blog`),
- Syntax highlighting support (via `middleman-syntax`),
- Live-reloading (via `middleman-livereload`) and `bin/dev` script,
- Automatic `sitemap.xml` generation,
- SEO-friendly automatic meta tags for `title` and `description`,
- Perfect [100/100 PageSpeed score](https://pagespeed.web.dev/analysis/https-main--ruby-middleman-tailwind-starter-blog-netlify-app/o3pfqkngtp?form_factor=desktop) (near perfect for mobile)
- Perfect 100/100 PageSpeed score (near perfect for mobile)
- Github Action for image compression (see `compress_images.yml`).

Visit the [live template demo](https://ruby-middleman-tailwind-starter-blog.netlify.app/) for a preview of how it looks (although of course, you can customize it yourself).
Visit the [live template demo](ruby-middleman-tailwind-starter-blog-3sl96oa0w.vercel.app) for a preview of how it looks (although of course, you can customize it yourself).

I've used [Middleman](https://middlemanapp.com/) for years to build my personal website, and this template is a consolidation of everything I've learned.

Expand All @@ -38,7 +36,7 @@ bin/dev

## Deploying

This template is easy to deploy. Any static site host should work; I personally use Netlify and I've included the Netlify + Vercel "Deploy" buttons below.
This template is easy to deploy. Any static site host should work; I've included the Netlify + Vercel "Deploy" buttons below.

| | |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down
11 changes: 11 additions & 0 deletions helpers/string_helpers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module StringHelpers
def humanize(string)
delimiters = ["_", "-"]
string.to_s.split(Regexp.union(delimiters)).join(" ")
end

def titleize(string)
delimiters = ["_", "-"]
string.to_s.split(Regexp.union(delimiters)).map(&:capitalize).join(" ")
end
end
Loading

0 comments on commit cef3ba1

Please sign in to comment.