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

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 @@ ...@@ -9,11 +9,11 @@
# 'bundle exec jekyll serve'. If you change this file, please restart the server process. # 'bundle exec jekyll serve'. If you change this file, please restart the server process.
# Site settings # Site settings
locale: "en-US" locale : "en-US"
title: Your awesome title title : "SRCT"
email: your-email@domain.com email : "srct@gmu.edu"
description: "SRCTs home on the internet" description : "SRCTs home on the internet"
# the subpath of your site, e.g. /blog # the subpath of your site, e.g. /blog
baseurl : "" baseurl : ""
...@@ -51,4 +51,10 @@ defaults: ...@@ -51,4 +51,10 @@ defaults:
type: pages type: pages
values: values:
layout: default layout: default
jumbotron: false
gravatar:
default_image: mm
size: 80
rating: g
secure: true
{% include base_path %}
<div id="banner"> <div id="banner">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
......
...@@ -17,33 +17,33 @@ ...@@ -17,33 +17,33 @@
<script src="/assets/js/bootstrap.min.js"></script> <script src="/assets/js/bootstrap.min.js"></script>
<script> <script>
/* /*
@licstart The following is the entire license notice for the @licstart The following is the entire license notice for the
JavaScript code in this page. JavaScript code in this page.
Copyright (C) 2014 Mason SRCT Copyright (C) 2014 Mason SRCT
The JavaScript code in this page is free software: you can The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option) Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY; any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details. FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source. through which recipients can access the Corresponding Source.
@licend The above is the entire license notice @licend The above is the entire license notice
for the JavaScript code in this page. for the JavaScript code in this page.
*/ */
</script> </script>
<meta name="description" content="{{ site.description }}"> <meta name="description" content="{{ site.description }}">
<!-- TODO: make this jekyll compliant --> <!-- TODO: make this jekyll compliant -->
<title> <!-- block title endblock --></title> <title>{{ site.title }}</title>
...@@ -10,7 +10,11 @@ ...@@ -10,7 +10,11 @@
{% include browser-upgrade.html %} {% include browser-upgrade.html %}
{% include navbar.html %} {% include navbar.html %}
{% include jumbotron.html %} {% if page.jumbotron == true %}
{% include jumbotron.html %}
{% else %}
{% include banner.html %}
{% endif %}
<div class="container"> <div class="container">
{{ content }} {{ content }}
......
{% extends "layouts/base.html" %} ---
{% block title %} title: "Calendar"
SRCT | Calendar description: "Upcoming events and meetings!"
{% endblock %} permalink: /calendar/
---
{% block pagetitle %}
Calendar
{% endblock %}
{% block description %}
Upcoming events and meetings!
{% endblock %}
{% block content %}
<div class="text-center"> <div class="text-center">
<div class="googlecal-container"> <div class="googlecal-container">
...@@ -30,4 +22,3 @@ Upcoming events and meetings! ...@@ -30,4 +22,3 @@ Upcoming events and meetings!
</div> --> </div> -->
</div> </div>
{% endblock %}
...@@ -3,9 +3,9 @@ layout: default ...@@ -3,9 +3,9 @@ layout: default
permalink: / permalink: /
title: SRCT title: SRCT
description: "test" description: "test"
jumbotron: true
--- ---
<div class="row smidge"> <div class="row smidge">
<div class="col-md-12 text-center"> <div class="col-md-12 text-center">
<h4> <h4>
......
{% extends "layouts/base.html" %} ---
{% block title %} title: "People"
SRCT | People description: "The people who make up this community of developers!"
{% endblock %} permalink: /people/
{% block pagetitle %} ---
People
{% endblock %}
{% block description %}
The people who make up this community of developers!
{% endblock %}
{% block content %}
<div class="row"> <div class="row">
<legend><strong> <legend><strong>
<a href="http://wiki.srct.gmu.edu/Executive_Board">Executive Board</a> <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! ...@@ -296,4 +291,4 @@ The people who make up this community of developers!
</table> </table>
</div> </div>
</div> </div>
{% endblock %}
{% extends "layouts/base.html" %} ---
{% block title %} title: "Projects"
SRCT | Projects permalink: /projects/
{% endblock %} description: "Projects created and maintained by SRCT's members."
---
{% block pagetitle %}
Projects
{% endblock %}
{% block description %}
Projects created and maintained by SRCT's members.
{% endblock %}
{% block content %}
<!-- <!--
<p class="text-center"> <p class="text-center">
...@@ -524,4 +516,3 @@ experience leading a development team.</small></font></legend> ...@@ -524,4 +516,3 @@ experience leading a development team.</small></font></legend>
</div> </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