Migrate website to Jekyll

This commit is contained in:
Paul van Tilburg 2015-04-03 21:51:32 +02:00
parent dd18317df0
commit 7794f55afe
11 changed files with 33 additions and 122 deletions

3
_config.yml Normal file
View File

@ -0,0 +1,3 @@
# Don't interprete hard breaks in Textile
redcloth:
hard_breaks: false

View File

@ -2,30 +2,34 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}">
<head>
<title>The Luon Network - {title: }</title>
<link href="{relocatable: default.css}" rel="stylesheet"/>
<title>The Luon Network - {{ page.title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="keywords" content="luon, network, linux, debian, system administration"/>
<meta name="description" content="The main site of the Luon Network;"/>
<meta name="robots" content="all"/>
<link href="default.css" rel="stylesheet"/>
</head>
<body>
<div id="content">
<div id="header">
<h1>The Luon Network; &#8210; {title: }</h1>
<h1>The Luon Network; &#8210; {{ page.title }}</h1>
</div>
<div id="menu">
{menu: {used_nodes: all}}
{% assign sorted_pages = site.pages | sort:"weight" %}
<ul>
{% for p in sorted_pages %}
<li><a {% if p.url == page.url %}class="active"{% endif %} href="{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
</ul>
</div>
<div id="body">
<webgen:block name="content"/>
{{ content }}
</div>
<div id="footer" class="bar">
This page was last updated on <strong>{filemtime: }</strong><br/>
This site is (re)generated with <a href="http://webgen.rubyforge.org">webgen</a> on <strong>{date: }</strong>
This site was (re)generated with <a href="http://jekyllrb.com">Jekyll</a> on <strong>{{ site.time | date: '%Y-%m-%d' }}</strong>
</div>
</div>
</body>

View File

@ -1,6 +1,7 @@
---
---
title: About Us
in_menu: true
layout: default
weight: 10
---
h2. About the Luon Network;

View File

@ -1,29 +0,0 @@
#####
# This is the YAML configuration file for webgen used to set configuration options.
#
# The general syntax is:
#
# configuration.option.name: value
#
# For example, to set a different default language, you would do:
#
# website.lang: de
#
# Have a look at the documentation of the individual configuration options to see the allowed format
# of the values. Since this is a YAML file, you can easily set configuration options as strings,
# integers, dates, arrays, hashes and more.
#
# The available configuration options can be found on the homepage in the Configuration Option
# Reference at
#
# http://webgen.rubyforge.org/documentation/reference_configuration.html
#
# Some common use cases are shown below.
#####
## The default processing pipeline for page files. If you use a different markup language you need to
## change 'markdown' to the short name of the content processor for the markup language.
default_processing_pipeline:
Page: erb,tags,textile,blocks,fragments
tag.date.format: '%A, %B %d %H:%M:%S %Z %Y'

View File

@ -1,6 +1,7 @@
---
title: Contact Info
in_menu: true
layout: default
weight: 40
---
h2. Luon Network Contact Info;

View File

@ -142,13 +142,6 @@ table td {
line-height: 1.2em;
}
#menu a {
color: #594d3c;
background-color: inherit;
text-decoration: none;
border-bottom: none;
}
#menu a:hover {
text-decoration: underline;
}
@ -164,13 +157,13 @@ table td {
padding: 0.5em 0em; /* inter-item padding */
}
#menu li.webgen-menu-item-selected {
font-weight: bold;
#menu li a {
color: #594d3c;
background-color: inherit;
text-decoration: none;
border-bottom: none;
}
#menu li > ul {
font-weight: normal;
padding-top: 0.5em; /* padding in front of first item */
padding-left: 1.2em; /* indentation */
padding-right: 0em;
#menu li a.active {
font-weight: bold;
}

View File

@ -1,3 +0,0 @@
$LOAD_PATH << "ext"
require "stat"

View File

@ -1,61 +0,0 @@
# -*- encoding: utf-8 -*-
#
# This webgen plugin extends the available tags with tags that can retrieve
# stat(2) information.
#
# Copyright (2012) Paul van Tilburg <paulvt@debian.org>
# This plugin is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
module Webgen::Tag
# Tag that puts the access time and date of the file on the page
class FileATimeTag
include Base
def call(tag, body, context)
atime = File.atime(File.join('src', context.content_node.node_info[:src]))
return atime.strftime(param('tag.fileatime.format'))
end
end # class FileADateTag
# Tag that puts the create time and date of the file on the page.
class FileCTimeTag
include Base
def call(tag, body, context)
ctime = File.ctime(File.join('src', context.content_node.node_info[:src]))
return ctime.strftime(param('tag.filectime.format'))
end
end # class FileCDateTag
# Tag that puts the modification time and date of the file on the page.
class FileMTimeTag
include Base
def call(tag, body, context)
mtime = File.mtime(File.join('src', context.content_node.node_info[:src]))
return mtime.strftime(param('tag.filemtime.format'))
end
end # class FileMDateTag
include Webgen::WebsiteAccess
website.config.tag.fileatime.format '%A, %B %d %H:%M:%S %Z %Y', :mandatory => 'default'
website.config.tag.filectime.format '%A, %B %d %H:%M:%S %Z %Y', :mandatory => 'default'
website.config.tag.filemtime.format '%A, %B %d %H:%M:%S %Z %Y', :mandatory => 'default'
website.config['contentprocessor.tags.map']['fileatime'] = FileATimeTag.to_s
website.config['contentprocessor.tags.map']['filectime'] = FileCTimeTag.to_s
website.config['contentprocessor.tags.map']['filemtime'] = FileMTimeTag.to_s
end

View File

@ -1,7 +1,7 @@
---
title: Home
in_menu: true
directoryName: The Luon Network;
layout: default
weight: 0
---
h2. Welcome to the Luon Network;

View File

@ -1,6 +1,7 @@
---
title: Some Links
in_menu: true
layout: default
weight: 30
---
h2. Luon Network Links;

View File

@ -1,6 +1,7 @@
---
---
title: Our Services
in_menu: true
layout: default
weight: 20
---
h2. Luon Network Services;