Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fboehm committed Aug 30, 2019
0 parents commit 51d57f5
Show file tree
Hide file tree
Showing 1,454 changed files with 62,351 additions and 0 deletions.
419 changes: 419 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
+++
+++
37 changes: 37 additions & 0 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{{ $asset_base := .Site.BaseURL }}
{{ if ne (getenv "HUGO_ASSET_BASEURL") "" }}
{{ $asset_base = (getenv "HUGO_ASSET_BASEURL") }}
{{ end }}
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>
{{ partial "navbar.html" . }}
<div class="wrapper">
<h2 class="is-stack-40">404: Page Not Found</h2>

<div class="is-row is-stack-40">
<div class="is-col is-50 story bigger">
<p class="is-big">
Fie! There is no page here at the address you requested.
Sorry about that. Perhaps try a search to find what you are looking
for?
</p>
{{ partial "searchform.html" . }}
</div>
<div class="is-col is-50">
<img src="{{ $asset_base }}assets/img/icarus.jpg" style="background:#ffffff00;">
<em><p class="is-small is-text-center">
Icarus, By Hendrik Goltzius (Holland, Mülbracht, 1558-1617) - <a href="https://collections.lacma.org/node/171116">lacma.org</a></p></em>
</div>
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>






27 changes: 27 additions & 0 deletions layouts/_default/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
<description>{{ .Site.Params.Description }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range .Pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<author>{{ with $.Site.Author.name }} {{.}}{{end}}</author>
<guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description>
</item>
{{ end }}
</channel>
</rss>
11 changes: 11 additions & 0 deletions layouts/_default/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>
{{ partial "navbar.html" . }}
<div class="wrapper">
{{ .Content }}
</div>
{{ partial "footer.html" . }}
</body>
</html>
47 changes: 47 additions & 0 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{{ $asset_base := .Site.BaseURL }}
{{ if ne (getenv "HUGO_ASSET_BASEURL") "" }}
{{ $asset_base = (getenv "HUGO_ASSET_BASEURL") }}
{{ end }}
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>

{{ partial "navbar.html" . }}

<div class="wrapper">
<div class="is-row is-stack-20">
<div class="is-col is-10">&nbsp;</div>
<div class="is-col is-60">
<h1 class="is-text-center"><a href="">{{ .Title }}</a></h1>
<h4 class="is-bigger is-text-center">{{ .Date.Format "January 2, 2006" }}</h4>
</div>
<div class="is-col is-30">&nbsp;</div>
</div>
<div class="is-row is-stack-20">
</div>
<div class="is-row is-stack-20">
<div class="is-col is-10 is-stack-20">
</div>
<div class="is-col is-60">
<div class="story">
{{ .Content }}
</div>
<hr>
{{ if .PrevInSection }}
<a href="{{.PrevInSection.Permalink}}"><span class="pointer">2</span>&nbsp;{{.PrevInSection.Title}}</a> |
{{ end }}
<a href="{{ .Site.BaseURL }}musings">All posts</a>
{{ if .NextInSection }}
| <a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}}&nbsp;<span class="pointer">1</span></a>
{{ end }}
</div>
<div class="is-col is-30"></div>

</div>
</div>

{{ partial "footer.html" . }}

</body>
</html>
27 changes: 27 additions & 0 deletions layouts/categories/rss.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ .Site.Title }}: {{ with .Title }}{{.}} posts {{ end }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>{{ .Site.Params.Description }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range .Pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>
64 changes: 64 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{{ $asset_base := .Site.BaseURL }}
{{ if ne (getenv "HUGO_ASSET_BASEURL") "" }}
{{ $asset_base = (getenv "HUGO_ASSET_BASEURL") }}
{{ end }}
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
<body>
{{ partial "navbar.html" . }}
<div class="wrapper">
<div class="is-row is-stack-40">
<div class="is-col is-100 story is-big">
<img class="header-img is-stack-20" src="{{ $asset_base }}assets/img/header-pic.jpg">
{{ .Content }}
</div>
</div>
<div class="is-row">
<div class="is-col is-66 is-stack-20">
<div class="is-row is-stack-20">
<h2 class="is-center">Musings, Explorations, and Announcements</h2>
</div>
{{ range first 5 ((where .Data.Pages.ByDate "Section" "musings").Reverse) }}
<div class="is-row is-stack-20">
<div class="is-col is-33 dateblock">
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<h4>{{ .Date.Format "2 January 2006" }}</h4>
</div>
<div class="is-col is-66 summary">
{{ if .Truncated }}
{{ .Summary }}
<p class="is-text-right"><a href="{{ .RelPermalink }}">Read More…</a></p>
{{ else }}
{{ .Content }}
{{ end }}
</div>
</div>
{{ end }}
<div class="is-col is-33 dateblock">&nbsp;</div>
<div class="is-col is-100">
<p class="is-text-right is-big"><a href="musings">All musings&nbsp;<span class="pointer">1</span></a></p>
</div>
</div>
<div class="is-col is-33 is-stack-20">
<div class="is-row is-stack-20">
<h2 class="is-center">Recent Works</h2>
</div>
<ul class="compact fa-ul">
{{ $works := (merge (merge (merge .Site.Data.papers .Site.Data.presentations) .Site.Data.courses) .Site.Data.software) }}
{{ range first 10 (sort $works "date" "desc") }}
{{ if not .exclude_latest }}
{{ partial "work.html" .}}
{{ end }}
{{ end }}
</ul>
<footer class="group">
<p class="is-text-right is-big"><a href="vitae">All Works&nbsp;<span class="pointer">1</span></a></p>
</footer>
</div>
</div>
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>
50 changes: 50 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{{ $asset_base := .Site.BaseURL }}
{{ if ne (getenv "HUGO_ASSET_BASEURL") "" }}
{{ $asset_base = (getenv "HUGO_ASSET_BASEURL") }}
{{ end }}
<footer id="footer" class="is-hidden-print">
<div class="wrapper">
<div class="is-row .is-small is-muted">
<div class="is-col is-33">
<h3>About</h3>
<em>
<p>This is my personal website. Nothing here is endorsed by my employers, funders, or any organizations I am part of.</p>
<p>Content on this site is provided under a
<a href="https://creativecommons.org/licenses/by/4.0/legalcode">Creative Commons (CC-BY) 4.0 license.</a>
You may re-use this content as long as you indicate my authorship and provide a link back to the original material.
Source code of the site is provided under the <a href="https://opensource.org/licenses/MIT">MIT license</a>
and may be reused without restriction.</p>
<p>This site is gratefully built using a variety of open-source resources and inspirations. See <a href="https://www.noamross.net/2019/08/09/a-new-website/">here</a> for more about them and <a href="https://github.com/noamross/noamross.net">here</a> for the source code.</p>
</em>
</div>
<div class="is-col is-33">
<h3 id="connect">Connect</h3>
<ul class="fa-ul">
<li><i class="fa-li fas fa-briefcase fa-fw"></i>I work at <a href="https://www.ecohealthalliance.org">EcoHealth Alliance</a>, 460 W 34th St., Ste. 1701, New York, NY 10001.</li>
<li><i class="fa-li fas fa-envelope fa-fw"></i>Email me at <a href="mailto:[email protected]">[email protected]</a> or <a href="mailto:[email protected]">[email protected]</a>.</li>
<li><a href="https://keybase.io/noamross"><i class="fa-li fas fa-key fa-fw"></i></a>Contact me securely via <a href="https://keybase.io/noamross">keybase.io/noamross</a>.</li>
<li><a href="https://orcid.org/0000-0002-2136-0000"><i class="fa-li ai ai-orcid"></i></a>Track my scholarly work at <a href="https://orcid.org/0000-0002-2136-0000">ORCiD:0000-0002-2136-0000</a>.</li>
<li><a href="https://scholar.google.com/citations?user=bxoOuzoAAAAJ&hl=en"><i class="fa-li ai ai-google-scholar"></i></a>Or on <a href="https://scholar.google.com/citations?user=bxoOuzoAAAAJ">Google Scholar</a>.</li>
<li><a href="https://twitter.com/noamross"><i class="fa-li fab fa-twitter fa-fw"></i></a>Follow me on twitter at <a href="https://twitter.com/noamross">@noamross</a>.</li>
<li><a href="https://github.com/noamross"><i class="fa-li fab fa-github fa-fw"></i></a>See my open-source code projects at <a href="https://github.com/noamross">github.com/noamross</a>.
<li><a href="/index.xml"><i class="fa-li fas fa-rss fa-fw"></i></a>Follow new posts on this site via the <a href="/index.xml">RSS Feed</a></li>.
</ul>
</div>
<div class="is-col is-33">
<h3 id="connect">Support</h3>
<em><p>Some of my work is funded, other work is volunteer. In lieu of supporting my volunteer or open-source work, please consider donating to these organizations that I work with or are close to my heart.</p></em>
<ul class="fa-ul">
<li><i class="fa-li fas fa-heart fa-fw"></i><a href="https://ropensci.org/donate/">rOpenSci</a> builds tools and community for open science.</li>
<li><i class="fa-li fas fa-heart fa-fw"></i><a href="https://www.ecohealthalliance.org/donate">EcoHealth Alliance</a> works for wildlife health and pandemic prevention.</li>
<li><i class="fa-li fas fa-heart fa-fw"></i>The <a href="https://nwlc.org/times-up-legal-defense-fund/">Time's Up Legal Defense Fund</a> fights sexual harassment.</li>
<li><i class="fa-li fas fa-heart fa-fw"></i><a href="https://www.hias.org/">HIAS</a> protects and supports refugees.</li>
</ul>
</div>
</div>
</div>
</footer>

<script type="text/javascript" src="{{ $asset_base }}assets/js/kube.js"></script>
<script>
$K.dom(window).on('load', $K.init);
</script>
68 changes: 68 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{{ $asset_base := .Site.BaseURL }}
{{ if ne (getenv "HUGO_ASSET_BASEURL") "" }}
{{ $asset_base = (getenv "HUGO_ASSET_BASEURL") }}
{{ end }}
<head>

<link href="https://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ .Title }}</title>
<link rel="canonical" href="{{ .Permalink }}" />

<!-- CSS -->
<link rel="stylesheet" href="{{ $asset_base }}assets/css/kube.css" />
<link rel="stylesheet" href="{{ $asset_base }}assets/css/custom.css" />
<link rel="stylesheet" href="{{ $asset_base }}assets/css/tufte.css" />

<!-- Fonts -->
<link href='https://fonts.googleapis.com/css?family=Alegreya:400italic,400,700,700italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Alegreya+SC:400&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=IM+Fell+English:400,400i&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=IM+Fell+English+SC&display=swap" rel="stylesheet">
<link href="{{ $asset_base }}assets/fonts/fell-flowers/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack-subset.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/1.8.0/css/academicons.min.css">
<link href="{{ $asset_base }}assets/fonts/fontawesome/css/all.css" rel="stylesheet">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

<!-- Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ $asset_base }}assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ $asset_base }}assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ $asset_base }}assets/favicon-16x16.png">
<link rel="shortcut icon" type="image/png" sizes="32x32" href="{{ $asset_base }}assets/favicon-32x32.png">
<link rel="shortcut icon" type="image/png" sizes="16x16" href="{{ $asset_base }}assets/favicon-16x16.png">
<link rel="manifest" href="{{ $asset_base }}assets/site.webmanifest">
<link rel="mask-icon" href="{{ $asset_base }}assets/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="theme-color" content="#ffffff">

<!-- RSS -->
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}

<!-- Social -->
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}
" />

<meta name="twitter:card" content="{{ if .Params.largeimage }}summary_large_image{{ else }}summary{{ end }}">
<meta name="twitter:url" content="{{ .Permalink }}">
<meta name="twitter:title" content="{{ .Title }}">
<meta name="twitter:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}">
<meta name="twitter:image" content="{{ $asset_base }}assets/{{ if .Params.largeimage }}{{ .Params.largeimage }}}{{ else if .Params.image }}{{.Params.image }}{{ else }}img/nr.png{{ end }}">
<meta name="twitter:site" content="noamross.net">
<meta name="twitter:creator" content="@noamross">

<meta property="og:title" content="{{ .Title }}" />
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="noamross.net" />
<meta property="og:description" content=" {{ if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}" />
<meta property="og:url" content="{{ .Permalink }}" />
<script type="application/ld+json">
{"@type":"WebSite","url":"{{ .Permalink }}","headline":"{{ .Title }}", "name":"noamross.net","description":"{{ if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}","@context":"http://schema.org"}
</script>

<!-- Indexing -->
{{ if and (ne (getenv "CIRCLE_BRANCH") "master") (ne (getenv "CIRCLE_BRANCH") "") }}<meta name="robots" content="noindex" />{{ end }}
</head>
30 changes: 30 additions & 0 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<div id="topbar" class="is-hidden-print">
<div class="wrapper">
<header>
<div class="is-navbar-container">
<nav>
<div class="is-brand">
<a class="logo" href="/"><i>NR</i></a>
<a href="#"
class="is-push-right-mobile is-shown-mobile icon-kube-menu"
data-kube="toggle"
data-target="#navbar-main"></a>
</div>
</nav>
<div id="navbar-main" class="is-navbar is-hidden-mobile is-center-mobile">
<nav>
<ul>
<li><a href="/musings">Musings</a></li>
<!-- <li><a href="/projects">Projects</a></li> -->
<li><a href="/vitae">Vitae</a></li>
<li><a href="#connect">Connect</a></li>
</ul>
</nav>
<nav class="is-push-right is-left-mobile" class="is-hidden-mobile">
{{ partial "searchform.html" . }}
</nav>
</div>
</div>
</header>
</div>
</div>
17 changes: 17 additions & 0 deletions layouts/partials/pagination.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" (slice "musings" "archives")) 5 }}

{{ if or ($paginator.HasPrev) ($paginator.HasNext) }}
<nav class="pagination" role="pagination">
{{ if $paginator.HasPrev }}
<a href="{{ $paginator.Prev.URL }}"><span class="pointer">2</span></a>
{{ else }}
<span class="pointer">2</span>
{{ end }}
<span>&nbsp;{{ $paginator.PageNumber }} / {{ $paginator.TotalPages }}&nbsp;</span>
{{ if $paginator.HasNext }}
<a href="{{ $paginator.Next.URL }}"><span class="pointer">1</span></a>
{{ else }}
<span class="pointer">1</span>
{{ end }}
</nav>
{{ end }}
Loading

0 comments on commit 51d57f5

Please sign in to comment.