summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_articles/2015-02-12-adding-articles-to-irssi.org.markdown25
-rw-r--r--_config.yml4
-rw-r--r--_includes/postmeta.html12
-rw-r--r--_layouts/post.html2
-rw-r--r--articles/index.markdown11
-rw-r--r--assets/css/style.css4
6 files changed, 53 insertions, 5 deletions
diff --git a/_articles/2015-02-12-adding-articles-to-irssi.org.markdown b/_articles/2015-02-12-adding-articles-to-irssi.org.markdown
new file mode 100644
index 0000000..ea6664d
--- /dev/null
+++ b/_articles/2015-02-12-adding-articles-to-irssi.org.markdown
@@ -0,0 +1,25 @@
+---
+layout: post
+title: "Contributing articles to irssi.org"
+author: "Nicolas Kuttler"
+email: "irssi@kuttler.eu"
+web: "http://kuttler.eu"
+---
+
+If you would like to contribute an article to [irssi.org](http://irssi.org)
+fork the [website's github repository](https://github.com/irssi/irssi.github.io)
+and add your article to the `_articles` directory.
+Use an existing article as template.
+
+If you like you can verify that your articles displays properly by installing
+[jekyll](http://jekyllrb.com) and running a command like
+`jekyll serve` inside the repository and connecting to
+`http://localhost:4000` with your web browser.
+
+TODO
+--
+
+- Make forking/git usage optional.
+- We could build a form with a [markdown editor](http://vuejs.org/examples/),
+ where should we submit it to though?
+- Policy for images and other included content?
diff --git a/_config.yml b/_config.yml
index f39f1c7..1df1331 100644
--- a/_config.yml
+++ b/_config.yml
@@ -14,3 +14,7 @@ email: staff@irssi.org
paginate: 8
paginate_path: "news/:num/"
+
+collections:
+ articles:
+ output: true
diff --git a/_includes/postmeta.html b/_includes/postmeta.html
index 3074fb9..d71b943 100644
--- a/_includes/postmeta.html
+++ b/_includes/postmeta.html
@@ -2,14 +2,18 @@
<p>
<small>
Posted by
- {% if node.email %}
+ {% if node.web %}
+ <a href="{{ node.web }}">{{ node.author }}</a>
+ {% elsif node.email %}
<a href="mailto:{{ node.email }}">{{ node.author }}</a>
{% else %}
{{ node.author }}
{% endif %}
- {% assign ordinalize = node.date | date: "%-d" %}
- on {{ node.date | date: "%B %-d" }}<sup>{% include ordinal.html ordinalize=ordinalize %}</sup>
- {{ node.date | date: "%Y" }}
+ {% if node.date %}
+ {% assign ordinalize = node.date | date: "%-d" %}
+ on {{ node.date | date: "%B %-d" }}<sup>{% include ordinal.html ordinalize=ordinalize %}</sup>
+ {{ node.date | date: "%Y" }}
+ {% endif %}
</small>
</p>
diff --git a/_layouts/post.html b/_layouts/post.html
index 5cf11df..8e1bfd0 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -2,6 +2,6 @@
layout: default
---
-<h2>{{ page.title }}</h2>
+<h1>{{ page.title }}</h1>
{% include postmeta.html node=page %}
{{ page.content | markdownify }}
diff --git a/articles/index.markdown b/articles/index.markdown
new file mode 100644
index 0000000..1f8c44f
--- /dev/null
+++ b/articles/index.markdown
@@ -0,0 +1,11 @@
+---
+title: Articles
+layout: default
+---
+
+Articles
+========
+
+{% for article in site.articles %}
+- [{{ article.title }}]({{ article.url }})
+{% endfor %}
diff --git a/assets/css/style.css b/assets/css/style.css
index 7d0fc1d..9731f01 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -20,3 +20,7 @@ h3 a {
.navbar-brand img {
margin-top: -14px;
}
+
+footer {
+ margin-top: 20ex;
+}