-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from OxfordRSE/templateise-front-page
Templatise the institute specific parts of the site for easy replacement
- Loading branch information
Showing
15 changed files
with
142 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
title: | ||
OxRSE Training | ||
logo: | ||
src: /ox_rse.svg | ||
alt: OxRSE logo | ||
description: | ||
Created by OxRSE team | ||
frontpage: | ||
intro: | ||
This is the teaching website for the [Oxford Research Software | ||
Engineering Group](https://www.rse.ox.ac.uk/ ). Please see our list of past and upcoming courses | ||
on the left. | ||
|
||
|
||
The material for these courses is generated from a | ||
set of [markdown materials](https://github.com/UNIVERSE-HPC/course-material) collated by | ||
the [UNIVERSE-HPC project](https://universe-hpc.github.io), | ||
a joint collaboration between RSE teams at Oxford, Southampton, | ||
Imperial and Edinburgh, the Software Sustainability Institute and the | ||
Edinburgh Parallel Computing Centre. | ||
|
||
|
||
These materials have been collated from a variety of sources published under different [CC-BY licenses](https://creativecommons.org/about/cclicenses/) . The | ||
attributions for each course and section are given on the relevant | ||
pages, alongside the exact license of the original work. | ||
footer: | ||
University of Oxford, [Oxford Research Software Engineering](https://www.rse.ox.ac.uk/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as fs from 'fs'; | ||
import * as yaml from 'js-yaml'; | ||
|
||
|
||
const yamlTemplate = process.env.YAML_TEMPLATE || 'config/oxford.yaml'; | ||
|
||
export type PageTemplate = { | ||
title: string; | ||
logo: {src: string, alt: string} | ||
description: string; | ||
frontpage: {intro: string} | ||
footer: string | ||
} | ||
|
||
export const pageTemplate: PageTemplate | undefined = (() => { | ||
try { | ||
const fileContents = fs.readFileSync(yamlTemplate, 'utf8'); | ||
const data = yaml.load(fileContents) as PageTemplate; | ||
return data | ||
} catch (e) { | ||
console.error(e); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.