+++ using DelimitedFiles, Random
author = "Julia Lab" mintoclevel = 2
ignore = ["node_modules/"]
generate_rss = true website_title = "Julia Lab" website_descr = "Julia Lab Website" website_url = "https://julia.mit.edu/" prepath = ""
news = readdlm("_assets/news.csv", ',', skipstart=1) people = readdlm("_assets/people.csv", ',', skipstart=1) grants = readdlm("_assets/research-grants.csv", ',', skipstart=1)
aux = [] for (date, title, link) in eachrow(news) data = [date, title, link] push!(aux, data) end news = aux
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 = [] 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)]
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} @@}