From 4a3206301c031d7f36261d74860d0281d60b5280 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 4 Oct 2016 17:05:44 +1100 Subject: [PATCH] Migrate the site to use Jekyll :o --- .gitignore | 4 ++++ .stow-local-ignore | 9 +++++++-- Gemfile | 27 +++++++++++++++++++++++++ Gemfile.lock | 49 ++++++++++++++++++++++++++++++++++++++++++++++ README.html | 7 +++++++ README.md | 2 +- _config.yml | 15 ++++++++++++++ css/main.scss | 39 ++++++++++++++++++++++++++++++++++++ 8 files changed, 149 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 README.html create mode 100644 _config.yml create mode 100644 css/main.scss diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e3e530 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +vendor +_site +.sass-cache +.jekyll-metadata diff --git a/.stow-local-ignore b/.stow-local-ignore index b41d37e..84f378c 100644 --- a/.stow-local-ignore +++ b/.stow-local-ignore @@ -1,4 +1,9 @@ -^/\.git +^/\.git.* ^/CNAME +^/Gemfile.* ^/README\.md -^/index\.html +^/css +^/_.* +^/\.sass-cache +^/vendor +^/.*\.html diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..4d4effd --- /dev/null +++ b/Gemfile @@ -0,0 +1,27 @@ +source "https://rubygems.org" +ruby RUBY_VERSION + +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! +gem "jekyll", "3.2.1" + +# This is the default theme for new Jekyll sites. You may change this to anything you like. +gem "minima" + +# Syntax highlighter! +gem "rouge" + +# If you want to use GitHub Pages, remove the "gem "jekyll"" above and +# uncomment the line below. To upgrade, run `bundle update github-pages`. +#gem "github-pages", group: :jekyll_plugins + +# If you have any plugins, put them here! +# group :jekyll_plugins do +# gem "jekyll-github-metadata", "~> 1.0" +# end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..b57b61b --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,49 @@ +GEM + remote: https://rubygems.org/ + specs: + colorator (1.1.0) + ffi (1.9.14) + forwardable-extended (2.6.0) + jekyll (3.2.1) + colorator (~> 1.0) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 1.1) + kramdown (~> 1.3) + liquid (~> 3.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (~> 1.7) + safe_yaml (~> 1.0) + jekyll-sass-converter (1.3.0) + sass (~> 3.2) + jekyll-watch (1.5.0) + listen (~> 3.0, < 3.1) + kramdown (1.11.1) + liquid (3.0.6) + listen (3.0.6) + rb-fsevent (>= 0.9.3) + rb-inotify (>= 0.9.7) + mercenary (0.3.6) + minima (1.2.0) + pathutil (0.14.0) + forwardable-extended (~> 2.6) + rb-fsevent (0.9.7) + rb-inotify (0.9.7) + ffi (>= 0.5.0) + rouge (1.11.1) + safe_yaml (1.0.4) + sass (3.4.22) + +PLATFORMS + ruby + +DEPENDENCIES + jekyll (= 3.2.1) + minima + rouge + +RUBY VERSION + ruby 2.0.0p648 + +BUNDLED WITH + 1.13.2 diff --git a/README.html b/README.html new file mode 100644 index 0000000..5e16ff1 --- /dev/null +++ b/README.html @@ -0,0 +1,7 @@ +--- +layout: page +permalink: /README +--- +{% capture readme_text %}{% include_relative README.md %}{% endcapture %} +{% assign readme_text = (readme_text | newline_to_br | split: "
" | shift | shift | join: '' ) %} +{{ readme_text | markdownify }} diff --git a/README.md b/README.md index 73ebaed..17d869c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A fast and easy bootstrap for my dotfiles that also acts as a simple management script once installed. Bootstrapping is as simple as: ```zsh -curl https://dots.00dani.id.au | zsh +curl 'https://dots.00dani.id.au' | zsh ``` `dots` will then install itself, [GNU Stow](https://www.gnu.org/software/stow/) (if not already installed globally), and my configuration for [git](https://github.com/00dani/dot-git), [vim](https://github.com/00dani/dot-vim), and [zsh](https://github.com/00dani/dot-zsh). diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..3d9dd54 --- /dev/null +++ b/_config.yml @@ -0,0 +1,15 @@ +title: 00dani/dot-dots +email: gopsychonauts@gmail.com +description: > + Write an awesome description for your new site here. You can edit this + line in _config.yml. It will appear in your document head meta (for + Google search results) and in your feed.xml site description. +twitter_username: 00d4n1 +github_username: 00dani + +# Build settings +theme: minima +highlighter: rouge +exclude: + - vendor + - Gemfile* diff --git a/css/main.scss b/css/main.scss new file mode 100644 index 0000000..c91fac8 --- /dev/null +++ b/css/main.scss @@ -0,0 +1,39 @@ +--- +# Only the main Sass file needs front matter (the dashes are enough) +--- +@charset "utf-8"; + +// Our variables +$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +$base-font-size: 16px; +$base-font-weight: 400; +$small-font-size: $base-font-size * 0.875; +$base-line-height: 1.5; + +$spacing-unit: 30px; + +$text-color: #111; +$background-color: #fdfdfd; +$brand-color: #2a7ae2; + +$grey-color: #828282; +$grey-color-light: lighten($grey-color, 40%); +$grey-color-dark: darken($grey-color, 25%); + +// Width of the content area +$content-width: 800px; + +$on-palm: 600px; +$on-laptop: 800px; + +// Minima also includes a mixin for defining media queries. +// Use media queries like this: +// @include media-query($on-palm) { +// .wrapper { +// padding-right: $spacing-unit / 2; +// padding-left: $spacing-unit / 2; +// } +// } + +// Import partials from the `minima` theme. +@import "minima";