Skip to content
Snippets Groups Projects
Commit 115099b5 authored by Thomas Wood's avatar Thomas Wood
Browse files

Fixup menu

parent 20f18f6c
No related branches found
No related tags found
No related merge requests found
---
title: Website Technical Information
title: Reliable Web Group Website
menu: false
---
Reliable Web Group Website
==========================
The source code for [this site](http://www-rw.doc.ic.ac.uk) is [hosted on the DoC GitLab server](https://gitlab.doc.ic.ac.uk/resource-reasoning/www-rw.doc.ic.ac.uk),
you should have access to edit it if a member of the resource-reasoning group.
......@@ -25,6 +24,10 @@ permalink: /my-custom-page-path/
---
```
Variables that templates currently take into account are:
* title, sets the page title
* menu, (default: true) places the page into the website's navigation menu
The main content of the page should then follow.
Any other files present in the directory structure (except for those prefixed with `_`, `.`, or explicitly excluded in
......
......@@ -17,3 +17,4 @@ defaults:
path: ""
values:
layout: "page"
menu: true
......@@ -5,17 +5,15 @@
<a href="http://www.imperial.ac.uk/" id="logo"><img src="http://www3.imperial.ac.uk/2007templates/images/logo_imperial_college_london.png" alt="Imperial College London"/></a>
<a href="{{ site.baseurl }}/"><img id="header" src="images/wrs.png" alt="{{ site.title }}"/></a>
<nav>
{% comment %} 2 because feed.xml is also included (but not listed) {% endcomment %}
{% if site.pages.size > 2 %}
{% for my_page in site.pages %}
{% if my_page.title %}
<span><a class="navi" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a></span>
{% endif %}
{% endfor %}
{% endif %}
<nav>{%
assign menu_items = site.pages | where:"menu",true %}{%
if menu_items.size > 1 %}{%
for item in menu_items %}{%
if item.title %}
<span><a class="navi" href="{{ item.url | prepend: site.baseurl }}">{{ item.title }}</a></span>
{% endif %}{%
endfor %}{%
endif %}
</nav>
</div>
</header>
---
layout: null
menu: false
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment