Commit 45552eba authored by Mark Stenglein's avatar Mark Stenglein

home, people, projects, calendar all work

parent f21d125f
# Localhost for dev
url : "http://127.0.0.1:4000"
# Analytics off for dev
analytics: false
......@@ -9,11 +9,11 @@
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
# Site settings
locale: "en-US"
title: Your awesome title
email: your-email@domain.com
locale : "en-US"
title : "SRCT"
email : "srct@gmu.edu"
description: "SRCTs home on the internet"
description : "SRCTs home on the internet"
# the subpath of your site, e.g. /blog
baseurl : ""
......@@ -51,4 +51,10 @@ defaults:
type: pages
values:
layout: default
jumbotron: false
gravatar:
default_image: mm
size: 80
rating: g
secure: true
{% include base_path %}
<div id="banner">
<div class="container">
<div class="row">
......
......@@ -17,33 +17,33 @@
<script src="/assets/js/bootstrap.min.js"></script>
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2014 Mason SRCT
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
</script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2014 Mason SRCT
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
</script>
<meta name="description" content="{{ site.description }}">
<!-- TODO: make this jekyll compliant -->
<title> <!-- block title endblock --></title>
<title>{{ site.title }}</title>
......@@ -10,7 +10,11 @@
{% include browser-upgrade.html %}
{% include navbar.html %}
{% include jumbotron.html %}
{% if page.jumbotron == true %}
{% include jumbotron.html %}
{% else %}
{% include banner.html %}
{% endif %}
<div class="container">
{{ content }}
......
{% extends "layouts/base.html" %}
{% block title %}
SRCT | Calendar
{% endblock %}
{% block pagetitle %}
Calendar
{% endblock %}
{% block description %}
Upcoming events and meetings!
{% endblock %}
{% block content %}
---
title: "Calendar"
description: "Upcoming events and meetings!"
permalink: /calendar/
---
<div class="text-center">
<div class="googlecal-container">
......@@ -30,4 +22,3 @@ Upcoming events and meetings!
</div> -->
</div>
{% endblock %}
......@@ -3,9 +3,9 @@ layout: default
permalink: /
title: SRCT
description: "test"
jumbotron: true
---
<div class="row smidge">
<div class="col-md-12 text-center">
<h4>
......
{% extends "layouts/base.html" %}
{% block title %}
SRCT | People
{% endblock %}
{% block pagetitle %}
People
{% endblock %}
{% block description %}
The people who make up this community of developers!
{% endblock %}
{% block content %}
---
title: "People"
description: "The people who make up this community of developers!"
permalink: /people/
---
<div class="row">
<legend><strong>
<a href="http://wiki.srct.gmu.edu/Executive_Board">Executive Board</a>
......@@ -296,4 +291,4 @@ The people who make up this community of developers!
</table>
</div>
</div>
{% endblock %}
{% extends "layouts/base.html" %}
{% block title %}
SRCT | Projects
{% endblock %}
{% block pagetitle %}
Projects
{% endblock %}
{% block description %}
Projects created and maintained by SRCT's members.
{% endblock %}
{% block content %}
---
title: "Projects"
permalink: /projects/
description: "Projects created and maintained by SRCT's members."
---
<!--
<p class="text-center">
......@@ -524,4 +516,3 @@ experience leading a development team.</small></font></legend>
</div>
{% endblock %}
# This is the Jekyll Gravatar Filter
#
# Place this file in your plugins directory
#
# Usage:
# {{ email@domain.com | gravatar }}
#
# You may want to set up those settings in _config.yml:
#
# gravatar:
# default_image: mm
# size: 20
# rating: g
# secure: true
# force: y
#
# Look at https://en.gravatar.com/site/implement/images/ to get know what values you can use
#
# If you are in a need of having different settings for different contexts
# like pages or posts then you can add context:
# gravatar:
# some_context:
# size: 20
# force: y
# some_other_context:
# size: 80
# size: 40
# default_image: mm
# And use it like that:
# {{ email | gravatar:'some_context' }}
#
# Any argument missing in context are taken from default settings or,
# if none provided, are set to nil
#
#
# Michał Ostrowski, <ostrowski.michal@gmail.com>
# repo@github: https://github.com/espresse/jekyll_gravatar_filter
#
# blog: http://espresse.net
#
require 'digest/md5'
module Jekyll
module GravatarFilter
def gravatar(email_address, gravatar_mode=nil)
@gravatar_mode = gravatar_mode
email_address ||= ""
return "#{gravatar_url(email_address)}"
end
private
def gravatar_url(email_address)
url = "#{gravatar_protocol}://www.gravatar.com/avatar/#{gravatar_hash(email_address)}"
url += "?" + gravatar_options.join('&') unless gravatar_options.empty?
url
end
def gravatar_protocol
protocol = gravatar_config["secure"] ? "https" : "http"
end
def gravatar_hash(email_address)
hash = Digest::MD5.hexdigest(email_address.downcase.gsub(/\s+/, ""))
end
def gravatar_config
return @gravatar_config if @gravatar_config
@gravatar_config = Jekyll.configuration({})['gravatar'] || {}
unless @gravatar_config.empty?
mode_config = (@gravatar_mode and @gravatar_config[@gravatar_mode]) ? @gravatar_config[@gravatar_mode] : @gravatar_config
@gravatar_config = @gravatar_config.merge mode_config
end
@gravatar_config
end
def gravatar_options
opts = []
opts.push "s=#{gravatar_config['size']}" if gravatar_config["size"]
opts.push "r=#{gravatar_config['rating']}" if gravatar_config["rating"]
opts.push "d=#{gravatar_config['default_image']}" if gravatar_config["default_image"]
opts.push "f=#{gravatar_config['force']}" if gravatar_config['force']
opts
end
end
end
Liquid::Template.register_filter(Jekyll::GravatarFilter)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment