Middleman init

Tom Rutgers committed Aug 14, 2018
commit 71f3085018908748501b1a958dcf2ab4d9e0079c
Showing 11 changed files with 227 additions and 1 deletions
.gitignore +1 -1
@@ @@ -9,7 +9,7 @@
/test/tmp/
/test/version_tmp/
/tmp/
-
+ .sass-cache/
# Used by dotenv library to load environment variables.
# .env
Gemfile +8 -0
@@ @@ -0,0 +1,8 @@
+ source 'https://rubygems.org'
+
+ gem 'middleman', '~> 4.2'
+ gem "middleman-blog"
+ gem 'middleman-autoprefixer'
+ gem "middleman-livereload"
+ gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
+ gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw]
Gemfile.lock +127 -0
@@ @@ -0,0 +1,127 @@
+ GEM
+ remote: https://rubygems.org/
+ specs:
+ activesupport (5.0.7)
+ concurrent-ruby (~> 1.0, >= 1.0.2)
+ i18n (>= 0.7, < 2)
+ minitest (~> 5.1)
+ tzinfo (~> 1.1)
+ addressable (2.5.2)
+ public_suffix (>= 2.0.2, < 4.0)
+ autoprefixer-rails (8.6.5)
+ execjs
+ backports (3.11.3)
+ coffee-script (2.4.1)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.12.2)
+ compass-import-once (1.0.5)
+ sass (>= 3.2, < 3.5)
+ concurrent-ruby (1.0.5)
+ contracts (0.13.0)
+ dotenv (2.5.0)
+ em-websocket (0.5.1)
+ eventmachine (>= 0.12.9)
+ http_parser.rb (~> 0.6.0)
+ erubis (2.7.0)
+ eventmachine (1.2.7)
+ execjs (2.7.0)
+ fast_blank (1.0.0)
+ fastimage (2.1.3)
+ ffi (1.9.25)
+ haml (5.0.4)
+ temple (>= 0.8.0)
+ tilt
+ hamster (3.0.0)
+ concurrent-ruby (~> 1.0)
+ hashie (3.6.0)
+ http_parser.rb (0.6.0)
+ i18n (0.7.0)
+ kramdown (1.17.0)
+ listen (3.0.8)
+ rb-fsevent (~> 0.9, >= 0.9.4)
+ rb-inotify (~> 0.9, >= 0.9.7)
+ memoist (0.16.0)
+ middleman (4.2.1)
+ coffee-script (~> 2.2)
+ compass-import-once (= 1.0.5)
+ haml (>= 4.0.5)
+ kramdown (~> 1.2)
+ middleman-cli (= 4.2.1)
+ middleman-core (= 4.2.1)
+ sass (>= 3.4.0, < 4.0)
+ middleman-autoprefixer (2.9.0)
+ autoprefixer-rails (~> 8.0)
+ middleman-core (>= 3.3.3)
+ middleman-blog (4.0.2)
+ addressable (~> 2.3)
+ middleman-core (~> 4.0)
+ tzinfo (>= 0.3.0)
+ middleman-cli (4.2.1)
+ thor (>= 0.17.0, < 2.0)
+ middleman-core (4.2.1)
+ activesupport (>= 4.2, < 5.1)
+ addressable (~> 2.3)
+ backports (~> 3.6)
+ bundler (~> 1.1)
+ contracts (~> 0.13.0)
+ dotenv
+ erubis
+ execjs (~> 2.0)
+ fast_blank
+ fastimage (~> 2.0)
+ hamster (~> 3.0)
+ hashie (~> 3.4)
+ i18n (~> 0.7.0)
+ listen (~> 3.0.0)
+ memoist (~> 0.14)
+ padrino-helpers (~> 0.13.0)
+ parallel
+ rack (>= 1.4.5, < 3)
+ sass (>= 3.4)
+ servolux
+ tilt (~> 2.0)
+ uglifier (~> 3.0)
+ middleman-livereload (3.4.6)
+ em-websocket (~> 0.5.1)
+ middleman-core (>= 3.3)
+ rack-livereload (~> 0.3.15)
+ minitest (5.11.3)
+ padrino-helpers (0.13.3.4)
+ i18n (~> 0.6, >= 0.6.7)
+ padrino-support (= 0.13.3.4)
+ tilt (>= 1.4.1, < 3)
+ padrino-support (0.13.3.4)
+ activesupport (>= 3.1)
+ parallel (1.12.1)
+ public_suffix (3.0.2)
+ rack (2.0.5)
+ rack-livereload (0.3.17)
+ rack
+ rb-fsevent (0.10.3)
+ rb-inotify (0.9.10)
+ ffi (>= 0.5.0, < 2)
+ sass (3.4.25)
+ servolux (0.13.0)
+ temple (0.8.0)
+ thor (0.20.0)
+ thread_safe (0.3.6)
+ tilt (2.0.8)
+ tzinfo (1.2.5)
+ thread_safe (~> 0.1)
+ uglifier (3.2.0)
+ execjs (>= 0.3.0, < 3)
+
+ PLATFORMS
+ ruby
+
+ DEPENDENCIES
+ middleman (~> 4.2)
+ middleman-autoprefixer
+ middleman-blog
+ middleman-livereload
+ tzinfo-data
+ wdm (~> 0.1)
+
+ BUNDLED WITH
+ 1.16.2
config.rb +49 -0
@@ @@ -0,0 +1,49 @@
+ # Activate and configure extensions
+ # https://middlemanapp.com/advanced/configuration/#configuring-extensions
+
+ activate :autoprefixer do |prefix|
+ prefix.browsers = "last 2 versions"
+ end
+
+ # Layouts
+ # https://middlemanapp.com/basics/layouts/
+
+ # Per-page layout changes
+ page '/*.xml', layout: false
+ page '/*.json', layout: false
+ page '/*.txt', layout: false
+ page "/partials/*", layout: false
+ page "/admin/*", layout: false
+
+
+ # With alternative layout
+ # page '/path/to/file.html', layout: 'other_layout'
+
+ # Proxy pages
+ # https://middlemanapp.com/advanced/dynamic-pages/
+
+ # proxy(
+ # '/this-page-has-no-template.html',
+ # '/template-file.html',
+ # locals: {
+ # which_fake_page: 'Rendering a fake page with a local variable'
+ # },
+ # )
+
+ # Helpers
+ # Methods defined in the helpers block are available in templates
+ # https://middlemanapp.com/basics/helper-methods/
+
+ # helpers do
+ # def some_helper
+ # 'Helping'
+ # end
+ # end
+
+ # Build-specific configuration
+ # https://middlemanapp.com/advanced/configuration/#environment-specific-settings
+
+ # configure :build do
+ # activate :minify_css
+ # activate :minify_javascript
+ # end
source/images/.keep +0 -0
source/index.html.erb +12 -0
@@ @@ -0,0 +1,12 @@
+ ---
+ title: Welcome to Middleman
+ ---
+ <h1>
+ Middleman is Running
+ </h1>
+
+ <%= link_to(
+ "Read Documentation",
+ "https://middlemanapp.com/basics/templating_language/",
+ target: "_blank"
+ ) %>
source/javascripts/site.js +1 -0
@@ @@ -0,0 +1 @@
+ // This is where it all goes :)
source/layouts/layout.erb +16 -0
@@ @@ -0,0 +1,16 @@
+ <!doctype html>
+ <html>
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <meta name="viewport"
+ content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <!-- Use the title from a page's frontmatter if it has one -->
+ <title><%= current_page.data.title || "Middleman" %></title>
+ <%= stylesheet_link_tag "all" %>
+ <%= javascript_include_tag "main" %>
+ </head>
+ <body>
+ <%= yield %>
+ </body>
+ </html>
source/stylesheets/all.css.scss +6 -0
@@ @@ -0,0 +1,6 @@
+ //setup
+ @charset 'utf-8';
+
+ //base
+ @import 'base/colors';
+ @import 'base/base';
\ No newline at end of file
source/stylesheets/base/_base.scss +6 -0
@@ @@ -0,0 +1,6 @@
+ %img-responsive{
+ display: block;
+ width: 100%;
+ max-width: 100%;
+ height: auto;
+ }
\ No newline at end of file
source/stylesheets/base/_colors.scss +1 -0
@@ @@ -0,0 +1 @@
+ $primary-color: rgb(255, 68, 0);
\ No newline at end of file