Commit 504391e3 authored by Michael T Bailey's avatar Michael T Bailey

The tags were missing smh - also remove extra shit

parent 309057b0
......@@ -3,4 +3,3 @@ ruby RUBY_VERSION
gem "json"
gem "jekyll"
gem "jekyll-feed"
\ No newline at end of file
......@@ -17,8 +17,6 @@ GEM
pathutil (~> 0.9)
rouge (~> 1.7)
safe_yaml (~> 1.0)
jekyll-feed (0.8.0)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.0)
sass (~> 3.4)
jekyll-watch (1.5.0)
......@@ -45,7 +43,6 @@ PLATFORMS
DEPENDENCIES
jekyll
jekyll-feed
json
RUBY VERSION
......
......@@ -31,8 +31,7 @@ exclude:
# Build settings
markdown: kramdown
plugins_dir:
- jekyll-feed
defaults:
# _pages
......@@ -42,9 +41,3 @@ defaults:
values:
layout: default
jumbotron: false
gravatar:
default_image: mm
size: 80
rating: g
secure: true
......@@ -20,7 +20,7 @@ permalink: /people/
</thead>
<tbody>
<tr>
<td><img class="img-circle img-responsive center center-block" src="{{ 'mstengle@gmu.edu' | gravatar }}" alt = "gravatar image"</td>
<td><img class="img-circle img-responsive center center-block" src="{{ 'mstengle@gmu.edu' | get_gravatar }}" alt = "gravatar image"></td>
<td><h5>Mark Stenglein</h5></td>
<td>
<a href="http://wiki.srct.gmu.edu/President"><h5>President</h5></a>
......@@ -28,7 +28,7 @@ permalink: /people/
<td><h5><em>mstengle</em></h5></td>
</tr>
<tr>
<td><img class="img-circle img-responsive center center-block" src="{{ 'mbaile18@gmu.edu' | gravatar }}" alt = "gravatar image"</td>
<td><img class="img-circle img-responsive center center-block" src="{{ 'mbaile18@gmu.edu' | get_gravatar }}" alt = "gravatar image"></td>
<td><h5>Michael Bailey</h5></td>
<td>
<a href="http://wiki.srct.gmu.edu/Systems_Administrator"><h5>Systems Admininstrator</h5></a>
......@@ -36,7 +36,7 @@ permalink: /people/
<td><h5><em>mbaile18</em></h5></td>
</tr>
<tr>
<td><img class="img-circle img-responsive center center-block" src="{{ 'dhaynes3@gmu.edu' | gravatar }}" alt = "gravatar image"</td>
<td><img class="img-circle img-responsive center center-block" src="{{ 'dhaynes3@gmu.edu' | get_gravatar }}" alt = "gravatar image"></td>
<td><h5>David Haynes</h5></td>
<td>
<a href="http://wiki.srct.gmu.edu/Vice_President"><h5>Vice President</h5></a>
......@@ -44,7 +44,7 @@ permalink: /people/
<td><h5><em>dhaynes3</em></h5></td>
</tr>
<tr>
<td><img class="img-circle img-responsive center center-block" src="{{ 'rhitt@gmu.edu' | gravatar }}" alt = "gravatar image"</td>
<td><img class="img-circle img-responsive center center-block" src="{{ 'rhitt@gmu.edu' | get_gravatar }}" alt = "gravatar image"></td>
<td><h5>Robert Hitt</h5></td>
<td>
<a href="http://wiki.srct.gmu.edu/Treasurer"><h5>Treasurer</h5></a>
......@@ -52,7 +52,7 @@ permalink: /people/
<td><h5><em>rhitt</em></h5></td>
</tr>
<tr>
<td><img class="img-circle img-responsive center center-block" src="{{ 'dkim74@gmu.edu' | gravatar }}" alt = "gravatar image"</td>
<td><img class="img-circle img-responsive center center-block" src="{{ 'dkim74@gmu.edu' | get_gravatar }}" alt = "gravatar image"></td>
<td><h5>Danny Kim</h5></td>
<td>
<a href="http://wiki.srct.gmu.edu/Secretary"><h5>Secretary</h5></a>
......@@ -60,7 +60,7 @@ permalink: /people/
<td><h5><em>dkim74</em></h5></td>
</tr>
<tr>
<td><img class="img-circle img-responsive center center-block" src="{{ 'kdobolyi@gmu.edu' | gravatar }}" alt = "gravatar image"</td>
<td><img class="img-circle img-responsive center center-block" src="{{ 'kdobolyi@gmu.edu' | get_gravatar }}" alt = "gravatar image"></td>
<td><h5>Kinga Dobolyi</h5></td>
<td>
<a href="http://wiki.srct.gmu.edu/Faculty_Advisor"><h5>Faculty Advisor</h5></a>
......
# Modified by Mark Stenglein, <mark@stengle.in>
# Only returns the URL itself back to the user.
#
# 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
#
# from https://tlattimore.com/blog/using-gravatar-in-jekyll/
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)}"
# Add our new liquid filter.
def get_gravatar(input)
"//www.gravatar.com/avatar/#{hash(input)}"
end
private
private :hash
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
# Clean up the email address and return hashed version.
def hash(email)
email_address = email ? email.downcase.strip : ''
Digest::MD5.hexdigest(email_address)
end
end
end
Liquid::Template.register_filter(Jekyll::GravatarFilter)
Liquid::Template.register_filter(Jekyll::GravatarFilter)
\ No newline at end of file
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