Skip to content

Latest commit

 

History

History
104 lines (86 loc) · 2.9 KB

config.md

File metadata and controls

104 lines (86 loc) · 2.9 KB

+++ using DelimitedFiles, Random

author = "Julia Lab" mintoclevel = 2

Add here files or directories that should be ignored by Franklin, otherwise

these files might be copied and, if markdown, processed by Franklin which

you might not want. Indicate directories by ending the name with a /.

Base files such as LICENSE.md and README.md are ignored by default.

ignore = ["node_modules/"]

RSS (the website_{title, descr, url} must be defined to get RSS)

generate_rss = true website_title = "Julia Lab" website_descr = "Julia Lab Website" website_url = "https://julia.mit.edu/" prepath = ""

News, people, and grants

news = readdlm("_assets/news.csv", ',', skipstart=1) people = readdlm("_assets/people.csv", ',', skipstart=1) grants = readdlm("_assets/research-grants.csv", ',', skipstart=1)

News

aux = [] for (date, title, link) in eachrow(news) data = [date, title, link] push!(aux, data) end news = aux

Current members, alumni, and collaborators

current_members = [] alumni = [] internal_collaborators = [] external_collaborators = [] for (name, position, website, role, photo) in eachrow(people) if photo == "Yes" photo_path = replace(name, r" " => s"_") else photo_path = "Default" end data = [name, position, website, photo_path] if role == "Current Member" push!(current_members, data) elseif role == "Internal Collaborator" push!(internal_collaborators, data) elseif role == "External Collaborator" push!(external_collaborators, data) else role == "Alumni" push!(alumni, data) end end

Index photos and data

index_photos = [] for (name, position, website, role, photo) in eachrow(people) if photo == "Yes" && role == "Current Member" photo_path = "people/" * replace(name, r" " => s"") data = [name, website, photo_path] push!(index_photos, data) end end for (name, full_name, description, full_description, website, photo, links) in eachrow(grants) if photo == "Yes" photo_path = "research-grants/" * replace(name, r" " => s"") data = [name, website, photo_path] push!(index_photos, data) end end index_photos = index_photos[shuffle(1:end)]

Adding photo paths to grants

aux = [] for (name, full_name, description, full_description, website, photo, links) in eachrow(grants) if photo == "Yes" photo_path = "research-grants/" * replace(name, r" " => s"_") data = [name, full_name, description, full_description, website, photo_path, links] push!(aux, data) end end grants = aux

+++

\newcommand{\R}{\mathbb R} \newcommand{\scal}[1]{\langle #1 \rangle}

\newcommand{\prettyshow}[1]{@@code-output \show{#1} @@}