GithubHelp home page GithubHelp logo

mglidden / website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mitoc/website

0.0 0.0 0.0 253.78 MB

The source code of the MITOC website

Home Page: https://mitoc.mit.edu

HTML 57.13% JavaScript 17.09% CSS 6.39% Ruby 19.39%

website's Introduction

MITOC Website

This repository contains the source code of https://mitoc.mit.edu.

All members of the MITOC community are welcome to suggest edits by opening pull requests!

If you'd like to change anything on the website, you can:

  • Read the rest of this short document to figure out how things work
  • Suggest a change on a file by clicking on the "Edit this file" button (see screenshot below). This will open a Pull Request (PR), which the webmasters will review. When the PR gets accepted and merged to the master version of the code, it will trigger an automatic deployment.
  • Don't hesitate to contact the MITOC webmasters ([email protected]) if you need any help!

Screen Shot 2019-11-16 at 8 16 03 PM

General

The website is built using Jekyll, a static site generator.

Content edition

What to edit

The website content is located in the following directories:

The organization of the _pages folder follows the URL schema: the source of the /activities/sea-kayak page is _pages/activities/sea-kayak.md.

Syntax

Page content is written in Markdown, the same markup language that we use for the MITOC Wiki.

On top of each page file, a "front matter" can also be found. It defines metadata about the page using the YAML format.

_data files are also written in YAML.

Advanced - Use of HTML tags in Markdown

HTML tags can be included in Markdown files, but that should be used with moderation, and only for things that cannot be done just with Markdown.

For instance, to color a word:

This <span style="color:red;">word</span> is red.

Or to apply an specific style to a block:

<div class="well" markdown="1">

#### Can I reserve gear ahead of time?

No. Aside from official MITOC-run trips, all gear is first come, first served.

</div>

Note the use of markdown="1": this is necessary to render the Markdown located in the tag.

The styled class well, as well are many others, are brought by Bootstrap 3.3.7. This library allows use to use predefined styles just by adding a class attribute to a block.

Custom styled class can be defined in ./css/mitoc.css.

Advanced - Templating

Tags starting by {{ or {% are templating tags. They allow to put bits of HTML together, define reusables components, loop over data, etc.

If you're curious about that, please refer to:

Live deployment

All branches (draft versions of the website) are automatically deployed to preview changes. A branch named test would be deployed on the domain https://test--mitoc.netlify.com/.

Branch deployment should not take more than 2 minutes.

website's People

Contributors

fpagnoux avatar mprat avatar davidcain avatar mglidden avatar bkessel avatar kcamenzind avatar kesyog avatar

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.