Skip to content

Instantly share code, notes, and snippets.

@rudyjahchan
Created November 25, 2012 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rudyjahchan/4142545 to your computer and use it in GitHub Desktop.
Save rudyjahchan/4142545 to your computer and use it in GitHub Desktop.
Various Templates for Jekyll
---
layout: nil
---
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>rudyjahchan.com</title>
<link href="http://rudyjahchan.com/"/>
<link type="application/atom+xml" rel="self"
href="http://rudyjahchan.com/atom.xml"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://rudyjahchan.com/</id>
<author>
<name>Rudy Jahchan</name>
</author>
{% for post in site.posts %}
<entry>
<id>http://rudyjahchan.com{{ post.url }}</id>
<link type="text/html" rel="alternate" href="http://rudyjahchan.com{{ post.url }}"/>
<title>{{ post.title }}</title>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<author>
<name>Rudy Jahchan</name>
<uri>http://rudyjahchan.com/</uri>
</author>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>
permalink: /:year/:month/:day/:title/
---
layout: page
title: Contact
permalink: /contact/
---
{% include contact_form.html %}
<p>To work with Rudy or far better software developers, contact <a
href="http://www.carbonfive.com">Carbon Five</a>.</p>
<form action="http://getsimpleform.com/messages?form_api_token=[SIMPLEFORM_API_TOKEN]" method="post" class="form-inline hero-unit">
<!-- the redirect_to is optional, the form will redirect to the referrer on submission -->
<input type='hidden' name='redirect_to' value='http://rudyjahchan.com/contact/thanks/' />
<!-- all your input fields here.... -->
<p>Hi, Rudy!</p>
<p>My name is <input type='text' name='name' />, and I want to talk to you about
<select name="subject">
<option>a creative opportunity</option>
<option>developing an app</option>
<option>an interview or appearance</option>
<option>geek-gasms</option>
<option>something of interest to you</option>
</select>.</p>
<p><textarea name="details" style="width: 100%;" rows="10">You see ...</textarea></p>
<p>If you're interested you may contact me at
<input type="text" name="contact" />.</p>
<p>Cheers!</p>
<input type='submit' value='Send' class="btn btn-primary btn-large" />
</form>
---
layout: page
title: Contact
permalink: /contact/thanks/
---
<div class="alert alert-success">
<strong>Thanks for contacting me!</strong>
I'll do my best to get back within the day.
Cheers!
</div>
{% include contact_form.html %}
.video {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video object,
.video embed,
.video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
---
layout: nil
---
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Rudy Jahchan</title>
<link>http://rudyjahchan.com/</link>
<atom:link href="http://rudyjahchan.com/feeds/rss.xml" rel="self"
type="application/rss+xml" />
<description>{% capture description %}{{ include description.md }}{% endcapture %}
{{ description | markdownify | strip_html | xml_escape }}
</description>
<language>en-us</language>
<pubDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<lastBuildDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</lastBuildDate>
{% for post in site.posts %}
<item>
<title>{{ post.title }}</title>
<link>http://rudyjahchan.com{{ post.url }}</link>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<author>Rudy Jahchan</author>
<guid>http://rudyjahchan.com{{ post.url }}</guid>
<description>{{ post.content | xml_escape }}</description>
</item>
{% endfor %}
</channel>
</rss>
---
layout: nil
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://rudyjahchan.com</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://rudyjahchan.com/blog/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://rudyjahchan.com/about/</loc>
<lastmod>2011-02-07T20:59:36+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
{% for post in site.posts %}
<url>
<loc>http://rudyjahchan.com{{ post.url }}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
{% endfor %}
</urlset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment