Browse Source

Finish the site transition to Hakyll

master
Peter J. Jones 6 years ago
parent
commit
dde35bccfa

+ 6
- 0
assets/javascript/copyright.js View File

@@ -0,0 +1,6 @@
// Used in the footer to update the copyright statement.
function Copyright ($scope) {

// Fetch the current year once when this file is loaded.
$scope.year = (new Date()).getFullYear();
}

+ 0
- 6
assets/javascript/fadenav.js View File

@@ -1,6 +0,0 @@
angular.module('fadeNav', [])
.directive('fadeIn', function () {
return function (scope, element, attrs) {
alert("here");
};
});

+ 0
- 46
assets/stylesheets/logo-only.css View File

@@ -1,46 +0,0 @@
* {
margin: 0;
padding: 0;
}

body {
background-color: #000;
}

.biglogo {
position: absolute;
top: 50%;
left: 50%;
}

.biglogo img {
position: relative;
top: -263px;
left: -268px;
}

#nav {
position: absolute;
top: 50%;
left: 50%;
}

ul {
position: relative;
list-style-type: none;
left: -50%;
top: 200px;
}

li {
display: inline;
margin-right: 20px;
}

a {
font-size: 20px;
color: #444;
font-family: Helvetica, Arial, sans-serif;
text-transform: uppercase;
text-decoration: none;
}

assets/stylesheets/style.css → assets/stylesheets/style.scss View File

@@ -1,6 +1,50 @@
* {margin: 0; padding: 0;}
.clear {clear: both;}

/* The main logo-only page */
#logo-only {
background-color: #000;

.biglogo {
position: absolute;
top: 50%;
left: 50%;
}

.biglogo img {
position: relative;
top: -263px;
left: -268px;
}

#nav {
position: absolute;
top: 50%;
left: 50%;
}

ul {
position: relative;
list-style-type: none;
left: -50%;
top: 200px;
}

li {
display: inline;
margin-right: 20px;
}

a {
font-size: 20px;
color: #444;
font-family: Helvetica, Arial, sans-serif;
text-transform: uppercase;
text-decoration: none;
}
}

/* Content from other pages */
body {
color: #444;
font-family: Georgia, serif;
@@ -136,3 +180,13 @@ pre {
margin-right: 10px;
font-size: 12px;
}

/* Fading things in via CSS3 */
@keyframes fadein {
0% {opacity: 0}
100% {opacity: 1}
}

.fadein {
animation: fadein 2s;
}

+ 37
- 0
contact.md View File

@@ -0,0 +1,37 @@
---
title: Contact Us
---

# Contact pmade inc.

<div class="contact">

## Mailing Address

| pmade inc.
| P.O. Box 270265
| Louisville, CO 80027

</div>


<div class="contact">

## Send a Message

Get in touch with us via our [contact form][form] on our training site
[Devalot.com][devalot].

</div>

<div class="contact">

## Peter's Software

Learn more about [Peter's software][labs].

</div>

[form]: http://www.devalot.com/contact.html
[devalot]: http://www.devalot.com/
[labs]: /labs/index.html

+ 2
- 2
index.html View File

@@ -1,9 +1,9 @@
<div ng-app="fadeNav">
<div>
<div class="biglogo">
<img src="/assets/images/logobg.png"/>
</div>

<div style="display:none" data-fade-in>
<div id="nav" class="fadein">
<ul>
<li><a href="/labs/index.html">Labs</a></li>
<li><a href="/contact.html">Contact</a></li>

+ 77
- 53
labs/index.md View File

@@ -11,65 +11,89 @@ you are looking for one of his principal projects.

## Current Projects Accessible Through Git

| Name | Description | Git Clone URL |
|------------+------------------------------------------------------------------------------------+----------------------------|
| AdminTools | Automated FreeBSD administration | git://pmade.com/admintools |
| Banter | Comment [engine](http://rails-engines.org/) for Ruby on Rails | git://pmade.com/banter |
| BareCMS | Minimalistic CMS [engine](http://rails-engines.org/) for Ruby on Rails | git://pmade.com/barecms |
| Bolt | Authentication/Authorization [engine](http://rails-engines.org/) for Ruby on Rails | git://pmade.com/bolt |
| Bowtie | Ruby on Rails application management tool | git://pmade.com/bowtie |
| Elisp | Random Emacs Lisp files | git://pmade.com/elisp |
| JsExtras | Random JavaScript for Ruby on Rails applications | git://pmade.com/jsextras |
| rc | Peter's configuration files (zsh, emacs, etc.) | git://pmade.com/rc |
| Name | Description | URL or Clone Command |
|------------------+-----------------------------------------------------------------+----------------------------------------|
| AdminTools | Automated FreeBSD administration | `git clone git://pmade.com/admintools` |
| Banter | Comment Rails Engine for Ruby on Rails | `git clone git://pmade.com/banter` |
| BareCMS | Minimalistic CMS Rails Engine for Ruby on Rails | `git clone git://pmade.com/barecms` |
| Bolt | Authentication/Authorization Rails Engine for Ruby on Rails | `git clone git://pmade.com/bolt` |
| Bowtie | Ruby on Rails application management tool | `git clone git://pmade.com/bowtie` |
| Elisp | Random Emacs Lisp files | [Github Repository][elisp] |
| JsExtras | Random JavaScript for Ruby on Rails applications | `git clone git://pmade.com/jsextras` |
| bufshow | Presentation tool using Emacs and OrgMode | [Github Repository][bufshow] |
| eldoro | Emacs major mode to time and track via the Pomodoro technique | `git clone git://pmade.com/eldoro` |
| grunt | Manage Unix system configurations with GNU Make | [Github Repository][grunt] |
| pdf-fdf | Ruby Gem to help fill out PDF forms | [Github Repository][pdf-fdf] |
| rc | Peter's configuration files (zsh, emacs, etc.) | `git clone git://pmade.com/rc` |
| themoviedb | Haskell library to pull data from [TheMovieDB][themoviedb-site] | [Github Repository][themoviedb] |
| thetvdb | Haskell library to pull data from [TheTVDB][thetvdb-site] | [Github Repository][thetvdb] |
| unix-starter-kit | Configuration files for students new to Unix | [Github Repository][usk] |
| vimeta | Utility to update the metadata in video files | [Github Repository][vimeta] |

[bufshow]: https://github.com/pjones/bufshow
[elisp]: https://github.com/pjones/elisp
[grunt]: https://github.com/pjones/grunt
[pdf-fdf]: https://github.com/pjones/pdf-fdf
[themoviedb-site]: http://www.themoviedb.org/
[themoviedb]: https://github.com/pjones/themoviedb
[thetvdb-site]: http://thetvdb.com/
[thetvdb]: https://github.com/pjones/thetvdb
[usk]: https://github.com/pjones/unix-starter-kit
[vimeta]: https://github.com/pjones/vimeta

## Projects That Are Now Externally Maintained

| Name | Description |
|--------------------------------------------------+---------------------------------------------------------|
| [PDF::Reader](http://github.com/yob/pdf-reader) | Ruby library for parsing/scraping PDF files |
| [xmlwrapp](https://github.com/vslavik/xmlwrapp) | C++ library for working with XML and XSLT |
| Name | Description |
|---------------------------+------------------------------------------------------------|
| [PDF::Reader][pdf-reader] | Ruby library for parsing/scraping PDF files |
| [xmlwrapp][] | C++ library for working with XML and XSLT |
| [Netxx][] | C++ library for exception safe sockets and TLS connections |

[pdf-reader]: http://github.com/yob/pdf-reader
[xmlwrapp]: https://github.com/vslavik/xmlwrapp
[netxx]: http://sourceforge.net/projects/netxx/

## Older Unmaintained Projects (Incomplete)

| Name | Description | Source Available | Last Year Maintained |
|------------------+-------------------------------------------+------------------+----------------------|
| Clo++ | C++ command line parser generator | Yes | 2006 |
| cronhelper | Help serialize Ruby scripts | Yes | 2006 |
| cxxtools | Collection of useful C++ code | Yes | 2002 |
| Data | Data collection (e.g. US state names) | Yes | 2007 |
| Datetime Helpers | Ruby on Rails plug-in for dates and times | Yes | 2007 |
| Layer7 | C++ network protocol library | Yes | 2003 |
| Netxx | C++ TCP/IP abstraction library | Yes | 2004 |
| Picfolio | XSLT-based photo gallery generator | No | 2003 |
| SafePt | C++ threading library | No | 2002 |
| SVA | Subversion automation tool | Yes | 2006 |
| Scrapes | Ruby website scraping toolkit | Yes | 2007 |
| Sord | C++ file/directory library | Yes | 2006 |
| Stickies | Ruby on Rails plug-in to extend the flash | Yes | 2007 |
| Tagging | Ruby on Rails tagging plug-in | Yes | 2007 |
| Toolbox | Various utilities and tools | Yes | 2002 |
| Name | Description | Last Year Maintained |
|------------------+-------------------------------------------+----------------------|
| Data | Data collection (e.g. US state names) | 2007 |
| Datetime Helpers | Ruby on Rails plug-in for dates and times | 2007 |
| Layer7 | C++ network protocol library | 2003 |
| Picfolio | XSLT-based photo gallery generator | 2003 |
| SVA | Subversion automation tool | 2006 |
| SafePt | C++ threading library | 2002 |
| Scrapes | Ruby website scraping toolkit | 2007 |
| Sord | C++ file/directory library | 2006 |
| Stickies | Ruby on Rails plug-in to extend the flash | 2007 |
| Tagging | Ruby on Rails tagging plug-in | 2007 |
| Toolbox | Various utilities and tools | 2002 |
| clo++ | C++ command line parser generator | 2006 |
| cronhelper | Help serialize Ruby scripts | 2006 |
| cxxtools | Collection of useful C++ code | 2002 |

## Project Contributions and Patches (Incomplete)

| Years | Project |
|-----------+------------------------------------------------------------------------|
| 2000 | [SANE - Scanner Access Now Easy](http://www.sane-project.org/) |
| 2001 | [Botan (OpenCL)](http://botan.randombit.net) |
| 2001 | [libxml++](http://libxmlplusplus.sourceforge.net/) |
| 2001 | [Math::Currency](http://search.cpan.org/~jpeacock/Math-Currency-0.44/) |
| 2002 | [libxml - The XML C Parser](http://xmlsoft.org/) |
| 2002 | [Gpasman](http://gpasman.sourceforge.net/) |
| 2003 | [Gaim/Pidgin](http://www.pidgin.im/) |
| 2003 | [libxslt - The XSLT C Library](http://xmlsoft.org/XSLT/) |
| 2004 | [xwpset](http://teyandei.net/projects/xwpset/) |
| 2004 | [Gtodo](http://freshmeat.net/projects/gtodo/) |
| 2007 | [Webistrano](http://labs.peritor.com/webistrano) |
| 2008 | [Ruby on Rails](http://rubyonrails.com/) |
| 2008 | [Wig-Wug](http://github.com/JEG2/wig-wug/tree) |
| 2008,2009 | [Emacs Muse](http://mwolson.org/projects/EmacsMuse.html) |
| 2008-2010 | [Org-Mode](http://orgmode.org/) |
| 2009 | [Rinari](http://github.com/eschulte/rinari/tree/master) |
| 2009 | [Emacs](http://www.gnu.org/software/emacs/) |
| 2010 | [Transitions](https://github.com/qoobaa/transitions) |
| 2012 | [markdown-mode](http://jblevins.org/projects/markdown-mode/) |
| 2013 | [Hakyll](http://jaspervdj.be/hakyll/) |
| Years | Project |
|-----------+---------------------------------------------------------------------------------------|
| 2000 | [SANE - Scanner Access Now Easy](http://www.sane-project.org/) |
| 2001 | [Botan (OpenCL)](http://botan.randombit.net) |
| 2001 | [libxml++](http://libxmlplusplus.sourceforge.net/) |
| 2001 | [Math::Currency](http://search.cpan.org/~jpeacock/Math-Currency-0.44/) |
| 2002 | [libxml - The XML C Parser](http://xmlsoft.org/) |
| 2002 | [Gpasman](http://gpasman.sourceforge.net/) |
| 2003 | [Gaim/Pidgin](http://www.pidgin.im/) |
| 2003 | [libxslt - The XSLT C Library](http://xmlsoft.org/XSLT/) |
| 2004 | [xwpset](http://teyandei.net/projects/xwpset/) |
| 2004 | [Gtodo](http://freshmeat.net/projects/gtodo/) |
| 2007 | [Webistrano](http://labs.peritor.com/webistrano) |
| 2008 | [Ruby on Rails](http://contributors.rubyonrails.org/contributors/peter-jones/commits) |
| 2008 | [Wig-Wug](http://github.com/JEG2/wig-wug/tree) |
| 2008,2009 | [Emacs Muse](http://mwolson.org/projects/EmacsMuse.html) |
| 2008-2010 | [Org-Mode](http://orgmode.org/) |
| 2009 | [Rinari](http://github.com/eschulte/rinari/tree/master) |
| 2009 | [Emacs](http://www.gnu.org/software/emacs/) |
| 2010 | [Transitions](https://github.com/qoobaa/transitions) |
| 2012 | [markdown-mode](http://jblevins.org/projects/markdown-mode/) |
| 2013 | [Hakyll](http://jaspervdj.be/hakyll/) |
| 2013 | [Heist](https://github.com/snapframework/heist) (Snap Framework) |

+ 6
- 0
site.hs View File

@@ -6,6 +6,7 @@ module Main where
--------------------------------------------------------------------------------
import Hakyll
import Hakyll.Web.JavaScript (jsCreate)
import Hakyll.Web.Sass (scssCompiler)

--------------------------------------------------------------------------------
config :: Configuration
@@ -37,6 +38,11 @@ main = hakyllWith config $ do
-- Mash all the JavaScript files into a single file.
jsCreate "assets/javascript/pmade.js" "assets/javascript/*"

-- Stylesheets.
match "assets/stylesheets/*.scss" $ do
route $ setExtension "css"
compile scssCompiler

-- Images.
match "assets/images/**" $ do
route idRoute

+ 13
- 9
templates/basic.html View File

@@ -1,26 +1,30 @@
<html>
<!DOCTYPE html>
<html xmlns:ng="http://angularjs.org">
<head>
<title>$title$ - pmade inc.</title>
<link href="/stylesheets/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></script>
<script type="text/javascript" src="/javascripts/site.js"></script>
<link href="/assets/stylesheets/style.css" rel="stylesheet" type="text/css"/>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>

<body>
<body class="ng-app" ng-app>
<div id="content">$body$</div>

<div id="footer">
<div id="footer-content">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/labs">Labs</a></li>
<li><a href="/index.html">Home</a></li>
<li><a href="/labs/index.html">Labs</a></li>
<li><a href="/contact.html">Contact</a></li>
</ul>

<div class="copyright">
Copyright &copy; 2006-2013 pmade inc. All rights reserved.
<div class="copyright" ng-controller="Copyright">
Copyright &copy; 2006&ndash;{{year}} pmade inc. All rights reserved.
</div>
</div>
</div>
</body>

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.3/angular.min.js"></script>
<script src="/assets/javascript/pmade.js"></script>
</html>

+ 3
- 2
templates/main.html View File

@@ -2,14 +2,15 @@
<html xmlns:ng="http://angularjs.org">
<head>
<title>pmade inc.</title>
<!-- <link href="/stylesheets/logo-only.css" rel="stylesheet" type="text/css"/> -->
<link href="/assets/stylesheets/style.css" rel="stylesheet" type="text/css"/>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>

<body>
<body id="logo-only">
$body$
</body>

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.3/angular.min.js"></script>
<script src="/assets/javascript/pmade.js"></script>
</html>

+ 1
- 1
vendor/devalot-hakyll

@@ -1 +1 @@
Subproject commit 308b1bfbe6250c8604232f020d179f7808e31696
Subproject commit 5a9b54e03d0eb1a94496829d65a0a3b4a0863876

Loading…
Cancel
Save