Skip to content

Commit 45dcff3

Browse files
committed
Adding personnel YML files and display pages
1 parent b69db84 commit 45dcff3

File tree

99 files changed

+297
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+297
-41
lines changed

Diff for: Gemfile

+55-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,59 @@
11
# frozen_string_literal: true
22

3-
source "https://rubygems.org"
3+
source 'https://rubygems.org'
44

5-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
5+
# Hello! This is where you manage which Jekyll version is used to run.
6+
# When you want to use a different version, change it below, save the
7+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
8+
#
9+
# bundle exec jekyll serve
10+
#
11+
# This will help ensure the proper Jekyll version is running.
12+
# Happy Jekylling!
13+
gem 'jekyll', '~> 4.2.0'
614

7-
# gem "rails"
8-
gem "jekyll"
15+
# This is needed for GitHub Flavored Markdown
16+
gem 'kramdown-parser-gfm'
17+
18+
group :development do
19+
# Check resulting HTML for dead links and other issues
20+
gem 'html-proofer', require: false
21+
22+
# Allow running this with rake (especially for rake check)
23+
gem 'rake', require: false
24+
25+
# Verify good coding practices in Ruby files
26+
# Pinning 1.12.x since 1.13 drops 2.4 support
27+
gem 'rubocop', '~>1.12.0', require: false
28+
29+
# Extension for Rake files
30+
gem 'rubocop-rake', require: false
31+
end
32+
33+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
34+
gem 'minima', '~> 2.5'
35+
36+
# If you have any plugins, put them here!
37+
group :jekyll_plugins do
38+
gem 'jekyll-feed', '~> 0.15'
39+
gem 'jekyll-include-cache'
40+
#gem 'jekyll-indico', '~> 0.3.0'
41+
# gem 'jekyll-indico', github: 'iris-hep/jekyll-indico', branch: 'main'
42+
end
43+
44+
# This is used like a library, not as a plugin
45+
gem 'jekyll-last-modified-at', '~> 1.3.0'
46+
47+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
48+
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
49+
50+
# Needed by Nokogiri sometimes
51+
gem 'pkg-config', '~> 1.1'
52+
53+
# Performance-booster for watching directories on Windows
54+
gem 'wdm', '~> 0.1.0' if Gem.win_platform?
55+
56+
# Pinning this for now since macOS + default Ruby needs this
57+
# Please use rbenv to pick Ruby versions; the next Jekyll release
58+
# will not work with macOS's Ruby 2.3
59+
gem 'ffi', '~> 1.10'

Diff for: _config.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
url: "" # the base hostname & protocol for your site, e.g. http://example.com
22
baseurl: "" # the subpath of your site, e.g. /blog
33
title: "" # the name of your site, e.g. ACME Corp.
4+
5+
markdown: kramdown
6+
plugins:
7+
- jekyll-feed
8+
- jekyll-include-cache
9+
10+
411
sass:
5-
sass_dir: assets/css
12+
sass_dir: _sass

Diff for: _data/institutions/fnal.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: Fermilab
2+
personnel:
3+
- o_gutsche

Diff for: _data/institutions/princeton.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: Princeton University
2+
personnel:
3+
- rct225

Diff for: _data/people/o_gutsche.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
active: true
2+
hidden: false
3+
institution: Fermilab
4+
name: Oliver Gutsche
5+
photo: "/assets/images/team/Oliver_Gutsche.jpg"
6+
shortname: o_gutsche
7+
title: Operations Program Manager
8+
website: https://gutsche.github.io/
9+
presentations:

Diff for: _includes/head.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<meta name="viewport" content="width=device-width, initial-scale=1">
33
<meta charset="utf-8">
44
<title>{{ page.title }} - US CMS Software and Computing</title>
5-
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
5+
<link rel="stylesheet" href="/assets/css/bootstrap.css" crossorigin="anonymous">
6+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
67
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js" integrity="sha384-SlE991lGASHoBfWbelyBPLsUlwY1GwNDJo3jSJO04KZ33K2bwfV9YBauFfnzvynJ" crossorigin="anonymous"></script>
78
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
89
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>

Diff for: _includes/institution_list.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% assign institution_list = site.data.institutions | keys | sort %}

Diff for: _includes/standard_person_card.md

+14

Diff for: _layouts/people.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!doctype html>
2+
3+
{% include layout_header_navbar.html %}
4+
5+
<div id="container">
6+
<div class="container page">
7+
<main role="main">
8+
<div class="presentation toppagelinks">
9+
<div class="inner">
10+
Team:
11+
<a href="/about/team.html">by institution</a>
12+
&#8226;
13+
<a href="/about/team_alphabetical.html">by name</a>.
14+
</div>
15+
</div>
16+
17+
{{ content }}
18+
</main>
19+
</div>
20+
{% include_cached footer.html %}
21+
</div>
22+
23+
24+
</body>
25+
</html>

Diff for: _plugins/filters.rb

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# frozen_string_literal: true
2+
3+
module IrisHep
4+
# Adding useful filters
5+
module Filters
6+
# Access the basename (all extensions)
7+
def basename(input, ext = '.*')
8+
File.basename(input, ext)
9+
end
10+
11+
# Sort by title, within groups of position if present
12+
def smart_title_sort(input)
13+
input.sort_by { |p| [p['position'] || 0, p['title'].downcase] }
14+
end
15+
16+
# Force an array to be an array of arrays
17+
def ensure_arrays(input)
18+
input.map do |v|
19+
return [] if v.nil?
20+
21+
v.is_a?(Array) ? v : [v]
22+
end
23+
end
24+
25+
# Force an item to be an array
26+
def ensure_array(input)
27+
return [] if input.nil?
28+
29+
input.is_a?(Array) ? input : [input]
30+
end
31+
32+
# Flatten an array of arrays
33+
def flat_map(input)
34+
ensure_arrays(input.lazy).flat_map { |p| p || [] }.to_a
35+
end
36+
37+
# Convert array of keys to array of values using a hash, nil where no mapping exists
38+
def hash_fetch(input, hash)
39+
input.map { |k| hash.fetch(k, nil) }
40+
end
41+
42+
# Keys of a hash
43+
def keys(input)
44+
input.keys
45+
end
46+
47+
# Values of a hash
48+
def values(input)
49+
input.values
50+
end
51+
52+
# Selects items where there is an overlap between items
53+
def where_overlap(input, key, values)
54+
input.select { |v| ensure_array(v[key]).to_set.intersect? values.to_set }
55+
end
56+
57+
# Sort "First ..., Last" by "last, first, ..."
58+
def last_name_sort(input, key)
59+
input.sort_by do |v|
60+
vals = v[key].downcase.split
61+
vals[-1..-1] + vals[0..-2]
62+
end
63+
end
64+
65+
# Print to console
66+
def puts(input, msg = '')
67+
print "#{msg} #{input}\n"
68+
input
69+
end
70+
71+
# Filter in range of days, can use nil
72+
def where_day_range(input, key, start_day, stop_day = nil)
73+
input.select do |v|
74+
start = start_day ? v[key] >= (Date.today - start_day) : true
75+
stop = stop_day ? v[key] < (Date.today - stop_day) : true
76+
start && stop
77+
end
78+
end
79+
80+
# Filter in range of months, can use nil
81+
def where_month_range(input, key, start_month, stop_month = nil)
82+
input.select do |v|
83+
start = start_month ? v[key] >= (Date.today << start_month) : true
84+
stop = stop_month ? v[key] < (Date.today << stop_month) : true
85+
start && stop
86+
end
87+
end
88+
89+
# Pretty-print a daterange
90+
def print_date_range(start, stop = nil)
91+
stop = stop.nil? ? start : stop
92+
if start.year != stop.year
93+
"#{start.strftime '%b&nbsp;%-d, %Y'}&ndash;#{stop.strftime '%b&nbsp;%-d, %Y'}"
94+
elsif start.month != stop.month
95+
"#{start.strftime '%b&nbsp;%-d'}&ndash;#{stop.strftime '%b&nbsp;%-d, %Y'}"
96+
elsif start.day != stop.day
97+
"#{start.strftime '%b&nbsp;%-d'}&ndash;#{stop.strftime '%-d, %Y'}"
98+
else
99+
start.strftime '%b&nbsp;%-d, %Y'
100+
end
101+
end
102+
103+
# Pretty print month date range
104+
def print_date_range_month(start, stop = nil)
105+
stop = stop.nil? ? start : stop
106+
if start.year == stop.year
107+
"#{start.strftime '%b'} &ndash; #{stop.strftime '%b, %Y'}"
108+
else
109+
"#{start.strftime '%b, %Y'} &ndash; #{stop.strftime '%b, %Y'}"
110+
end
111+
end
112+
end
113+
end
114+
115+
Liquid::Template.register_filter(IrisHep::Filters)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: _sass/main.scss

-30
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: assets/css/bootstrap/bootstrap-grid.scss renamed to assets/css/bootstrap-grid.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
---
2+
---
13
/*!
2-
* Bootstrap Grid v4.0.0 (https://getbootstrap.com)
4+
* Bootstrap Grid v4.1.3 (https://getbootstrap.com/)
35
* Copyright 2011-2018 The Bootstrap Authors
46
* Copyright 2011-2018 Twitter, Inc.
57
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)

Diff for: assets/css/bootstrap/bootstrap-reboot.scss renamed to assets/css/bootstrap-reboot.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
---
2+
---
13
/*!
2-
* Bootstrap Reboot v4.0.0 (https://getbootstrap.com)
4+
* Bootstrap Reboot v4.1.3 (https://getbootstrap.com/)
35
* Copyright 2011-2018 The Bootstrap Authors
46
* Copyright 2011-2018 Twitter, Inc.
57
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)

Diff for: assets/css/bootstrap/bootstrap.scss renamed to assets/css/bootstrap.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
---
2+
---
13
/*!
2-
* Bootstrap v4.0.0 (https://getbootstrap.com)
4+
* Bootstrap v4.1.3 (https://getbootstrap.com/)
35
* Copyright 2011-2018 The Bootstrap Authors
46
* Copyright 2011-2018 Twitter, Inc.
57
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)

Diff for: assets/css/main.scss renamed to assets/css/style.scss

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
---
3-
@import 'bootstrap/bootstrap';
3+
4+
@import "functions";
5+
@import "variables";
6+
@import "mixins";
47

58
body {
69
background: #FFF;
@@ -176,4 +179,4 @@ main {
176179
main {
177180
padding-top: 30px;
178181
}
179-
}
182+
}

Diff for: assets/images/team/Oliver_Gutsche.jpg

29.7 KB

Diff for: assets/images/team/Robert-Tuck.jpg

176 KB

Diff for: pages/about/team.md

+27

Diff for: pages/about/team_alphabetical.md

+21

0 commit comments

Comments
 (0)