Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

[Abandonware] Roots with Boostrap SASS, Coffeescript and the HAML files for the template!

License

Notifications You must be signed in to change notification settings

Mte90/roots-haml-compass-coffeescript

Repository files navigation

Roots Theme modded for Bootstrap SASS, HAML, Compass and Coffeescript

##Difference from original Roots

  • grunt-haml-php - Modded for the last version of MTHAML and fix for the compile #7 and #8 (not in the dependence of packages.json!)
  • assets/sass - SASS folders
  • assets/sass/bootstrap - Bootstrap the SASS way (remember to update with the last version (and rename bootstrap.scss in _bootstrap.scss))
  • assets/coffee - _main.js file converted in coffeescript
  • assets/haml - templates folder files written in HAML
  • compass - grunt use compass for compile the SASS files
  • Gruntfile.js - modded for the new settings
  • lib/scripts.php - added a rule for WP_DEBUG enabled for insert livereload in the template
  • Use WP_DEBUG instead WP_ENV

##Roots Readme

Built with Grunt

Roots is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap that will help you make better themes.

Additional features

Install the Soil plugin to enable additional features:

  • Root relative URLs
  • Nice search (/search/query/)
  • Cleaner output of wp_head and enqueued assets markup

Installation

Clone the git repo - git clone https://github.com/Mte90/roots-haml-compass-coffeescript - or download it and then rename the directory to the name of your theme or website. Install Grunt, and then install the dependencies for Roots contained in package.json by running the following from the Roots theme directory:

npm install

Reference the theme activation documentation to understand everything that happens once you activate Roots.

PS: in node_modules there is grunt-haml-php modded for the last version of MTHAML and fix for the compile.

Theme Development

Roots uses Grunt for compiling SASS to CSS, checking for JS errors, live reloading, concatenating and minifying files, versioning assets, and generating lean Modernizr builds.

Configuration

Edit lib/config.php to enable or disable theme features and to define a Google Analytics ID.

Edit lib/init.php to setup navigation menus, post thumbnail sizes, post formats, and sidebars.

Available Grunt commands

grunt dev — Compile assets when file changes are made grunt — Create minified assets that are used on non-development environments

Documentation

  • Roots 101 — A guide to installing Roots, the files and theme organization
  • Theme Wrapper — Learn all about the theme wrapper
  • Build Script — A look into the Roots build script powered by Grunt
  • Roots Sidebar — Understand how to display or hide the sidebar in Roots

Features

  • Grunt for compiling LESS to CSS, checking for JS errors, live reloading, concatenating and minifying files, versioning assets, and generating lean Modernizr builds
  • Bower for front-end package management
  • HTML5 Boilerplate
    • The latest jQuery via Google CDN, with a local fallback
    • The latest Modernizr build for feature detection, with lean builds with Grunt
    • An optimized Google Analytics snippet
  • Bootstrap
  • Organized file and template structure
  • ARIA roles and microformats
  • Theme activation
  • Theme wrapper
  • Cleaner HTML output of navigation menus
  • Posts use the hNews microformat
  • Multilingual ready and over 30 available community translations

About

[Abandonware] Roots with Boostrap SASS, Coffeescript and the HAML files for the template!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published