Add year to projects

This commit is contained in:
Fabien Freling 2019-06-19 13:37:04 +02:00
parent a2c8fb9dd4
commit 833430c5bc
12 changed files with 94 additions and 7 deletions

View file

@ -10,3 +10,14 @@
--include-after-body=&(root)/templates/footer.html \ --include-after-body=&(root)/templates/footer.html \
%f | sed 's|%%webRoot%%|&(root)|g' > %o \ %f | sed 's|%%webRoot%%|&(root)|g' > %o \
|> %B.html |> %B.html
!project = | &(root)/templates/footer.html \
|> ^ pandoc %f^ \
pandoc --from markdown --to html \
--template=&(root)/templates/project.html \
--css &(root)/css/style.css \
--include-in-header=&(root)/templates/header.html \
--include-before-body=&(root)/templates/nav.html \
--include-after-body=&(root)/templates/footer.html \
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|> %B.html

View file

@ -1,3 +1,3 @@
include_rules include_rules
: foreach *.md |> !pandoc |> : index.md |> !project |>

View file

@ -1,5 +1,6 @@
--- ---
title: Dawn of Chaos title: Dawn of Chaos
date: 2004
--- ---
For the first of undergraduate study we have to develop a project in either For the first of undergraduate study we have to develop a project in either

View file

@ -1,3 +1,3 @@
include_rules include_rules
: foreach *.md |> !pandoc |> : index.md |> !project |>

View file

@ -1,5 +1,6 @@
--- ---
title: Maestro title: Maestro
date: 2004
--- ---
Maestro is an OMR, Optical Musicscore Recognition. You can think of it like a Maestro is an OMR, Optical Musicscore Recognition. You can think of it like a

View file

@ -1,3 +1,3 @@
include_rules include_rules
: foreach *.md |> !pandoc |> : index.md |> !project |>

View file

@ -1,11 +1,11 @@
--- ---
title: OBoy title: OBoy
date: 2015
repository: https://gitlab.com/ffreling/oboy
--- ---
OBoy is a Game Boy emulator written in OCaml. OBoy is a Game Boy emulator written in OCaml.
[GitLab repository](https://gitlab.com/ffreling/oboy)
This project explores the internals of the Game Boy, documenting it along the way. This project explores the internals of the Game Boy, documenting it along the way.
It is also an experiment of writing a low-level program in functional language. It is also an experiment of writing a low-level program in functional language.

View file

@ -1,3 +1,3 @@
include_rules include_rules
: foreach *.md |> !pandoc |> : index.md |> !project |>

View file

@ -1,5 +1,6 @@
--- ---
title: Trailr title: Trailr
date: 2013
--- ---
[Official website](http://www.ltutech.com/case/trailr/) [Official website](http://www.ltutech.com/case/trailr/)

View file

@ -1,3 +1,3 @@
include_rules include_rules
: foreach *.md |> !pandoc |> : index.md |> !project |>

View file

@ -1,5 +1,6 @@
--- ---
title: Where is my car? title: Where is my car?
date: 2007
--- ---
One of my first image processing based project done in 2007. It finds cars on a Google Maps One of my first image processing based project done in 2007. It finds cars on a Google Maps

72
templates/project.html Normal file
View file

@ -0,0 +1,72 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
$for(author-meta)$
<meta name="author" content="$author-meta$" />
$endfor$
$if(date-meta)$
<meta name="dcterms.date" content="$date-meta$" />
$endif$
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
$endif$
<title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "" ""; }
$endif$
</style>
$if(highlighting-css)$
<style>
$highlighting-css$
</style>
$endif$
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
$if(math)$
$math$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
</head>
<body>
$for(include-before)$
$include-before$
$endfor$
$if(title)$
<header id="title-block-header">
<h1 class="title">$title$</h1>
$if(subtitle)$
<p class="subtitle">$subtitle$</p>
$endif$
$for(author)$
<p class="author">$author$</p>
$endfor$
$if(date)$
<p class="date">Year: $date$</p>
$endif$
$if(repository)$
<p class="repository">Repository: <a href="$repository$">$repository$</a></p>
$endif$
</header>
$endif$
$if(toc)$
<nav id="$idprefix$TOC" role="doc-toc">
$table-of-contents$
</nav>
$endif$
$body$
$for(include-after)$
$include-after$
$endfor$
</body>
</html>