Giter Club home page Giter Club logo

jekyllsite's Introduction

Your first static site (with Jekyll!)

A starting frame for a Jekyll site.


Things this static site builder is using, that you should get familiar with

  • This project is a Jekyll site, which is a lightweight framework for building static sites. Jekyll documentation is here.
  • To make a copy of this project and to deploy it live, you'll need a Github account, and you'll need to have git installed in your development environment. Git resources are here.
  • Although this Jekyll site builds its pages in partial pieces, those pieces are still made out of HTML.
  • Styling is done with CSS, and the main stylesheet is assets/stylesheets/main.css.
  • JavaScript is also involved in this project, but only to manage hiding and showing the main navbar mobile menu icon.
  • Jekyll uses liquid, a templating language developed by Shopify. Check out _layouts/post.html to start to see how liquid works.

Installations

  1. Make a cloud9 account.

  2. Make a new workspace. Give it a name and a description.

Select the 'Public' option under 'Hosted Workspace'.

public_workspace

In the 'Clone from Git' input, put the link to this repository:

clone_to_cloud_9

Choose the 'blank template' option:

blank_template

Click 'Create workspace'.

  1. Run ./install-script.sh in the terminal to install all dependencies:

blank_template


Are you trying to get setup on your local computer instead of Cloud9? Come speak with me and I will help you with that.


Getting started

Check out the _config.yml file first, to set your variables. This config file is read only once when you start your server; so if you make changes to this file while your server is running, you will need to restart your server to see the changes.

On your local computer: Run jekyll server to serve locally.

On Cloud9: Run jekyll serve --host $IP --port $PORT --baseurl '' to serve on Cloud9.

This starts serving your site locally. To view, go to localhost:4000. You'll know your site is running locally if you see a nice site with a 'Hello, world!' heading.


Included goodies

Assets include:

  • A basic style frame based on skeleton.css
  • A simple JavaScript file that hides and shows the mobile navbar link when page is viewed on smaller screens
  • FontAwesome icons

Additional static pages

Add static pages to _static/, specifying frontmatter in each page. Example:

---
layout: page
title: My Awesome Page
static-page: true
permalink: /my-awesome-page/
---

jekyllsite's People

Contributors

chrismd3 avatar

Watchers

 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.