Giter Site home page Giter Site logo

initial-website's Introduction

layout
page

Initial website for The Policy Lab

An intro website for The Policy Lab at Brown University, May 2019. Static HTML generated from Jekyll with SASS, Bootstrap 4.3, and Autoprefixer.

Built on Grey Matter from Oomph

Grey Matter is a boilerplate for stand-alone Jekyll projects. Inspired by Distillery (and now heavily updated/modified), built and served with Jekyll, leveraging Oomph Scaffold custom code and Bootstrap 4.

Getting started

To get up and running:

Install dependencies

Navigate to the project folder in your Terminal, then install Bundler if you do not already have it installed:

// Check to see if Bundler is installed:
$ which bundler

// If no response, install it:
$ gem install bundler

// Once installed (or if previously installed), run inside this project:
$ bundle install

The project dependencies should now be installed.

+Note: you may need to run the installers using the $ sudo command depending on the permissions of your computer.

Run the Local server and SASS compiler

From the project root, run:

$ jekyll serve

The server is available in your browser at http://localhost:4060/.

Run or Build the site from a Different URL

If the compiled file URLs need to have a different root path, change the baseurl value in _config.yml and restart the server. The web url will change as well, i.e. http://localhost:4060/[path]. When you upload the sites content to a server, all URLs will be prefixed with /[path].

Without changing the config.yml file, one may run a build command with an optional --baseurl parameter like so:

$ jekyll build --baseurl '/custom/path/'

Files uploaded from the _site folder will be prefixed with /custom/path/ in their URLs.

Project Structure

config.yml          // project set up and variables for base URL path
_includes           // HTML partials
-- footer.html
-- head.html
-- header.html
-- navigation.html
---- etc...
_layouts            // HTML templates
-- default.html     // Base tempalte
_plugins            // RB files for Jekyll plugins
_sass               // The gold
_site               // Rendered static HTML (not under version control)
assets              // Static assets
-- css
---- main.scss      // Jekyll pipeline converts this to CSS on render
-- img
-- js
feed.xml            // Sample file type XML
Gemfile             // Project dependency manager
Gemfile.lock
index.html          // Site content front page
etc...

Jekyll Standard Usage

Any folder prefixed with an underscore is used as a build folder only, it is not compiled and rendered. An assets folder (unprefixed) will be included in the site build. Additional files that should be excluded from the build should be added to _config.yml.

Use _includes for repetitive elements like headers, footer, nav, etc…

Use _layouts to control larger templates. Jekyll ships with an example page and a post. Variables use a {% raw %}{% double brace %}{% endraw %} syntax, and refer to simple text declarations at the top of page files.

default.html is the base template and includes calls for a header and footer.

Page files live at the site root. All rendered HTML and assets go into the _site folder by default, from which they are served in your browser. Pages can also be nested in folders but this structure is not required for the site render. The Liquid permalink value will determine where a rendered page lives in the URL structure.

More in depth Jekyll instructions here from JekyllRB.

Markdown

Markdown is supported and may be used inside files with a .md extension. A markdown syntax usage guide. Daring Fireball has a really great online converter if you need troubleshooting help.

Updates

Keep Ruby Gems and the Gemfile up to date.

bundle update jekyll

Let this command run. All dependencies for the latest stable Jekyll release will be updated and the Gemfile.lock will be updated as well. Update any very old dependency versions in the Gemfile at your discretion.

Commit the Gemfile.lock to version control if updates are made.

initial-website's People

Contributors

benguhin avatar syzygy333 avatar jhogue avatar khwilson avatar matthewjlyddon avatar kellylynn1253 avatar jessdavison avatar mollycook avatar davidyokum avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar DJ Kadamus avatar

initial-website's Issues

Scrolling cloud causes horizontal scroll

image

image

When going to the home page and waiting a few seconds the scrolling cloud animation now causes the page to have a horizontal scroll available. See the above image. Firefox version above.

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.