Skip to content

Commit

Permalink
first pass at layout for site
Browse files Browse the repository at this point in the history
  • Loading branch information
docsteveharris committed Oct 28, 2024
1 parent 0bcdc41 commit 7929f86
Show file tree
Hide file tree
Showing 20 changed files with 210 additions and 292 deletions.
34 changes: 24 additions & 10 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: MM
email:
title: SAFEHR-data
email: [email protected] # TODO: update an safehr email email
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
twitter_username: username
github_username: username
minimal_mistakes_skin: default
Secure or Anonymised Framework for Electronic Health Records (SAFEHR-data)
is a collaboration between University College Hospital London and
University College London to support the use of health data for research
and clinical practice.
# twitter_username: username
# github_username: doc
minimal_mistakes_skin: air
search: true

# Build settings
Expand Down Expand Up @@ -90,7 +91,7 @@ footer:
defaults:
# _posts
- scope:
path: ""
path: "_posts"
type: posts
values:
layout: single
Expand All @@ -105,11 +106,24 @@ defaults:
type: pages
values:
layout: single
author_profile: true
author_profile: false
# _team
- scope:
path: "_team"
type: team
values:
layout: single
author_profile: false
share: true

category_archive:
type: liquid
path: /categories/
tag_archive:
type: liquid
path: /tags/

collections:
team:
output: true
permalink: /:collection/:path/
25 changes: 18 additions & 7 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# https://mmistakes.github.io/minimal-mistakes/docs/navigation/
main:
- title: "Posts"
url: /posts/
- title: "Categories"
url: /categories/
- title: "Tags"
url: /tags/
- title: "About"
url: /about/
url: /about/
- title: "Data cards"
url: https://safehr-data.github.io/uclh-research-discovery/
target: _blank
- title: "Wiki"
url: /wiki/
target: _blank
- title: "News"
url: /posts/
- title: "Team"
url: /team/
- title: "Admin"
url: /admin/
# - title: "Categories"
# url: /categories/
# - title: "Tags"
# url: /tags/
5 changes: 5 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: single
---

{{ content }}
80 changes: 80 additions & 0 deletions _layouts/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
layout: default
---

{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
{% include page__hero.html %}
{% elsif page.header.video.id and page.header.video.provider %}
{% include page__hero_video.html %}
{% endif %}

{% assign breadcrumbs_enabled = site.breadcrumbs %}
{% if page.breadcrumbs != null %}
{% assign breadcrumbs_enabled = page.breadcrumbs %}
{% endif %}
{% if page.url != "/" and breadcrumbs_enabled %}
{% unless paginator %}
{% include breadcrumbs.html %}
{% endunless %}
{% endif %}

<div id="main" role="main">
{% include sidebar.html %}

<article class="page" itemscope itemtype="https://schema.org/CreativeWork"{% if page.locale %} lang="{{ page.locale }}"{% endif %}>
{% if page.title %}<meta itemprop="headline" content="{{ page.title | replace: '|', '&#124;' | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date_to_xmlschema }}">{% endif %}
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date_to_xmlschema }}">{% endif %}

<div class="page__inner-wrap">
{% unless page.header.overlay_color or page.header.overlay_image %}
<header>
{% if page.title -%}
<h1 id="page-title" class="page__title" itemprop="headline">
<a href="{{ page.url | absolute_url }}" itemprop="url">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a>
</h1>
{%- endif %}
{% include page__meta.html %}
</header>
{% endunless %}

<section class="page__content" itemprop="text">
{% if page.toc %}
<aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
<nav class="toc">
<header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label | default: "On this page" }}</h4></header>
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" skip_no_ids=true %}
</nav>
</aside>
{% endif %}
{{ content }}
{% if page.link %}<div><a href="{{ page.link }}" class="btn btn--primary">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
</section>

<footer class="page__meta">
{% if site.data.ui-text[site.locale].meta_label %}
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
{% endif %}
{% include page__taxonomy.html %}
{% include page__date.html %}
</footer>

{% if page.share %}{% include social-share.html %}{% endif %}

{% include post_pagination.html %}
</div>

{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
{% include comments.html %}
{% endif %}
</article>

{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
{% include page__related.html posts=site.related_posts %}
{% comment %}<!-- otherwise show recent posts if no related when `related: true` -->{% endcomment %}
{% elsif page.id and page.related %}
{% include page__related.html posts=site.posts %}
{% endif %}
</div>
22 changes: 22 additions & 0 deletions _layouts/splash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: default
---

{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
{% include page__hero.html %}
{% elsif page.header.video.id and page.header.video.provider %}
{% include page__hero_video.html %}
{% endif %}

<div id="main" role="main">
<article class="splash" itemscope itemtype="https://schema.org/CreativeWork"{% if page.locale %} lang="{{ page.locale }}"{% endif %}>
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date_to_xmlschema }}">{% endif %}
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date_to_xmlschema }}">{% endif %}

<section class="page__content" itemprop="text">
{{ content }}
</section>
</article>
</div>
4 changes: 2 additions & 2 deletions _pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ permalink: /about/
title: "About"
---

Tempor velit sint sunt ipsum tempor enim ad qui ullamco. Est dolore anim ad velit duis dolore minim sunt aliquip amet commodo labore. Ut eu pariatur aute ea aute excepteur laborum. Esse ea esse excepteur minim mollit qui cillum excepteur ex dolore magna. Labore deserunt fugiat incididunt incididunt sint ea. Consequat dolore aute laboris quis proident quis non et est consectetur ex eiusmod sit culpa.
**SAF**EHR (pronounced safe-*air*) is our Secure/Anonymised Framework for Electronic Health Record data at UCLH. We're a partnership between [UCL](https://www.ucl.ac.uk) and [UCLH](https://www.uclh.nhs.uk) supported and funded by the [UCLH Biomedical Research Centre](https://www.uclhospitals.brc.nihr.ac.uk).

Cupidatat ea do et in excepteur in. Ad nostrud ut est esse eu duis ea sunt eiusmod. Aliquip tempor veniam sint elit fugiat. Velit incididunt laboris amet incididunt labore dolore irure velit excepteur commodo deserunt laborum. Consectetur eu fugiat veniam veniam Lorem labore magna eiusmod. Ea occaecat reprehenderit pariatur consectetur minim labore ut aliquip.
If you're interested in learning more, then please drop by the Institute of Health Informatics (IHI) at 222 Euston Road, or drop us an [email](mailto:[email protected]).
8 changes: 8 additions & 0 deletions _pages/team.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Team
layout: collection
permalink: /team/
collection: team
entries_layout: grid
classes: wide
---
10 changes: 10 additions & 0 deletions _pages/wiki.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
permalink: /wiki/
title: "Wiki"
---

This is our knowledge management system. Think of it like a wiki, or intranet for digital researchers and innovators at UCLH and UCL. Please visit our [wiki](https://uclh.slab.com/public/topics/safehr-ljd88xi3) for more information. There are a mixture of public and restricted pages. Reach out if you need access.

Try these posts to get started

- [Our monthly meeting schedule](https://uclh.slab.com/posts/safehr-monthly-meeting-schedule-u7gt7xg8?shr=xA9l4XMdE1kDdHX4RnfUm8oM)
14 changes: 0 additions & 14 deletions _posts/2010-01-07-post-modified.md

This file was deleted.

134 changes: 0 additions & 134 deletions _posts/2010-01-08-post-chat.md

This file was deleted.

Loading

0 comments on commit 7929f86

Please sign in to comment.