Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add site configuration data

* Added site title, url and author to _config.yml
* Updated atom.xml to use configuration data
* Updated default layout to use configuration data + local atom.xml file
  • Loading branch information...
commit f8e50ba0be23eb9a3ca35b5a34a9878125265741 1 parent 74baa4b
@spinningarrow authored
Showing with 13 additions and 14 deletions.
  1. +3 −1 _config.yml
  2. +5 −5 _layouts/default.html
  3. +5 −8 atom.xml
View
4 _config.yml
@@ -4,4 +4,6 @@ permalink: /:year/:month/:day/:title
pygments: true
# Site configuration
-title: The Strange Blog
+title: The Strange Blog
+author: Sahil Bajaj
+url: spinningarrow.github.com
View
10 _layouts/default.html
@@ -3,17 +3,17 @@
<head>
<meta charset="utf-8">
- <meta name="author" content="Sahil ">
+ <meta name="author" content="{{ site.author }}">
<meta name="description" content="Just another Jekyll blog">
<title>{% if page.title %} {{ page.title }} &mdash; {% endif %}{{ site.title }}</title>
<!-- Feed -->
- <link href="http://feeds.feedburner.com/sahil" rel="alternate" title="{{ site.title }}" type="application/atom+xml">
+ <link href="/atom.xml" rel="alternate" title="{{ site.title }}" type="application/atom+xml">
<!-- Stylesheets -->
- <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/normalize.css">
- <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/highlight.css">
+ <link rel="stylesheet" href="/assets/css/normalize.css">
+ <link rel="stylesheet" href="/assets/css/highlight.css">
</head>
<body>
@@ -36,7 +36,7 @@
<footer>
<p>
- <a href="http://feeds.feedburner.com/sahil">Feed</a> &middot;
+ <a href="/atom.xml">Feed</a> &middot;
Powered by <a href="http://jekyllrb.com/">Jekyll</a>
</p>
</footer>
View
13 atom.xml
@@ -10,24 +10,21 @@ layout: nil
<link href="http://sahil.me/blog/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
- <id><!-- Enter ID here --></id>
+ <id>{{ site.url }}</id>
<author>
- <name>Sahil Bajaj</name>
- <email>mail@sahil.me</email>
+ <name>{{ site.author }}</name>
</author>
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
- <link href="http://sahil.me{{ site.baseurl }}{{ post.url }}/"/>
+ <link href="{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
- <id>http://sahil.me{{ site.baseurl }}{{ post.id }}</id>
+ <id>{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
<author>
- <name>Sahil</name>
- <uri>sahil.me</uri>
- <email>mail@sahil.me</email>
+ <name>{{ site.author }}</name>
</author>
</entry>
{% endfor %}
Please sign in to comment.
Something went wrong with that request. Please try again.