RT2 Lab Website

This website is built with Jekyll.

Setup

brew install ruby
gem install bundler jekyll

Clone this repository, then install the dependencies:

bundle install

Run

Run the local webserver with:

bundle exec jekyll serve

You can also use the Makefile:

make install;
make serve;

Contribute

Publications from Zotero

import json

import pandas as pd
from unidecode import unidecode

df = pd.read_csv("publications.csv", encoding="utf8")

df = df[[
    "Item Type",
    "Publication Year",
    "Author",
    "Title",
    "Short Title",
    "Publication Title",
    "DOI",
    "Url",
    "Abstract Note",
    "Date",
    "Pages",
    "Issue",
    "Volume",
    "Library Catalog"
]]

df["Author"] = df["Author"].apply(unidecode)
df["Title"] = df["Title"].apply(unidecode)
df["Short Title"] = df["Short Title"].fillna("").apply(unidecode)
df["Abstract Note"] = df["Abstract Note"].fillna("").apply(unidecode)

df_json = df.to_dict(orient="records")

with open("data_/publications.json", "w") as f:
    json.dump(df_json, f)

Add a new member

New members are stored as markdown files under _pages/team/_posts.

Each new member .md file must look like this:

---
layout: member
category: staff
title: Name of the member
image: Image filename, stored in /images
role: Member role
permalink: 'team/member-slug'
social:
    twitter: https://twitter.com/member
    linkedin: https://linkedin.com/in/member
    google-scholar: https://scholar.google.com/citations?user=member-id
education:
 - Education 1
 - Education 2
---

Write her bio text.

Add a new publication

Publications are stored as .yml file under _data/publist.yml.

Just add a new entry to the list like this:

- title: "Celecoxib With Neoadjuvant Chemotherapy for
          Breast Cancer Might Worsen Outcomes
          Differentially by COX-2 Expression and ER Status:
          Exploratory Analysis of the REMAGUS02 Trial"
  image:
  description:
  authors: Hamy et al.
  year: 2019
  journal: Journal of Clinical Oncology
  link:
    url: https://www.ncbi.nlm.nih.gov/pubmed/30702971
    display: Pubmed Link

Add news

Publications are stored as .yml file under _data/news.yml.

An entry looks like the following:

- date: 03/09/19
  title: "Something great"
  tags:
    - some
    - tags
  content: Lorem ipsum dolor sit amet, consectetur adipiscing elit,
    sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Eu turpis egestas pretium aenean. Luctus venenatis lectus magna fringilla
    urna porttitor. Lorem ipsum dolor sit amet. Pellentesque massa placerat
    duis ultricies. Commodo viverra maecenas accumsan lacus vel.

Edit template

We use Bootstrap for designing the website. Feel free to modify either the _pages or the _layouts components.

jekyll logo

Want a Jekyll website built?

Hire a Jekyll developer