Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdmacrae committed Jan 17, 2018
0 parents commit 536fd79
Show file tree
Hide file tree
Showing 82 changed files with 5,211 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_site/
.sass-cache/
11 changes: 11 additions & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: This page doesn't exist
permalink: "/404.html"
heading: Whoops, it looks like you got lost
sub_heading: We broke this page, or it doesn't exist
banner_image: "/images/banner.png"
layout: error
publish_date: 2017-11-01 03:00:00 +0000
description: Whoops! It looks like this page doesn't exist
---

22 changes: 22 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: Belkirk College of Engineering
short_title: Belkirk
description: The Forestry.io Prouct Tour Demo
collections:
people:
title: People
output: true
permalink: "/about/people/:path/"
posts:
title: Posts
output: true
projects:
title: Projects
output: true
permalink: "/projects/:path/"
publications:
title: Publications
output: false
permalink: "/publications/:path/"
gems:
- jekyll-menus
- jekyll-feed
4 changes: 4 additions & 0 deletions _data/departments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
staff: Belkirk Staff
board: Management Board
advisor: Advisory Board
10 changes: 10 additions & 0 deletions _data/information.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
phone: "+1 929 391 0976"
email: [email protected]
address_1: 500 University Ave
address_2: ''
city: New York
state: NY
postal_code: 10006
country: US
twitter: forestryio
15 changes: 15 additions & 0 deletions _includes/address.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% if site.data.information %}
{% assign info = site.data.information %}
<p>
{% if site.title %}{{ site.title }}<br />{% endif %}
<br />
{% if info.address_1 %}{{ info.address_1 }}<br />{% endif %}
{% if info.address_2 %}{{ info.address_2 }}<br />{% endif %}
{% if info.country and info.state and info.city %}
{{ info.city }}, {{ info.state }}, {{ info.country }}<br />
{% endif %}
<br />
{% if info.phone %}<a href="tel:{{ info.phone }}" title="{{ info.phone }}">{{ info.phone }}</a><br />{% endif %}
{% if info.email %}<a href="mailto:{{ info.email }}" title="{{ info.email }}">{{ info.email }}</a>{% endif %}
</p>
{% endif %}
39 changes: 39 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<footer class="site-footer">
<div class="container pure-g">
<div class="footer-col pure-u-1 pure-u-md-1-4">
<img src="{{ "/images/logo-white.png" | relative_url }}" alt="" class="footer-logo">
</div>
<div class="footer-col pure-u-1 pure-u-md-1-4">
<h3>About {{ site.short_title }}</h3>
<ul>
{% for item in site.menus.footer %}
<li><a href="{{ item.url | relative_url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</div>
<div class="footer-col pure-u-1 pure-u-md-1-4">
<h3>Projects</h3>
<ul>
{% for project in site.projects limit:5 %}
<li><a href="{{ project.url | relative_url }}">{{ project.title }}</a></li>
{% endfor %}
{% if site.projects | size > 5 %}
<li><a href="{{ "/projects/" | relative_url }}">See all projects</a></li>
{% endif %}
</ul>
</div>
<div class="footer-col pure-u-1 pure-u-md-1-4">
<h3>Contact</h3>
{% include address.html %}
</div>
</div>
<div class="copyright">
<p>&copy;{{ 'now' | date: "%Y" }} {{ site.title }} - All Rights Reserved<br>
<a href="{{ "/admin" | relative_url }}">Site Admin</a>
</p>
</div>
</footer>
<!-- Javascript -->
<script src="{{ "/js/main.js" | relative_url }}" type="text/javascript"></script>
</body>
</html>
8 changes: 8 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<header class="site-header">
<div class="container">
<h1 class="logo"><a href="{{ "/" | absolute_url }}">{{ site.name }}</a></h1>
<nav class="main-nav">
{% include nav-main.html %}
</nav>
</div>
</header>
21 changes: 21 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ page.title }} - {{ site.title }}</title>
<meta name="description" content="{% if .page.description %}{{ .page.description }}{% else %}{{ .site.description }}{% endif %}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="{{ "/images/favicon/favicon-32x32.png" | relative_url }}" sizes="32x32" />
<link rel="icon" type="image/png" href="{{ "/favicon/favicon-16x16.png" | relative_url }}" sizes="16x16" />
<link rel="stylesheet" href="https://yui-s.yahooapis.com/pure/0.6.0/pure-min.css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="https://yui-s.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
<!--<![endif]-->
<link rel="stylesheet" href="{{ "/css/main.css" | relative_url }}">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
</head>
<body>
22 changes: 22 additions & 0 deletions _includes/hero.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<section id="banner" style="background-image: url('{{ page.banner_image }}');">
<div class="container pure-g">
<div class="pure-u-1 pure-u-md-1">
<header class="call-to-action">
<h1>{{ include.heading }}</h1>
<h2>{{ include.sub_heading }}</h2>
{% if include.button %}
<div><a href="{{ include.button.href | relative_url }}" class="pure-button button-success button-xlarge" title="{{ include.button.text }}">{{ include.button.text }} <i class="fa fa-chevron-right"></i></a></div>
{% endif %}
</div>
</header>
</div>
</section>
<section class="main-message">
<div class="container pure-g">
<div class="pure-u-1 pure-u-md-1">
<div class="content content-narrow">
<p>{{ include.description }}</p>
</div>
</div>
</div>
</section>
36 changes: 36 additions & 0 deletions _includes/nav-main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{% assign url = page.url | remove:'index.html' %}
<ul class="navigation">
{% for link in site.menus.navigation %}
<li class="{% if link.children %}nested {% endif %}{% if url == link.url %}current{% endif %}">
{% if link.children %}
<ul class="first-level">
{% for child in link.children %}
<li>
{% if child.children %}
<ul class="second-level">
{% for child in child.children %}
<li>
<a href="{{ child.url | relative_url }}">{{ child.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
<a href="{{ child.url | relative_url }}"{% if child.target %} target="_blank" {% endif %}>
{{ child.title }}
{% if child.childen %}
<i class='icon-right-dir-2'></i>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
<a href="{{ link.url | relative_url }}"{% if link.target %} target="_blank" {% endif %}>
{{ link.title }}
{% if link.childen %}
<i class='icon-chevron-down'></i>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
19 changes: 19 additions & 0 deletions _includes/sub-header-wide.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<nav class="breadcrumbs">
<div class="container">
{% assign crumbs = page.url | split: "/" %}
<ul>
<li><a href="{{ site.baseurl | default "/" }}">Home</a>&nbsp;<i class="fa fa-chevron-right"></i></li>
{% for crumb in crumbs offset: 1 %}
{% if forloop.last %}
<li class="active">{{ page.title }}</li>
{% else %}
<li>
<a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">
{{ crumb | replace:'-',' ' | capitalize }}
</a>&nbsp;<i class="fa fa-chevron-right"></i>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</nav>
54 changes: 54 additions & 0 deletions _layouts/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{% include header.html %}
{% include head.html %}
{% include hero.html heading=page.heading sub_heading=page.sub_heading description=page.description button=page.hero_button %}
<section class="about">
<div class="container pure-g">
<div class="pure-u-1">
<div class="content content-narrow">
{{ content }}
</div>
</div>
</div>
</section>
<section class="column-list-layout">
<div class="container pure-g">
<div class="pure-u-1">
<div class="content">
<h2 class="section-heading">Belkirk Staff</h2>
<div class="pure-g">
{% assign people = site.people | where:"role","staff" %}
{% for person in people %}
<div class="pure-u-1 pure-u-md-1-4">
<div class="post">
<div class="post-header">
{% if person.thumbnail and person.thumbnail != "" %}
<img src="{{ person.thumbnail | absolute_url }}" alt="{{ person.title }}">
{% else %}
<img src="{{ "/images/placeholder.png" | absolute_url }} alt="{{ person.title }}">
{% endif %}
</div>
<div class="post-body">
<h3><a href="{{ person.url | absolute_url }}">{{ person.title }}</a></h3>
{% if person.sub-title and page.sub-title != "" %}
<div class="subtitle">{{ person.sub-title }}</div>
{% endif %}
<p>{{ person.content | truncatewords: 25, "...<br /><br /> Continue reading →" }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>
<section class="contact main-message">
<div class="container pure-g">
<div class="pure-u-1 pure-u-md-1">
<div class="content content-narrow">
<p><a href="{{ "/contact/" | absolute_url }}" class="button-outline pure-button">Contact Us <i class="fa fa-chevron-right"></i></a></p>
</div>
</div>
</div>
</section>
{% include footer.html %}
15 changes: 15 additions & 0 deletions _layouts/archive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Archive
layout: default
---

<h1>Archive of posts from {{ page.date | date: "%Y" }}</h1>

<ul class="posts-list">
{% for post in page.posts %}
<li>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
<div class="post-date">{{ post.date | date: "%b %-d, %Y" }}</div>
</li>
{% endfor %}
</ul>
11 changes: 11 additions & 0 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: default
---

{% for post in site.posts %}
<div class="list-layout">
<h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
<div>{{ post.content | truncatewords: 30 }}</div>
<date>{{ post.date | date_to_string }}</date>
</div>
{% endfor %}
12 changes: 12 additions & 0 deletions _layouts/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: default
---

<div class="pure-g container">
<div class="pure-u-1 pure-u-md-2-5">
{% include address.html %}
</div>
<div class="pure-u-1 pure-u-md-3-5">
{{ page.map }}
</div>
</div>
21 changes: 21 additions & 0 deletions _layouts/default-wide.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% include header.html %}
{% include head.html %}
<header class="plain-header">
<div class="container pure-g">
<div class="pure-u-1 pure-u-md-1">
<h2>{{ page.title }}</h2>
{% if page.sub-title and page.sub-title != "" %}
<h3>{{ page.sub-title }}</h3>
{% endif %}
</div>
</div>
</header>
{% include sub-header-wide.html %}
<div class="container pure-g">
<div class="pure-u-1">
<div class="content">
{{ content }}
</div>
</div>
</div>
{% include footer.html %}
28 changes: 28 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% include header.html %}
{% include head.html %}
<header class="plain-header">
<div class="container pure-g">
<div class="pure-u-1 pure-u-md-1">
<div class="content content-narrow">
{% if page.collection == 'people' and page.thumbnail and page.thumbnail != "" %}
<div class="profile-photo">
<img src="{{ page.thumbnail | relative_url }}" alt="{{ page.title }}">
</div>
{% endif %}
<h2>{{ page.title }}</h2>
{% if page.sub-title and page.sub-title != "" %}
<h3>{{ page.sub-title }}</h3>
{% endif %}
</div>
</div>
</div>
</header>
{% include sub-header-wide.html %}
<div class="container pure-g">
<div class="pure-u-1">
<div class="content content-narrow">
{{ content }}
</div>
</div>
</div>
{% include footer.html %}
14 changes: 14 additions & 0 deletions _layouts/error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% include header.html %}
{% include head.html %}
<section id="banner" style="background-image: url('{{ page.banner_image }}');">
<div class="container pure-g">
<div class="pure-u-1 pure-u-md-1">
<header class="call-to-action">
<h1>{{ page.heading }}</h1>
<h2>{{ page.sub_heading }}</h2>
<div><a href="{{ "/" | relative_url }}" class="pure-button button-success button-xlarge">Go home <i class="fa fa-chevron-right"></i></a></div>
</div>
</header>
</div>
</section>
{% include footer.html %}
Loading

0 comments on commit 536fd79

Please sign in to comment.