Git Product home page Git Product logo

biomod's Introduction

BIOMOD.net

The Biomod Jekyll site.

License

Creative Commons License
biomod.net by Shawn Douglas, Kris St.Gabriel, and Byron Hinebaugh is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at https://github.com/sdouglas/biomod.

Getting Started

git clone [email protected]:sdouglas/biomod.git

To start the server:

jekyll server -w

Now open a browser to localhost:4000

Now, SASS

gem install sass AND it might need a dependency gem install rb-inotify

Once installed

sass --watch assets/scss:assets/css --style compressed

What is this? It watches the assets/scss directory for changes and compiles the scss files into compressed css files on the fly.

Now, the site only loads the .css files, it doesn't know about the the .scss files; we're working with .scss and compiling them into something the browser can use.

Never change a .css file, only change a .scss file, or the SASS compiler will overwrite those changes.

Important issue with CSS

CSS files aren't being tracked until we're ready for production: this is because every commit creates stupid conflicts needing merges. SO in production, the line in .gitignore must be removed so git just tracks css files again.

Dates and

The Countdown timer

Dates of events are defined by registration_date in _config.yml so they can be changed site-wide from a single location (although currently date is only used in countdown panel and js timer itself).

The date format in _config.yml is YYYY-MM-DD HH:MM:SS +/-TTTT although the UTC offset is optional. In the templates however, it is possible to change the date format with liquid tags (as described by shopify ). For example:

{{ site.registration_date | date_to_long_string }}
{{ site.registration_date | date: "%B %-d %R" }}

Countdown is set up in main.js but draws the registration date from _config and converts it to a javascript Date object for calculating time remaining.

Technologies used

Bourbon, a set of sass classes is installed and we're using its companion set, 'Neat' for its grid. To update these libraries, go into the /assets/scss directory and type update neat and update bourbon.

The blog

By adding this line to _config.yml excerpt_separator: We can add to a blog, so it cuts off the excerpt display at its location. This is important as a LONG blog post will display in its entirety on the front page. You don't want that.

Noteworthy links

Mr. Poole, an tool for using jekyll

Using Jekyll Plugins on Github Pages blog entry from blog.nitrous.io

tapir offers search based on an RSS feed, useful for static sites.

Icons

Credit card icons on the donation page are derived from https://github.com/muffinresearch/payment-icons.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.