summaryrefslogtreecommitdiffstats
path: root/website/templates/globals
diff options
context:
space:
mode:
Diffstat (limited to 'website/templates/globals')
-rw-r--r--website/templates/globals99
1 files changed, 99 insertions, 0 deletions
diff --git a/website/templates/globals b/website/templates/globals
new file mode 100644
index 0000000..79d7d2f
--- /dev/null
+++ b/website/templates/globals
@@ -0,0 +1,99 @@
+[% USE date -%]
+[%
+# This global template is included in every HTML file. It is
+# included before the DOCTYPE and it *must not* generate any
+# output. Be careful to chomp! However it is a very useful
+# place to put global variables. Note that the only variable
+# that is passed in here is topdir.
+
+year = date.format(date.now, '%Y')
+printable_date = date.format
+
+# These are the sections / tabs of the site as they appear in
+# the navigation at the top of all pages.
+
+sections = [ "home", "news", "learning", "faq", "about", "contact" ]
+
+section_titles.home = "Home"
+section_titles.news = "News"
+section_titles.learning = "Tutorials and videos"
+section_titles.faq = "FAQ"
+section_titles.about = "About this site"
+section_titles.contact = "Contact us"
+
+section_paths.home = "/"
+section_paths.news = "/news/"
+section_paths.learning = "/learning/"
+section_paths.faq = "/faq/"
+section_paths.about = "/about/"
+section_paths.contact = "/contact/"
+
+# The full list of local resources under src/learning/
+#
+# Put new documents at the top.
+#
+# If the resource is really beginner level, then set difficulty = 0.
+# Use this sparingly because these appear in 'Get started' on the
+# front page of the site, and also at the top of the list.
+#
+# Other variables:
+# difficulty: Difficulty level 0 (absolute beginner) 1 (easy) .. 5 (hardest).
+# cmdline: (optional) Set to 1 if this involves using the command line.
+# author: (optional) String containing author's name.
+# date: (optional) Date last updated (use: date +%F)
+#
+# The text will be displayed to the user as:
+# <a href="/learning/[name]/">[link]</a> [rest]
+
+learning_documents = [
+ { difficulty = 0, cmdline = 1,
+ name = "start-virt-tools",
+ link = "Where to get virt tools.",
+ rest = "Learn how to download or obtain virt tools on Fedora,
+ Debian, Ubuntu, RHEL and more." },
+ { difficulty = 0,
+ name = "start-conventions",
+ link = "Names and terms used in the rest of the documentation.",
+ rest = "If you confused by words like <q>paravirt</q>, <q>migration</q>,
+ <q>domain</q>, then start here." },
+ { difficulty = 0,
+ name = "start-install-with-virt-manager",
+ link = "Install a virtual machine",
+ rest = "with virt-manager. A step by step guide to creating
+ your first virtual machine using simple graphical tools." },
+ { difficulty = 0,
+ name = "start-vm-with-virt-manager",
+ link = "Start and stop virtual machines",
+ rest = "using graphical virt-manager." },
+ { difficulty = 0, cmdline = 1,
+ name = "start-list-with-command-line",
+ link = "List virtual machines",
+ rest = "from the command line and shell scripts." },
+ { difficulty = 1, cmdline = 1,
+ name = "start-stop-vm-with-command-line",
+ link = "Start and stop virtual machines",
+ rest = "from the command line and shell scripts." },
+ { difficulty = 1, cmdline = 1,
+ name = "check-hardware-virt",
+ link = "Check if your hardware supports virtualization.",
+ rest = "Hardware virtualization is supported by many but not all
+ modern hardware. If enabled it offers great performance
+ benefits. This article explains the different types of
+ hardware virtualization and how to check if your hardware
+ supports it." },
+ { difficulty = 3, cmdline = 1,
+ name = "install-with-command-line",
+ link = "Install a virtual machine",
+ rest = "using the command line. Create a VM from the command line
+ and shell scripts." },
+ { difficulty = 5, cmdline = 1,
+ author = "Richard W.M. Jones", date = "2010-10-12",
+ name = "advanced-virt-df",
+ link = "Advanced use of virt-df.",
+ rest = "Check free disk space. Regularly check from a cron job,
+ draw graphs to predict future usage, and generate alerts
+ if VMs are running low on space." },
+]
+
+# NB: Make sure you don't add blank lines to the end of this file!
+-%]