aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2017-04-05 12:33:43 +0000
committerGogs <gogitservice@gmail.com>2017-04-05 12:33:43 +0000
commit5c5b7d947bd62a2b4bfbcfb856df31271e2b866f (patch)
tree4200d8c674d2f0351c68ccf15dfc38ef064ff32e
parenta81dbc79f5401d94954fa9efdcda093aa789d4b9 (diff)
parentaa529a3150d1a921c9a48854d89013476f85657a (diff)
downloadlibrebootfr-5c5b7d947bd62a2b4bfbcfb856df31271e2b866f.tar.gz
librebootfr-5c5b7d947bd62a2b4bfbcfb856df31271e2b866f.zip
Merge branch 'nav' of libreboot/libreboot into master
-rw-r--r--docs/bsd/freebsd.md4
-rw-r--r--docs/bsd/index.md4
-rw-r--r--docs/bsd/netbsd.md4
-rw-r--r--docs/bsd/openbsd.md4
-rw-r--r--docs/depthcharge/index.md4
-rw-r--r--docs/gnulinux/configuring_parabola.md4
-rw-r--r--docs/gnulinux/encrypted_debian.md4
-rw-r--r--docs/gnulinux/encrypted_parabola.md4
-rw-r--r--docs/gnulinux/grub_boot_installer.md4
-rw-r--r--docs/gnulinux/grub_cbfs.md4
-rw-r--r--docs/gnulinux/grub_hardening.md4
-rw-r--r--docs/gnulinux/index.md4
-rw-r--r--docs/grub/index.md4
-rw-r--r--docs/hcl/c201.md4
-rw-r--r--docs/hcl/d510mo.md4
-rw-r--r--docs/hcl/d945gclf.md4
-rw-r--r--docs/hcl/ga-g41m-es2l.md4
-rw-r--r--docs/hcl/gm45_remove_me.md4
-rw-r--r--docs/hcl/imac52.md4
-rw-r--r--docs/hcl/index.md4
-rw-r--r--docs/hcl/kcma-d8.md4
-rw-r--r--docs/hcl/kfsn4-dre.md4
-rw-r--r--docs/hcl/kgpe-d16.md4
-rw-r--r--docs/hcl/r400.md4
-rw-r--r--docs/hcl/t400.md4
-rw-r--r--docs/hcl/t500.md4
-rw-r--r--docs/hcl/x200.md4
-rw-r--r--docs/index.md4
-rw-r--r--docs/install/bbb_setup.md4
-rw-r--r--docs/install/c201.md4
-rw-r--r--docs/install/d510mo.md4
-rw-r--r--docs/install/d945gclf.md4
-rw-r--r--docs/install/ga-g41m-es2l.md4
-rw-r--r--docs/install/index.md4
-rw-r--r--docs/install/kcma-d8.md4
-rw-r--r--docs/install/kgpe-d16.md4
-rw-r--r--docs/install/r400_external.md4
-rw-r--r--docs/install/rpi_setup.md4
-rw-r--r--docs/install/t400_external.md4
-rw-r--r--docs/install/t500_external.md4
-rw-r--r--docs/install/t60_unbrick.md4
-rw-r--r--docs/install/x200_external.md4
-rw-r--r--docs/install/x60_unbrick.md4
-rw-r--r--docs/install/x60tablet_unbrick.md4
-rw-r--r--docs/misc/bbb_ehci.md4
-rw-r--r--docs/release.md4
-rwxr-xr-xwww/generate.sh1
-rwxr-xr-xwww/publish.sh32
-rw-r--r--www/rsync.md4
-rw-r--r--www/template.html70
50 files changed, 238 insertions, 53 deletions
diff --git a/docs/bsd/freebsd.md b/docs/bsd/freebsd.md
index f83f3dba..a21e309b 100644
--- a/docs/bsd/freebsd.md
+++ b/docs/bsd/freebsd.md
@@ -1,4 +1,6 @@
-% How to install FreeBSD on a libreboot system
+---
+title: How to install FreeBSD on a libreboot system
+...
This section relates to preparing, booting and installing FreeBSD on
your libreboot system, using nothing more than a USB flash drive (and
diff --git a/docs/bsd/index.md b/docs/bsd/index.md
index 1de3b4f1..a90fe40c 100644
--- a/docs/bsd/index.md
+++ b/docs/bsd/index.md
@@ -1,4 +1,6 @@
-% BSD projects
+---
+title: BSD projects
+...
This section relates to dealing with BSD projects: preparing bootable
USB drives, changing the default GRUB menu and so on.
diff --git a/docs/bsd/netbsd.md b/docs/bsd/netbsd.md
index 4c386b83..2e52b376 100644
--- a/docs/bsd/netbsd.md
+++ b/docs/bsd/netbsd.md
@@ -1,4 +1,6 @@
-% How to install NetBSD on a libreboot system
+---
+title: How to install NetBSD on a libreboot system
+...
This section relates to preparing, booting and installing NetBSD on your
libreboot system, using nothing more than a USB flash drive (and *dd*).
diff --git a/docs/bsd/openbsd.md b/docs/bsd/openbsd.md
index 5fe4ee45..f443d726 100644
--- a/docs/bsd/openbsd.md
+++ b/docs/bsd/openbsd.md
@@ -1,4 +1,6 @@
-% How to install LibertyBSD or OpenBSD on a libreboot system
+---
+title: How to install LibertyBSD or OpenBSD on a libreboot system
+...
NOTE: This guide was written for OpenBSD by the person who contributed
it, but the libreboot project recommends LibertyBSD. LibertyBSD is a
diff --git a/docs/depthcharge/index.md b/docs/depthcharge/index.md
index 8c0d98c4..cd9a3943 100644
--- a/docs/depthcharge/index.md
+++ b/docs/depthcharge/index.md
@@ -1,4 +1,6 @@
-% Depthcharge payload
+---
+title: Depthcharge payload
+...
This section relates to the depthcharge payload used in libreboot.
diff --git a/docs/gnulinux/configuring_parabola.md b/docs/gnulinux/configuring_parabola.md
index 119f3d47..97637a6f 100644
--- a/docs/gnulinux/configuring_parabola.md
+++ b/docs/gnulinux/configuring_parabola.md
@@ -1,4 +1,6 @@
-% Configuring Parabola (post-install)
+---
+title: Configuring Parabola (post-install)
+...
Post-installation configuration steps for Parabola GNU+Linux-libre.
Parabola is extremely flexible; this is just an example. This example
diff --git a/docs/gnulinux/encrypted_debian.md b/docs/gnulinux/encrypted_debian.md
index a0b74b51..aac3b53c 100644
--- a/docs/gnulinux/encrypted_debian.md
+++ b/docs/gnulinux/encrypted_debian.md
@@ -1,4 +1,6 @@
-% Installing Debian or Devuan GNU+Linux with full disk encryption (including /boot)
+---
+title: Installing Debian or Devuan GNU+Linux with full disk encryption (including /boot)
+...
This guide is written for the Debian distribution, but it should also
work for Devuan with the net installer.
diff --git a/docs/gnulinux/encrypted_parabola.md b/docs/gnulinux/encrypted_parabola.md
index d1355907..042b81b9 100644
--- a/docs/gnulinux/encrypted_parabola.md
+++ b/docs/gnulinux/encrypted_parabola.md
@@ -1,4 +1,6 @@
-% Installing Parabola or Arch GNU+Linux with full disk encryption (including /boot)
+---
+title: Installing Parabola or Arch GNU+Linux with full disk encryption (including /boot)
+...
Libreboot on x86 uses the GRUB
[payload](http://www.coreboot.org/Payloads#GRUB_2) by default, which
diff --git a/docs/gnulinux/grub_boot_installer.md b/docs/gnulinux/grub_boot_installer.md
index becd803e..115c7c51 100644
--- a/docs/gnulinux/grub_boot_installer.md
+++ b/docs/gnulinux/grub_boot_installer.md
@@ -1,4 +1,6 @@
-% How to install GNU+Linux on a libreboot system
+---
+title: How to install GNU+Linux on a libreboot system
+...
This section relates to preparing, booting and installing a GNU+Linux
distribution on your libreboot system, using nothing more than a USB
diff --git a/docs/gnulinux/grub_cbfs.md b/docs/gnulinux/grub_cbfs.md
index b590a9d1..b6df498f 100644
--- a/docs/gnulinux/grub_cbfs.md
+++ b/docs/gnulinux/grub_cbfs.md
@@ -1,4 +1,6 @@
-% How to replace the default GRUB configuration file on a libreboot system
+---
+title: How to replace the default GRUB configuration file on a libreboot system
+...
Libreboot on x86 uses the GRUB
[payload](http://www.coreboot.org/Payloads#GRUB_2) by default, which
diff --git a/docs/gnulinux/grub_hardening.md b/docs/gnulinux/grub_hardening.md
index 15fecb41..c7f9a450 100644
--- a/docs/gnulinux/grub_hardening.md
+++ b/docs/gnulinux/grub_hardening.md
@@ -1,4 +1,6 @@
-% GRUB hardening
+---
+title: GRUB hardening
+...
This guide deals with various ways in which you can harden your GRUB
configuration, for security purposes. These steps are optional, but
diff --git a/docs/gnulinux/index.md b/docs/gnulinux/index.md
index d9ba3c50..bd6edeb0 100644
--- a/docs/gnulinux/index.md
+++ b/docs/gnulinux/index.md
@@ -1,4 +1,6 @@
-% GNU+Linux distributions
+---
+title: GNU+Linux distributions
+...
This section relates to dealing with GNU+Linux distributions: preparing
bootable USB drives, changing the default GRUB menu and so on.
diff --git a/docs/grub/index.md b/docs/grub/index.md
index a99b9e54..1b5acacb 100644
--- a/docs/grub/index.md
+++ b/docs/grub/index.md
@@ -1,4 +1,6 @@
-% GRUB payload
+---
+title: GRUB payload
+...
This section relates to the GRUB payload used in libreboot.
diff --git a/docs/hcl/c201.md b/docs/hcl/c201.md
index 608d1ed8..1a4ed56d 100644
--- a/docs/hcl/c201.md
+++ b/docs/hcl/c201.md
@@ -1,4 +1,6 @@
-% ASUS Chromebook C201
+---
+title: ASUS Chromebook C201
+...
This is a Chromebook, using the Rockchip RK3288 SoC. It uses an ARM CPU,
and has free EC firmware (unlike some other laptops). More RK3288-based
diff --git a/docs/hcl/d510mo.md b/docs/hcl/d510mo.md
index a85db8cb..d71e054d 100644
--- a/docs/hcl/d510mo.md
+++ b/docs/hcl/d510mo.md
@@ -1,4 +1,6 @@
-% Intel D510MO desktop board
+---
+title: Intel D510MO desktop board
+...
This is a desktop board using intel hardware (circa \~2009, ICH7
southbridge, similar performance-wise to the Libreboot X200. It can make
diff --git a/docs/hcl/d945gclf.md b/docs/hcl/d945gclf.md
index a77a1fbc..6737aadf 100644
--- a/docs/hcl/d945gclf.md
+++ b/docs/hcl/d945gclf.md
@@ -1,4 +1,6 @@
-% Intel D945GCLF desktop board
+---
+title: Intel D945GCLF desktop board
+...
If you just want flashing instructions, go to
[../install/d945gclf.html](https://libreboot.org/docs/install/d945gclf.html)
diff --git a/docs/hcl/ga-g41m-es2l.md b/docs/hcl/ga-g41m-es2l.md
index 28e612f4..bfa73e91 100644
--- a/docs/hcl/ga-g41m-es2l.md
+++ b/docs/hcl/ga-g41m-es2l.md
@@ -1,4 +1,6 @@
-% Gigabyte GA-G41M-ES2L desktop board
+---
+title: Gigabyte GA-G41M-ES2L desktop board
+...
This is a desktop board using intel hardware (circa \~2009, ICH7
southbridge, similar performance-wise to the Libreboot X200. It can make
diff --git a/docs/hcl/gm45_remove_me.md b/docs/hcl/gm45_remove_me.md
index 749d42a3..9d2209f4 100644
--- a/docs/hcl/gm45_remove_me.md
+++ b/docs/hcl/gm45_remove_me.md
@@ -1,4 +1,6 @@
-% GM45 chipsets: remove the ME (manageability engine)
+---
+title: "GM45 chipsets: remove the ME (manageability engine)"
+...
This sections relates to disabling and removing the ME (Intel
**M**anagement **E**ngine) on GM45. This was originally done on the
diff --git a/docs/hcl/imac52.md b/docs/hcl/imac52.md
index 69ca98ed..a868b128 100644
--- a/docs/hcl/imac52.md
+++ b/docs/hcl/imac52.md
@@ -1,4 +1,6 @@
-% Apple iMac 5,2
+---
+title: Apple iMac 5,2
+...
Information to be written soon, but this board is merged in libreboot.
diff --git a/docs/hcl/index.md b/docs/hcl/index.md
index bfb72dea..b76d36f7 100644
--- a/docs/hcl/index.md
+++ b/docs/hcl/index.md
@@ -1,4 +1,6 @@
-% Hardware compatibility list
+---
+title: Hardware compatibility list
+...
This sections relates to known hardware compatibility in libreboot.
diff --git a/docs/hcl/kcma-d8.md b/docs/hcl/kcma-d8.md
index e278bc63..7ece3b89 100644
--- a/docs/hcl/kcma-d8.md
+++ b/docs/hcl/kcma-d8.md
@@ -1,4 +1,6 @@
-% ASUS KCMA-D8 desktop/workstation board
+---
+title: ASUS KCMA-D8 desktop/workstation board
+...
This is a desktop board using AMD hardware (Fam10h **and Fam15h** CPUs
available). It can also be used for building a high-powered workstation.
diff --git a/docs/hcl/kfsn4-dre.md b/docs/hcl/kfsn4-dre.md
index 9a284bc1..f180f3f0 100644
--- a/docs/hcl/kfsn4-dre.md
+++ b/docs/hcl/kfsn4-dre.md
@@ -1,4 +1,6 @@
-% ASUS KFSN4-DRE server/workstation board
+---
+title: ASUS KFSN4-DRE server/workstation board
+...
This is a server board using AMD hardware (Fam10h). It can also be used
for building a high-powered workstation. Powered by libreboot.
diff --git a/docs/hcl/kgpe-d16.md b/docs/hcl/kgpe-d16.md
index 7152512d..2fc1053c 100644
--- a/docs/hcl/kgpe-d16.md
+++ b/docs/hcl/kgpe-d16.md
@@ -1,4 +1,6 @@
-% ASUS KGPE-D16 server/workstation board
+---
+title: ASUS KGPE-D16 server/workstation board
+...
This is a server board using AMD hardware (Fam10h **and Fam15h** CPUs
available). It can also be used for building a high-powered workstation.
diff --git a/docs/hcl/r400.md b/docs/hcl/r400.md
index 56b60ca8..631bf8c2 100644
--- a/docs/hcl/r400.md
+++ b/docs/hcl/r400.md
@@ -1,4 +1,6 @@
-% ThinkPad R400
+---
+title: ThinkPad R400
+...
It is believed that all or most R400 laptops are compatible. See notes
about [CPU
diff --git a/docs/hcl/t400.md b/docs/hcl/t400.md
index 267e0fd0..4c9fe0d7 100644
--- a/docs/hcl/t400.md
+++ b/docs/hcl/t400.md
@@ -1,4 +1,6 @@
-% ThinkPad T400
+---
+title: ThinkPad T400
+...
It is believed that all or most T400 laptops are compatible. See notes
about [CPU
diff --git a/docs/hcl/t500.md b/docs/hcl/t500.md
index 69fac55e..c3bb418f 100644
--- a/docs/hcl/t500.md
+++ b/docs/hcl/t500.md
@@ -1,4 +1,6 @@
-% ThinkPad T500
+---
+title: ThinkPad T500
+...
It is believed that all or most T500 laptops are compatible. See notes
about [CPU
diff --git a/docs/hcl/x200.md b/docs/hcl/x200.md
index 24c53c85..14b34b4a 100644
--- a/docs/hcl/x200.md
+++ b/docs/hcl/x200.md
@@ -1,4 +1,6 @@
-% ThinkPad X200
+---
+title: ThinkPad X200
+...
It is believed that all X200 laptops are compatible. X200S and X200
Tablet will also work, [depending on the configuration](#x200s).
diff --git a/docs/index.md b/docs/index.md
index 6593baa9..b1487ba0 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,4 +1,6 @@
-% Libreboot documentation
+---
+title: Libreboot documentation
+...
Information about this release can be found at [release.html](release.html).
Always check [libreboot.org](/) for updates.
diff --git a/docs/install/bbb_setup.md b/docs/install/bbb_setup.md
index 350ad7b4..5e28f947 100644
--- a/docs/install/bbb_setup.md
+++ b/docs/install/bbb_setup.md
@@ -1,4 +1,6 @@
-% How to program an SPI flash chip with the BeagleBone Black or Teensy 3.1
+---
+title: How to program an SPI flash chip with the BeagleBone Black or Teensy 3.1
+...
This document exists as a guide for reading from or writing to an SPI
flash chip with the BeagleBone Black, using the
diff --git a/docs/install/c201.md b/docs/install/c201.md
index cfedee48..648adde5 100644
--- a/docs/install/c201.md
+++ b/docs/install/c201.md
@@ -1,4 +1,6 @@
-% ASUS Chromebook C201 installation guide
+---
+title: ASUS Chromebook C201 installation guide
+...
These instructions are for installing Libreboot to the ASUS Chromebook
C201. Since the device ships with Coreboot, the installation
diff --git a/docs/install/d510mo.md b/docs/install/d510mo.md
index 8990eef1..a3d70d6c 100644
--- a/docs/install/d510mo.md
+++ b/docs/install/d510mo.md
@@ -1,4 +1,6 @@
-% D510MO flashing tutorial
+---
+title: D510MO flashing tutorial
+...
This guide is for those who want libreboot on their Intel D510MO
motherboard while they still have the original BIOS present.
diff --git a/docs/install/d945gclf.md b/docs/install/d945gclf.md
index 54283bfe..ebf2dbf5 100644
--- a/docs/install/d945gclf.md
+++ b/docs/install/d945gclf.md
@@ -1,4 +1,6 @@
-% Intel D945GCLF flashing tutorial
+---
+title: Intel D945GCLF flashing tutorial
+...
This guide is for those who want libreboot on their Intel D945GCLF
motherboard while they still have the original BIOS present.
diff --git a/docs/install/ga-g41m-es2l.md b/docs/install/ga-g41m-es2l.md
index 0f333efe..b3b47475 100644
--- a/docs/install/ga-g41m-es2l.md
+++ b/docs/install/ga-g41m-es2l.md
@@ -1,4 +1,6 @@
-% GA-G41M-ES2L flashing tutorial
+---
+title: GA-G41M-ES2L flashing tutorial
+...
This guide is for those who want libreboot on their Intel GA-G41M-ES2L
motherboard while they still have the original BIOS present.
diff --git a/docs/install/index.md b/docs/install/index.md
index 6aefe1c2..61bccc0b 100644
--- a/docs/install/index.md
+++ b/docs/install/index.md
@@ -1,4 +1,6 @@
-% Installing libreboot
+---
+title: Installing libreboot
+...
This section relates to installing libreboot on supported targets.
diff --git a/docs/install/kcma-d8.md b/docs/install/kcma-d8.md
index 218a7194..bf8f3ae1 100644
--- a/docs/install/kcma-d8.md
+++ b/docs/install/kcma-d8.md
@@ -1,4 +1,6 @@
-% KCMA-D8 external flashing instructions
+---
+title: KCMA-D8 external flashing instructions
+...
Initial flashing instructions for kcma-d8.
diff --git a/docs/install/kgpe-d16.md b/docs/install/kgpe-d16.md
index a46ad458..91931fe7 100644
--- a/docs/install/kgpe-d16.md
+++ b/docs/install/kgpe-d16.md
@@ -1,4 +1,6 @@
-% KGPE-D16 external flashing instructions
+---
+title: KGPE-D16 external flashing instructions
+...
Initial flashing instructions for KGPE-D16.
diff --git a/docs/install/r400_external.md b/docs/install/r400_external.md
index 8aa57628..b986f5ad 100644
--- a/docs/install/r400_external.md
+++ b/docs/install/r400_external.md
@@ -1,4 +1,6 @@
-% Flashing the R400 with a BeagleBone Black
+---
+title: Flashing the R400 with a BeagleBone Black
+...
Initial flashing instructions for R400.
diff --git a/docs/install/rpi_setup.md b/docs/install/rpi_setup.md
index 73a5400f..0b1ccea5 100644
--- a/docs/install/rpi_setup.md
+++ b/docs/install/rpi_setup.md
@@ -1,4 +1,6 @@
-% How to program an SPI flash chip with the Raspberry Pi
+---
+title: How to program an SPI flash chip with the Raspberry Pi
+...
This document exists as a guide for reading from or writing to an SPI
flash chip with the Raspberry Pi, using the
diff --git a/docs/install/t400_external.md b/docs/install/t400_external.md
index 6e2d406e..324873ec 100644
--- a/docs/install/t400_external.md
+++ b/docs/install/t400_external.md
@@ -1,4 +1,6 @@
-% Flashing the T400 with a BeagleBone Black
+---
+title: Flashing the T400 with a BeagleBone Black
+...
Initial flashing instructions for T400.
diff --git a/docs/install/t500_external.md b/docs/install/t500_external.md
index dd1c7a63..107c8698 100644
--- a/docs/install/t500_external.md
+++ b/docs/install/t500_external.md
@@ -1,4 +1,6 @@
-% Flashing the T500 with a BeagleBone Black
+---
+title: Flashing the T500 with a BeagleBone Black
+...
Initial flashing instructions for T500.
diff --git a/docs/install/t60_unbrick.md b/docs/install/t60_unbrick.md
index f8a4b18a..7cd01fdf 100644
--- a/docs/install/t60_unbrick.md
+++ b/docs/install/t60_unbrick.md
@@ -1,4 +1,6 @@
-% ThinkPad T60: Recovery guide
+---
+title: "ThinkPad T60: Recovery guide"
+...
This section documents how to recover from a bad flash that prevents
your ThinkPad T60 from booting.
diff --git a/docs/install/x200_external.md b/docs/install/x200_external.md
index 903d92a5..e1333ec3 100644
--- a/docs/install/x200_external.md
+++ b/docs/install/x200_external.md
@@ -1,4 +1,6 @@
-% Flashing the X200 with a BeagleBone Black
+---
+title: Flashing the X200 with a BeagleBone Black
+...
Initial flashing instructions for X200.
diff --git a/docs/install/x60_unbrick.md b/docs/install/x60_unbrick.md
index 8b9bfcbf..008d981b 100644
--- a/docs/install/x60_unbrick.md
+++ b/docs/install/x60_unbrick.md
@@ -1,4 +1,6 @@
-% ThinkPad X60: Recovery guide
+---
+title: "ThinkPad X60: Recovery guide"
+...
This section documents how to recover from a bad flash that prevents
your ThinkPad X60 from booting.
diff --git a/docs/install/x60tablet_unbrick.md b/docs/install/x60tablet_unbrick.md
index ebbe7013..d9f96a15 100644
--- a/docs/install/x60tablet_unbrick.md
+++ b/docs/install/x60tablet_unbrick.md
@@ -1,4 +1,6 @@
-% ThinkPad X60 Tablet: Recovery guide
+---
+title: "ThinkPad X60 Tablet: Recovery guide"
+...
This section documents how to recover from a bad flash that prevents
your ThinkPad X60 Tablet from booting.
diff --git a/docs/misc/bbb_ehci.md b/docs/misc/bbb_ehci.md
index 171b990c..fbc9e9d4 100644
--- a/docs/misc/bbb_ehci.md
+++ b/docs/misc/bbb_ehci.md
@@ -1,4 +1,6 @@
-% EHCI debugging on the BeagleBone Black
+---
+title: EHCI debugging on the BeagleBone Black
+...
EHCI debugging
==============
diff --git a/docs/release.md b/docs/release.md
index 7c342f76..e707b6be 100644
--- a/docs/release.md
+++ b/docs/release.md
@@ -1,4 +1,6 @@
-% Libreboot release information
+---
+title: Libreboot release information
+...
Updated versions of libreboot can be found at
[libreboot.org](http://libreboot.org/).
diff --git a/www/generate.sh b/www/generate.sh
index dab39ede..27d2a74b 100755
--- a/www/generate.sh
+++ b/www/generate.sh
@@ -1,2 +1,3 @@
#!/bin/bash
+find -L . -name '*.html' -and -not -name 'template.html' -delete
find -L . -name '*.md' -exec ./publish.sh {} \;
diff --git a/www/publish.sh b/www/publish.sh
index c8838f17..a5e3be2a 100755
--- a/www/publish.sh
+++ b/www/publish.sh
@@ -1,18 +1,37 @@
#!/bin/bash
+#
+# Copyright (C) 2017 Alyssa Rosenzweig <alyssa@rosenzweig.io
+#
+# This program 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 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
echo $1
FILE=${1%.md}
cat $1 > temp.md
-# add footer
-
-echo '' >> temp.md
-
if [ "${FILE}" != "./index" ]; then
- echo -ne '[Back to home](/index.html) -- ' >> temp.md
+ if [[ $FILE == *index ]]
+ then
+ DEST=".."
+ else
+ DEST="index.html"
+ fi
+
+ RETURN="<a href='$DEST'>Back to previous index</a>"
fi
+echo "" >> temp.md
echo "[License](license.md)" >> temp.md
# change out .md -> .html
@@ -25,4 +44,5 @@ TOC=$(grep -q "^x-toc-enable: true$" temp.md && echo "--toc --toc-depth=2")
SMART=$(pandoc -v | grep -q '2\.0' || echo "--smart")
# chuck through pandoc
-pandoc $TOC $SMART temp.md -s --css /global.css -T Libreboot > $FILE.html
+pandoc $TOC $SMART temp.md -s --css /global.css -T Libreboot \
+ --template template.html --metadata return="$RETURN"> $FILE.html
diff --git a/www/rsync.md b/www/rsync.md
index f89b5a3c..550cff80 100644
--- a/www/rsync.md
+++ b/www/rsync.md
@@ -1,4 +1,6 @@
-% Mirroring libreboot
+---
+title: Mirroring libreboot
+...
Create a directory in your web directory (e.g. libreboot/) and put one
of these in your crontab:
diff --git a/www/template.html b/www/template.html
new file mode 100644
index 00000000..8e12e2aa
--- /dev/null
+++ b/www/template.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html$if(lang)$ lang="$lang$"$endif$$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 type="text/css">code{white-space: pre;}</style>
+$if(quotes)$
+ <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
+$endif$
+$if(highlighting-css)$
+ <style type="text/css">
+$highlighting-css$
+ </style>
+$endif$
+$for(css)$
+ <link rel="stylesheet" href="$css$">
+$endfor$
+$if(math)$
+ $math$
+$endif$
+ <!--[if lt IE 9]>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
+ <![endif]-->
+$for(header-includes)$
+ $header-includes$
+$endfor$
+</head>
+<body>
+$for(include-before)$
+$include-before$
+$endfor$
+$if(title)$
+<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">$date$</p>
+$endif$
+</header>
+$endif$
+$if(return)$
+$return$
+$endif$
+$if(toc)$
+<nav id="$idprefix$TOC">
+$toc$
+</nav>
+$endif$
+$body$
+$for(include-after)$
+$include-after$
+$endfor$
+</body>
+</html>