diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..666de10 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +_site +.sass-cache +.jekyll-metadata +Gemfile.lock diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..cb27b25 --- /dev/null +++ b/Gemfile @@ -0,0 +1,26 @@ +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.4.0" + +# 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-feed", "~> 0.6" + gem "jekyll-livereload" +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..566c242 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# The data.coop website + +## Building the site + +The site is built using [Jekyll](https://jekyllrb.com) +The simplest way to work with the site and code is to use Docker. + +```git clone https://git.data.coop/data.coop/website.git data.coop +cd data.coop +docker-compose up``` + +This will fire up the website inside a Docker container and start listening on port 4000. +Simply connect your browser to http://localhost:4000 and you're good to go. In development +mode, the site has the [jekyll:livereload](https://github.com/RobertDeRose/jekyll-livereload) extension enabled, allowing you to see your changes immediately +upon saving files in the source directory. + +## Deploying the site +TODO: Set up webhook for auto-deployment on push to master. \ No newline at end of file diff --git a/_config.yml b/_config.yml index 1c5e5bc..619cba1 100644 --- a/_config.yml +++ b/_config.yml @@ -1,11 +1,18 @@ # Welcome to Jekyll! # # This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely need to edit after that. +# which you are expected to set up once and rarely edit after that. If you find +# yourself editing this file very often, consider using Jekyll's data files +# feature for the data you need to update frequently. +# # For technical reasons, this file is *NOT* reloaded automatically when you use -# 'jekyll serve'. If you change this file, please restart the server process. +# 'bundle exec jekyll serve'. If you change this file, please restart the server process. # Site settings +# These are used to personalize your new site. If you look in the HTML files, +# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. +# You can create any custom variable you would like, and they will be accessible +# in the templates via {{ site.myvariable }}. title: Your awesome title email: your-email@domain.com description: > # this means to ignore newlines until "baseurl:" @@ -13,9 +20,15 @@ description: > # this means to ignore newlines until "baseurl:" line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description. baseurl: "" # the subpath of your site, e.g. /blog -url: "http://yourdomain.com" # the base hostname & protocol for your site +url: "" # the base hostname & protocol for your site, e.g. http://example.com twitter_username: jekyllrb github_username: jekyll # Build settings markdown: kramdown + +gems: + - jekyll-feed +exclude: + - Gemfile + - Gemfile.lock diff --git a/_includes/disqus_comments.html b/_includes/disqus_comments.html new file mode 100644 index 0000000..87fa309 --- /dev/null +++ b/_includes/disqus_comments.html @@ -0,0 +1,20 @@ +{% if page.comments != false and jekyll.environment == "production" %} + +
+ + +{% endif %} diff --git a/_includes/footer.html b/_includes/footer.html index 72239f1..dc26507 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -2,13 +2,21 @@