Skip to content

Commit

Permalink
actually fixed top nav, got rid of issue with covering content
Browse files Browse the repository at this point in the history
  • Loading branch information
gejessicama committed Mar 20, 2018
1 parent abb5752 commit 7d436e6
Show file tree
Hide file tree
Showing 25 changed files with 80 additions and 33 deletions.
4 changes: 2 additions & 2 deletions _includes/site-feature.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
{% endif %}

{% if feature_text or feature_image %}
<div class="feature"{% if feature_image %} style="position:relative; background-image: url({{ feature_image }})"{% endif %}>
<div class="feature"{% if feature_image %} style="background-image: url({{ feature_image }})"{% endif %}>
<div class="container typeset">
{{ feature_text | markdownify }}
<span style="position:absolute;bottom:0;font-size:10px;">
<span style="font-size:10px;">
{% if page.feature_credit %}<a target="_blank" href="{{page.feature_link}}" >{% endif %}{% if page.feature_credit %} {{page.feature_credit}} {% endif %}{% if page.feature_credit %}</a>{% endif %}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _includes/site-header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header class="header" >
<div class="container">
<div class="topnav container">

{% if site.logo %}{% include site-logo.html %}{% endif %}

Expand Down
5 changes: 2 additions & 3 deletions _sass/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


body {
margin-top: 10%;
margin-top: 100px;
background: $backgroundColour;
color: $bodyColour;
height: 100%;
Expand Down Expand Up @@ -141,7 +141,6 @@ table {

.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
}

Expand Down Expand Up @@ -193,7 +192,7 @@ span.software-title{
align-items: flex-end;
}

.header{
.topnav{
position: fixed;
width: 100%;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion _site/assets/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _site/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-categories categories">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/conference/2017/09/23/another-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<body class="layout-post one-more-example">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/conference/2018/01/02/ABCD-conference.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<body class="layout-post presenting-at-abcd-conference">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/feed.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.6.2">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2018-03-09T16:10:03-08:00</updated><id>http://localhost:4000/</id><title type="html">Bioinformatics Technology Lab</title><subtitle>Bioinformatics Technology Lab at Canada's Michael Smith Genome Sciences Centre. Primarily interested in de novo genome assembly. More description.</subtitle><entry><title type="html">Presenting at ABCD Conference</title><link href="http://localhost:4000/conference/2018/01/02/ABCD-conference.html" rel="alternate" type="text/html" title="Presenting at ABCD Conference" /><published>2018-01-02T00:00:00-08:00</published><updated>2018-01-02T00:00:00-08:00</updated><id>http://localhost:4000/conference/2018/01/02/ABCD-conference</id><content type="html" xml:base="http://localhost:4000/conference/2018/01/02/ABCD-conference.html">&lt;p&gt;John Smith and James Green presented their research at ABCD Conference this past weekend&lt;/p&gt;
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.6.2">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2018-03-20T13:45:14-07:00</updated><id>http://localhost:4000/</id><title type="html">Bioinformatics Technology Lab</title><subtitle>Bioinformatics Technology Lab at Canada's Michael Smith Genome Sciences Centre. Primarily interested in de novo genome assembly. More description.</subtitle><entry><title type="html">Presenting at ABCD Conference</title><link href="http://localhost:4000/conference/2018/01/02/ABCD-conference.html" rel="alternate" type="text/html" title="Presenting at ABCD Conference" /><published>2018-01-02T00:00:00-08:00</published><updated>2018-01-02T00:00:00-08:00</updated><id>http://localhost:4000/conference/2018/01/02/ABCD-conference</id><content type="html" xml:base="http://localhost:4000/conference/2018/01/02/ABCD-conference.html">&lt;p&gt;John Smith and James Green presented their research at ABCD Conference this past weekend&lt;/p&gt;

&lt;!-- more --&gt;

Expand Down
6 changes: 3 additions & 3 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-default home">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down Expand Up @@ -131,12 +131,12 @@



<div class="feature" style="position:relative; background-image: url(assets/background.jpg)">
<div class="feature" style="background-image: url(assets/background.jpg)">
<div class="container typeset">
<h1 id="bioinformatics-technology-lab">Bioinformatics Technology Lab</h1>
<p>Led by Dr. Inanc Birol at <a href="http://www.bcgsc.ca/">BC Cancer’s Michael Smith Genome Sciences Centre</a></p>

<span style="position:absolute;bottom:0;font-size:10px;">
<span style="font-size:10px;">
<a target="_blank" href="http://mkweb.bcgsc.ca/fun/hdtr/"> Photo by Martin Krzywinski </a>
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _site/member/ahammond.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-profile austin-hammond">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/member/jma.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-profile something">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/member/rwarren.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-profile rene-warren">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/member/sjackman.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-profile shaun-jackman">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
13 changes: 12 additions & 1 deletion _site/members.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-page members">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down Expand Up @@ -131,6 +131,17 @@



<div class="feature" style="background-image: url(assets/background.jpg)">
<div class="container typeset">
<h1 id="bioinformatics-technology-lab">Bioinformatics Technology Lab</h1>
<p>Led by Dr. Inanc Birol at <a href="http://www.bcgsc.ca/">BC Cancer’s Michael Smith Genome Sciences Centre</a></p>

<span style="font-size:10px;">
<a target="_blank" href="http://mkweb.bcgsc.ca/fun/hdtr/"> Photo by Martin Krzywinski </a>
</span>
</div>
</div>



</header>
Expand Down
5 changes: 2 additions & 3 deletions _site/news-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@


</head>
<body class="layout-default">
<body style="margin-top:0px;" class="layout-">



<section class="section typeset">
<ul class="list list--posts">

Expand Down Expand Up @@ -102,6 +102,5 @@ <h4><a href="/software/2016/08/27/example-post-one.html">ABySS 2.0 released</a><
</section>



</body>
</html>
2 changes: 1 addition & 1 deletion _site/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<body class="layout-blog news">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-page projects">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/publications.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-page publications">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/software.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-page software">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/software/2016/08/27/example-post-one.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<body class="layout-post abyss-2-0-released">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/softwareblurbs/FORMATTING-README.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body class="layout-page">

<header class="header">
<div class="container">
<div class="topnav container">

<a class="logo" href="/">
<img src="/assets/logo.png" alt="Bioinformatics Technology Lab logo">
Expand Down
2 changes: 1 addition & 1 deletion _site/sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const version = '20180309161003';
const version = '20180320134514';
const cacheName = `static::${version}`;

const buildContentBlob = () => {
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: Home
layout: default
feature_text: |
# Bioinformatics Technology Lab
Led by Dr. Inanc Birol at [BC Cancer's Michael Smith Genome Sciences Centre](http://www.bcgsc.ca/)
feature_image: "assets/background.jpg"
feature_credit: Photo by Martin Krzywinski
feature_link: http://mkweb.bcgsc.ca/fun/hdtr/
layout: default
---

{% include site-header.html %}
Expand Down
6 changes: 6 additions & 0 deletions members.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
---
layout: page
title: Members
feature_text: |
# Bioinformatics Technology Lab
Led by Dr. Inanc Birol at [BC Cancer's Michael Smith Genome Sciences Centre](http://www.bcgsc.ca/)
feature_image: "assets/background.jpg"
feature_credit: Photo by Martin Krzywinski
feature_link: http://mkweb.bcgsc.ca/fun/hdtr/
---

<img class="avatar" src="assets/avatars/ibirol.jpeg"> **Inanc Birol, Principal Investigator**
Expand Down
38 changes: 35 additions & 3 deletions news-content.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
---
layout: default
---
---
---

<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<!-- General meta -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.png" type="image/x-icon">
<base target="_parent">

{% if page.indexing == false %}
<meta name="robots" content="noindex">
{% endif %}

{% if page.collectionpage %}
{% seo title=false %}

{% assign collectiondata = site.collections | where: "label", page.collectionpage | first %}
<title>{{ collectiondata.title }} - {{ site.title }}</title>
<meta property="og:title" content="{{ collectiondata.title }}">
<meta name="description" content="{{ collectiondata.description }}">
<meta property="og:description" content="{{ collectiondata.description }}">
{% else %}
{% seo %}
{% endif %}

<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}">

{% if site.avatarurl %}{% include site-favicons.html %}{% endif %}
</head>
<body style="margin-top:0px;" class="layout-{{ page.layout }}{% if page.title %} {{ page.title | slugify }}{% endif %}">

{% if paginator.posts %}
<section class="section typeset">
Expand Down Expand Up @@ -34,3 +63,6 @@ <h4><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a></h4>
</ul>
</section>
{% endif %}

</body>
</html>

0 comments on commit 7d436e6

Please sign in to comment.