Migrate website to Jekyll
This commit is contained in:
parent
dd18317df0
commit
7794f55afe
3
_config.yml
Normal file
3
_config.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Don't interprete hard breaks in Textile
|
||||||
|
redcloth:
|
||||||
|
hard_breaks: false
|
|
@ -2,30 +2,34 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
<!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:}">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}">
|
||||||
<head>
|
<head>
|
||||||
<title>The Luon Network - {title: }</title>
|
<title>The Luon Network - {{ page.title }}</title>
|
||||||
<link href="{relocatable: default.css}" rel="stylesheet"/>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
<meta name="keywords" content="luon, network, linux, debian, system administration"/>
|
<meta name="keywords" content="luon, network, linux, debian, system administration"/>
|
||||||
<meta name="description" content="The main site of the Luon Network;"/>
|
<meta name="description" content="The main site of the Luon Network;"/>
|
||||||
<meta name="robots" content="all"/>
|
<meta name="robots" content="all"/>
|
||||||
|
<link href="default.css" rel="stylesheet"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<h1>The Luon Network; ‒ {title: }</h1>
|
<h1>The Luon Network; ‒ {{ page.title }}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="menu">
|
<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>
|
||||||
|
|
||||||
<div id="body">
|
<div id="body">
|
||||||
<webgen:block name="content"/>
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer" class="bar">
|
<div id="footer" class="bar">
|
||||||
This page was last updated on <strong>{filemtime: }</strong><br/>
|
This site was (re)generated with <a href="http://jekyllrb.com">Jekyll</a> on <strong>{{ site.time | date: '%Y-%m-%d' }}</strong>
|
||||||
This site is (re)generated with <a href="http://webgen.rubyforge.org">webgen</a> on <strong>{date: }</strong>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: About Us
|
title: About Us
|
||||||
in_menu: true
|
layout: default
|
||||||
|
weight: 10
|
||||||
---
|
---
|
||||||
h2. About the Luon Network;
|
h2. About the Luon Network;
|
||||||
|
|
29
config.yaml
29
config.yaml
|
@ -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'
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Contact Info
|
title: Contact Info
|
||||||
in_menu: true
|
layout: default
|
||||||
|
weight: 40
|
||||||
---
|
---
|
||||||
h2. Luon Network Contact Info;
|
h2. Luon Network Contact Info;
|
||||||
|
|
|
@ -142,13 +142,6 @@ table td {
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu a {
|
|
||||||
color: #594d3c;
|
|
||||||
background-color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu a:hover {
|
#menu a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
@ -164,13 +157,13 @@ table td {
|
||||||
padding: 0.5em 0em; /* inter-item padding */
|
padding: 0.5em 0em; /* inter-item padding */
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu li.webgen-menu-item-selected {
|
#menu li a {
|
||||||
font-weight: bold;
|
color: #594d3c;
|
||||||
|
background-color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu li > ul {
|
#menu li a.active {
|
||||||
font-weight: normal;
|
font-weight: bold;
|
||||||
padding-top: 0.5em; /* padding in front of first item */
|
|
||||||
padding-left: 1.2em; /* indentation */
|
|
||||||
padding-right: 0em;
|
|
||||||
}
|
}
|
|
@ -1,3 +0,0 @@
|
||||||
$LOAD_PATH << "ext"
|
|
||||||
|
|
||||||
require "stat"
|
|
61
ext/stat.rb
61
ext/stat.rb
|
@ -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
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Home
|
title: Home
|
||||||
in_menu: true
|
layout: default
|
||||||
directoryName: The Luon Network;
|
weight: 0
|
||||||
---
|
---
|
||||||
h2. Welcome to the Luon Network;
|
h2. Welcome to the Luon Network;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Some Links
|
title: Some Links
|
||||||
in_menu: true
|
layout: default
|
||||||
|
weight: 30
|
||||||
---
|
---
|
||||||
h2. Luon Network Links;
|
h2. Luon Network Links;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Our Services
|
title: Our Services
|
||||||
in_menu: true
|
layout: default
|
||||||
|
weight: 20
|
||||||
---
|
---
|
||||||
h2. Luon Network Services;
|
h2. Luon Network Services;
|
||||||
|
|
Loading…
Reference in a new issue