Commit b5d4ba79 authored by David Haynes's avatar David Haynes 🙆

Merge branch 'event-posts' into 'master'

Event page & Post structure (Closes #4)

Closes #4

See merge request srctweb!36
parents 13bc8ab4 36e7ebff
......@@ -10,6 +10,8 @@ baseurl : ""
# the base hostname & protocol for your site, e.g. http://example.com
url : "https://srct.gmu.edu"
# Permalink setting
permalink: /:categories/:slug/
# Social Sharing
twitter:
......
......@@ -3,6 +3,9 @@ main:
- title: "Projects"
url: "/projects/"
- title: "Events"
url: "/events/"
- title: "Calendar"
url: "/calendar/"
......
---
layout: default
---
{% for post in site.categories[page.category] %}
<h2>
<a href="{{ post.url | absolute_url }}">{{ post.title }}
<i class="fa fa-arrow-circle-right"></i>
</a>
</h2>
{% if page.category == 'events' %}
<h5>{{ post.event_date | date: "%A %B %-d, %Y" }}</h5>
{% else %}
<h5>{{ post.date | date: "%A %B %-d, %Y" }}</h5>
{% endif %}
<br />
{% endfor %}
\ No newline at end of file
---
layout: default
---
{% for post in site.categories[page.category] offset: 0 limit: 4 %}
<h1>
<a href="{{ post.url | absolute_url }}">{{ post.title }}</a>
</h1>
{% if page.category == 'events' %}
<h4>{{ post.event_date | date: "%A %B %-d, %Y" }}</h4>
{% else %}
<h4>{{ post.date | date: "%A %B %-d, %Y" }}</h4>
{% endif %}
<br />
<div class="row">
{% if post.hero_image %}
<div class="col-md-6">
<p>
<img class="img-fluid" src="{{ post.hero_image | absolute_url }}" alt={{ post.hero_alt }}>
</p>
</div>
<div class="col-md-6">
<p>
{{ post.excerpt }}
</p>
<p>
<a href="{{ post.url | absolute_url }}">Read More
<i class="fa fa-arrow-circle-right"></i>
</a>
</p>
</div>
{% else %}
{{ post.excerpt }}
<p>
<a href="{{ post.url | absolute_url }}">Read More
<i class="fa fa-arrow-circle-right"></i>
</a>
</p>
{% endif %}
</div>
<br />
{% endfor %}
<br />
{% if page.archive %}
<p><a href="{{ page.archive | aosulute_url }}"><i class="fa fa-arrow-circle-left"></i> Archive</a></p>
{% endif %}
\ No newline at end of file
---
layout: post
---
<h3><strong>When:</strong> {{ page.event_date | date: "%A %B %-d, %Y at %l:%M%P" }}</h3>
<h3><strong>Where:</strong> {{ page.location }}</h3>
<hr>
{{ content }}
\ No newline at end of file
{% include base_path %}
<!--todo: change this to be more unique later-->
<html lang="{{ site.locale | slice: 0,2 }}">
<head>
{% include head.html %}
</head>
<body>
{% include navbar.html %}
{% if page.hero_image %}
<!--The only reason I used <style> here was so that I could use front matter w/ CSS.-->
<style>
.postjumbo { background: url({{ page.hero_image }}) no-repeat; background-size: cover; background-position: 20%; box-shadow:
inset 0px 0px 20px #333; padding-top: 100px; padding-bottom: 100px; border-radius: unset; }
</style>
<div class="jumbotron postjumbo">
<div class="container">
<div class="d-flex justify-content-center flex-wrap">
<h1 style="color: white">{{ page.title }}</h1>
</div>
</div>
</div>
{% else %}
<div id="banner">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1>
<strong>{{ page.title }}</strong>
</h1>
{% if page.category != 'events' %}
<p class="text-muted">{{ page.date | date: "%A %B %-d, %Y" }}</p>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
<div class="container">
{{ content }}
</div>
</body>
<div id="footer">
{% include footer.html %}
</div>
{% include scripts.html %}
</html>
\ No newline at end of file
---
title: "Events Archive"
layout: archive
permalink: /archive/events/
category: events
---
---
title: "News Archive"
layout: archive
permalink: /archive/news/
category: news
---
---
layout: category
title: "Events"
description: "A listing of events we've held past, present, and future."
permalink: /events/
category: events
archive: /archive/events/
---
---
layout: category
title: "News"
description: "The latest information on our organization"
permalink: /news/
category: news
archive: /archive/news/
---
---
title: "Open Source Day 2017"
layout: event
categories: events
slug: ossday2017
date: 2017-08-29 00:00:00 -0400
event_date: 2017-10-07 09:30:00 -0500
location: "The Hub Rooms 1 and 2"
hero_image: "/assets/img/ossday2017.jpg"
hero_alt: "Participants at Open Source Day 2017"
---
Learn the tools and culture of open source development, meet great people, and help impact real projects during this all-day immersion workshop. No prior experience is needed for participation in this event: students of all levels of technical skill and from all majors are welcomed. (Not all contributions come in the form of code. It can be artwork, documenation and copy, translations, and more!) And yes, all meals and snacks are provided.
Open Source Day at Mason 2017 is organized by Mason student organization Student-Run Computing and Technology, with financial support from the George Mason Department of Computer Science.
The three years past we've held this event in co-ordination with the Boston-based nonprofit Openhatch through their
Open Source Comes to Campus initiative. Because that organization is now in the process of winding down its operations, this year we are incredibly excited to be teaching our own curriculum we've developed.
Participants will work in small groups with both outside open source professionals and trained student mentors to cover the practical skills needed to contribute to open source projects. They'll also hear talks by Mason faculty on open source history, and its use in academia as well as a discussion by a panel of open source contributors in industry.
Making open source more welcoming to newcomers and more diverse are mutually reinforcing goals, and we're committed to building as broad a group of contributors and greater community as we can. We hope you'll join us encouraging participation by women, minorities, and other members of groups generally underrepresented in tech.
\ No newline at end of file
This image diff could not be displayed because it is too large. You can view the blob instead.
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