Skip to content

Commit

Permalink
Now forkable and configurable - Blog coming soon!
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Lourng committed Aug 11, 2014
1 parent 72c183d commit cb84127
Show file tree
Hide file tree
Showing 18 changed files with 341 additions and 147 deletions.
26 changes: 25 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,32 @@ location: New York City
description: "Welcome to the High School Hackers NYC meetup group!"
baseurl: ""
url: "http://nyc.hshackers.org"

# More settings
accent: "#E74C3C"
twitter: "hshackersnyc"
github: "hshackers/nyc"
contact: "hello at victorlourng dot com"
organizers: "John Mormon and Jon Moss"

# Get Meetup Notifications, visible or hidden
notifications: "visible"

# Get Meetup Notifications, IFTTT recipie URLs
email: "https://ifttt.com/recipes/186850-hs-hackers-nyc-e-mail-notifications"
gcal: "https://ifttt.com/recipes/186851-google-calendar-for-hs-hackers-nyc"
sms: ""
android: ""
ifttt: "http://ifttt.com/"

# Local Meetup Links
meetup1: "NYC TechBreakfast"
meetup1-url: "http://www.meetup.com/NYC-TechBreakfast/"
meetup2: "NY Tech Meetup"
meetup2-url: "http://www.meetup.com/ny-tech/"
meetup3: "Technical.ly Brooklyn Meetup"
meetup3-url: "http://www.meetup.com/technically-brooklyn/"

# Build settings
markdown: kramdown
permalink: pretty
permalink: pretty
45 changes: 33 additions & 12 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
<section id="notifications">
{% if site.notifications contains 'visible' %}
<section id="notifications" class="bg-accent">
<div class="c">

<h3>Get Meetup Notifications</h3>
<p class="rss-subscribe">Subscribe via <a href="{{ "/feed.xml" | prepend: site.baseurl }}"><i class="icon-broadcast"></i> RSS</a> | <a href="https://ifttt.com/recipes/186850-hs-hackers-nyc-e-mail-notifications" target="_blank"><i class="icon-envelope"></i> E-mail</a> | <a href="https://ifttt.com/recipes/186851-google-calendar-for-hs-hackers-nyc" target="_blank"><i class="icon-notebook"></i> Google Calendar</a> | <a href="http://ifttt.com" target="_blank"><i class="icon-chat"></i> SMS</a> | <a href="http://ifttt.com" target="_blank"><i class="icon-iphone"></i> Android</a> | <a href="http://ifttt.com" target="_blank"><i class="icon-bulb"></i> More on IFTTT</a></p>
<p class="rss-subscribe">
Subscribe via
<a href="{{ "/feed.xml" | prepend: site.baseurl }}"><i class="icon-broadcast"></i> RSS</a>
| {% if site.email %}
<a href="{{ site.email }}" target="_blank"><i class="icon-envelope"></i> E-mail</a>
| {% endif %}{% if site.gcal %}
<a href="{{ site.gcal }}" target="_blank"><i class="icon-notebook"></i> Google Calendar</a>
| {% endif %}{% if site.sms %}
<a href="{{ site.sms }}" target="_blank"><i class="icon-chat"></i> SMS</a>
| {% endif %}{% if site.andrid %}
<a href="{{ site.android }}" target="_blank"><i class="icon-iphone"></i> Android</a>
| {% endif %}
<a href="{{ site.ifttt }}" target="_blank"><i class="icon-bulb"></i> More on IFTTT</a>
</p>

</div>
</section>

{% endif %}

<footer>

Expand All @@ -22,28 +36,35 @@ <h3>{{ site.title }}</h3>
<a href="/about"><i class="icon-plus"></i> Learn More</a>
<br>
<a href="/about#code-of-conduct"><i class="icon-grid"></i> Code of Conduct</a>
</p>
</p>
</div>
<div class="col-33">
<h3>Other Meetups</h3>
<!-- List of meetups go here! -->
<p>
<a href="http://www.meetup.com/NYC-TechBreakfast/" target="_blank"><i class="icon-planet"></i> NYC TechBreakfast</a>
{% if site.meetup1 %}
<a href="{{ site.meetup1-url }}" target="_blank"><i class="icon-planet"></i> {{ site.meetup1 }}</a>
<br>
<a href="http://www.meetup.com/ny-tech/" target="_blank"><i class="icon-planet"></i> NY Tech Meetup</a>
{% endif %}
{% if site.meetup2 %}
<a href="{{ site.meetup2-url }}" target="_blank"><i class="icon-planet"></i> {{ site.meetup2 }}</a>
<br>
<a href="http://www.meetup.com/technically-brooklyn/" target="_blank"><i class="icon-planet"></i> Technical.ly Brooklyn Meetup</a>
{% endif %}
{% if site.meetup3 %}
<a href="{{ site.meetup3-url }}" target="_blank"><i class="icon-planet"></i> {{ site.meetup3 }}</a>
<br>
{% endif %}
<br>
<a href="http://philly.hshackers.org/" target="_blank"><i class="icon-planet"></i> HS Hackers Philadelphia</a>
<a href="http://locations.hshackers.org/" target="_blank"><i class="icon-planet"></i> HS Hackers Worldwide</a>
<br>
<a href="https://www.facebook.com/groups/PennAppsHS/events/" target="_blank"><i class="icon-facebook"></i> Facebook Group Events</a>
</p>
<h3>Stay in Touch</h3>
hello at victorlourng dot com
{{ site.contact }}
</div>
<div class="col-33 hidden-mobile">
<h3>@HSHackersNYC</h3>
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/HSHackersNYC" data-widget-id="484199749394784256"><i class="icon-twitter"></i> Tweets by @HSHackersNYC</a>
<h3>@{{ site.twitter }}</h3>
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/{{ site.twitter }}" data-widget-id="484199749394784256" data-screen-name="{{ site.twitter }}" data-link-color="{{ site.accent }}"><i class="icon-twitter"></i> Tweets by @{{ site.twitter }}</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
Expand All @@ -54,7 +75,7 @@ <h3>@HSHackersNYC</h3>
<div class="footnote">
<div class="c">
<a class="to-the-moon right" href="#top"><i class="icon-pointer-up"></i> Back to Top</a>
<p>Created &amp; crafted with &nbsp; <i class="icon-heart love" title="love"></i> &nbsp; by <a href="http://victorlourng.com" target="_blank"><i class="icon-smile"></i> Victor Lourng</a>. Proudly hosted on <a href="http://github.com/hshackers/nyc/" target="_blank"><i class="icon-github"></i> GitHub Pages</a>.</p>
<p>Created &amp; crafted with &nbsp; <i class="icon-heart love" title="love"></i> &nbsp; by <a href="http://victorlourng.com" target="_blank"><i class="icon-smile"></i> Victor Lourng</a>. Proudly hosted on <a href="http://github.com/{{ site.github }}/" target="_blank"><i class="icon-github"></i> GitHub Pages</a>. <a href="http://prose.io/#hshackers/nyc/" target="_blank"><i class="icon-pencil"></i> Edit in Prose</a>.</p>
</div>
</div>

Expand Down
21 changes: 14 additions & 7 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,24 @@

<!-- Custom CSS -->
<link rel="stylesheet" href="{{ "/styles/style.css" | prepend: site.baseurl }}">

<style>
a, .text-accent, .dotted-link, p a, article a { color: {{ site.accent }}; }
.bg-accent, .logo, nav a.logo, .cover { background-color: {{ site.accent }}; color: white; }
blockquote:hover { border-left-color: {{ site.accent }}; }
</style>

<link rel="shortcut icon" href="/favicon.png">
<link rel="stylesheet" href="{{ "/styles/editme.css" | prepend: site.baseurl }}">

<link rel="shortcut icon" href="/favicon.png">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale = 1.0,maximum-scale=2.0,user-scalable=no">

<!-- Webapp -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Webapp -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

<!-- Apple Touch Icon -->
<link rel="apple-touch-icon" content="/favicon.png">
<link rel="apple-touch-icon-precomposed" href="favicon.png">
<!-- Apple Touch Icon -->
<link rel="apple-touch-icon" content="/favicon.png">
<link rel="apple-touch-icon-precomposed" href="favicon.png">

</head>
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<i class="icon-tools"></i>
<div>
HS Hackers
<small>New York City</small>
<small>{{ site.location }}</small>
</div>
</a>
<a href="#" onclick="$('nav').toggleClass('expanded')" class="menu-button visible-mobile right">
Expand Down
24 changes: 24 additions & 0 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
layout: default
---

<div class="c">
<header class="post-header">
<h1>{{ page.title }}</h1>
<p class="lead">{{ page.subtitle }}</p>
</header>
</div>

<!-- END COVER -->
</div>

<section class="post">

<div class="c">

<article class="post-content">
{{ content }}
</article>
</div>

</section>
17 changes: 17 additions & 0 deletions _posts/blog/2014-07-02-hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
categories: blog
layout: blog
title: Hello World!
subtitle: "This is a test."
permalink: "/hello-world/"
author: Victor Lourng
author-link: "http://victorlourng.com/"
background: "rgb(119, 40, 23)"
published: true
---

This is a test of the HS Hackers blog system.

Feel free to contribute to this repo and have fun!

> Nothing to see here!
File renamed without changes.
File renamed without changes.
77 changes: 39 additions & 38 deletions _prose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,42 @@ prose:
- /_includes
metadata:
_posts:
- name: "meetup"
field:
element: "hidden"
value: "meetup"
- name: "categories"
field:
element: "hidden"
value: "meetup"
- name: "permalink"
field:
element: "text"
label: "Permalink"
value: ""
- name: "date"
field:
element: "text"
label: "Date (YYYY-MM-DD HH:MM:SS)"
value: "2014-06-08 10:30:00"
- name: "host"
field:
element: "text"
label: "Host"
value: ""
- name: "address"
field:
element: "text"
label: "Address"
value: ""
- name: "link"
field:
element: "text"
label: "Link"
value: ""
- name: "background"
field:
element: "text"
label: "Background (CSS)"
value: "url() #03152A"
meetups:
- name: "meetup"
field:
element: "hidden"
value: "meetup"
- name: "categories"
field:
element: "hidden"
value: "meetup"
- name: "permalink"
field:
element: "text"
label: "Permalink"
value: ""
- name: "date"
field:
element: "text"
label: "Date (YYYY-MM-DD HH:MM:SS)"
value: "2014-06-08 10:30:00"
- name: "host"
field:
element: "text"
label: "Host"
value: ""
- name: "address"
field:
element: "text"
label: "Address"
value: ""
- name: "link"
field:
element: "text"
label: "Link"
value: ""
- name: "background"
field:
element: "text"
label: "Background (CSS)"
value: "url() #03152A"
10 changes: 5 additions & 5 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: "page"
title: "About"
caption: "Learn more"
subtitle: "Learn more about HS Hackers"
subtitle: "For high school students, by high school students."
icon: "user"
background: "#60D317"
permalink: "/about/"
Expand All @@ -11,17 +11,17 @@ navigation: "visible"

## Organizers

High School Hackers NYC is one of many [regional branches](http://hshackers.org/) of the HS Hackers meetup group across the country.
{{ site.title }} is one of many [regional branches](http://locations.hshackers.org/) of the High School Hackers meetup group across the country.

The New York City meetup group is run by John Mormon and Jon Moss.
The {{ site.title }} local meetup group in {{ site.location }} is run by {{ site.organizers }}.

## Press Contact

hello at victorlourng dot com
{{ site.contact }}

## Contribute

Take a look at the [readme.md](https://github.com/hshackers/nyc/blob/gh-pages/readme.md) file on GitHub.
Take a look at the [readme.md](https://github.com/{{ site.github }}/blob/gh-pages/readme.md) file on GitHub.

## Code of Conduct

Expand Down
55 changes: 55 additions & 0 deletions blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
layout: page
title: Blog (Coming Soon)
caption: Fresh &amp; hot
subtitle: Curated articles fresh off the press!
icon: newspaper
background: "#F15823"
permalink: /blog/
navigation: hidden
---

<h2>Upcoming Meetups</h2>
<div class="meetups">
{% assign curDate = site.time | date: '%s' %}
{% for post in site.posts %}
{% assign postStartDate = post.date | date: '%s' %}
{% if postStartDate >= curDate %}
<a class="post-link white-box" href="{{ post.url | prepend: site.baseurl }}">
<div class="preview" style="background:{{ post.background }}">
<div class="date">
<small>{{ post.date | date: "%B" }}</small>
{{ post.date | date: "%-d" }}
</div>
</div>
<h3>{{ post.title }}</h3>
<p>{{ post.date | date: "%H:%M" }} at {{ post.address }}</p>
</a>
<br>
{% endif %}
{% endfor %}
</div>
<br>

<h2>Recent Meetups</h2>
<div class="meetups">
{% assign curDate = site.time | date: '%s' %}
{% for post in site.posts %}
{% assign postStartDate = post.date | date: '%s' %}
{% if curDate > postStartDate %}
<a class="post-link white-box" href="{{ post.url | prepend: site.baseurl }}">
<div class="preview" style="background:{{ post.background }}">
<div class="date">
<small>{{ post.date | date: "%B" }}</small>
{{ post.date | date: "%-d" }}
</div>
</div>
<h3>{{ post.title }}</h3>
<p>{{ post.date | date: "%H:%M" }} at {{ post.address }}</p>
</a>
<br>
{% endif %}
{% endfor %}
</div>

<p>For the debugging purposes, this site was last built at {{ site.time | date: '%s' }} UNIX time.</p>
Loading

0 comments on commit cb84127

Please sign in to comment.