Skip to content

Commit

Permalink
Initial data (very much WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjenTamerus committed Jun 9, 2017
1 parent db54730 commit e9373c3
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
theme: jekyll-theme-cayman
theme: jekyll-theme-cayman
title: Cambridge RSE
description: Research Software Engineering at the University of Cambridge

include: ['_pages']
62 changes: 62 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset="UTF-8">
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title>
<meta name="description" content="{{ page.description | default: site.description | default: site.github.project_tagline }}"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#157878">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
</head>
<body>
<section class="page-header">
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
{% endif %}
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
{% endif %}
</section>

<section class="page-menu">
<ul>
<li>
<a href="{{ site.baseurl }}">Home</a>
</li>
{% for page in site.pages %}
{% if page.menu == true %}
<li>
<a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</section>

<section class="main-content">
{{ content }}

<footer class="site-footer">
{% if site.github.is_project_page %}
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
{% endif %}
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
</footer>
</section>

{% if site.google_analytics %}
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body>
</html>
19 changes: 19 additions & 0 deletions _pages/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: About us
permalink: /about
menu: true
---

# About RSE-Cambridge

## Who we are
- Jack
- Nick
- Olsen

> We quote ourselves
```python
def we():
love_to(code)
```
16 changes: 16 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
---

@import "{{ site.theme }}";

.page-menu {
ul {
list-style-type: none;
li {
margin: 0em 2em;
}
}
}

@media screen and (min-width: 96em) { .page-menu { float: left; } }
@media screen and (max-width: 96em) { .page-menu { ul { display: flex; } } }

0 comments on commit e9373c3

Please sign in to comment.