Skip to content

Commit 573bc34

Browse files
Add News and Tutorials on Landing Page
1 parent 7fdc59c commit 573bc34

File tree

11 files changed

+373
-4
lines changed

11 files changed

+373
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/.quarto/
32
_site/
43
digest.txt

_includes/card-listing.ejs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
```{=html}
2+
<div class="unified-card-grid">
3+
<% for (const item of items) { %>
4+
<a href="<%- item.href ? item.href : item.path %>" class="unified-card box">
5+
<div class="unified-card-body">
6+
<h5 class="unified-card-title"><%- item.title %></h5>
7+
<p class="unified-card-text"><%- item.description %></p>
8+
9+
<% if (item.category) { %>
10+
<div class="unified-card-categories">
11+
<% if (Array.isArray(item.category)) { %>
12+
<% item.category.forEach(function(cat) { %>
13+
<span class="category-tag"><%- cat %></span>
14+
<% }); %>
15+
<% } else { %>
16+
<span class="category-tag"><%- item.category %></span>
17+
<% } %>
18+
</div>
19+
<% } %>
20+
</div>
21+
22+
<% if (item.author || item.date || item['reading-time']) { %>
23+
<div class="unified-card-footer">
24+
<div class="unified-card-meta">
25+
<% if (item.author) { %>
26+
<span class="unified-card-author">
27+
<% if (Array.isArray(item.author)) { %>
28+
<%= item.author.map(a => a.name || a).join(', ') %>
29+
<% } else { %>
30+
<%= item.author %>
31+
<% } %>
32+
</span>
33+
<% } %>
34+
<% if (item.date) { %>
35+
<span class="unified-card-date">
36+
<%= new Date(item.date).toLocaleDateString('en-US', {
37+
year: 'numeric',
38+
month: 'short',
39+
day: 'numeric'
40+
}) %>
41+
</span>
42+
<% } %>
43+
</div>
44+
<% if (item['reading-time']) { %>
45+
<span class="unified-card-reading-time"><%- item['reading-time'] %></span>
46+
<% } %>
47+
</div>
48+
<% } %>
49+
</a>
50+
<% } %>
51+
</div>
52+
```

_includes/featured-tutorials.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- title: "Get Started with Turing.jl"
2+
href: "https://turinglang.org/docs/getting-started/"
3+
description: "Our step-by-step tutorials will guide you from installation to your first probabilistic models."
4+
category:
5+
- "Basics"
6+
- "Getting Started"
7+
8+
- title: "Introductory Concepts: Coin Flipping"
9+
href: "https://turinglang.org/docs/tutorials/coin-flipping/"
10+
description: "Learn the basic concepts of Bayesian modeling by working through a simple coin-flipping example."
11+
category:
12+
- "Basics"
13+
- "Modeling"
14+
15+
- title: "Bayesian Regression"
16+
href: "https://turinglang.org/docs/tutorials/02-bayesian-regression/"
17+
description: "Explore how to perform Bayesian linear and logistic regression using Turing.jl."
18+
category:
19+
- "Modeling"
20+
- "Regression"

index.qmd

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ section-divs: false
55
hide-description: true
66
description: |
77
Turing.jl is a probabilistic programming language and Bayesian modelling framework for the Julia programming language.
8+
listing:
9+
- id: news-and-updates
10+
contents: "news/posts/*/index.qmd"
11+
template: _includes/card-listing.ejs
12+
sort: "date desc"
13+
max-items: 5
14+
include:
15+
on_landing: true
16+
- id: featured-tutorials
17+
contents:
18+
- "./_includes/featured-tutorials.yml"
19+
template: _includes/card-listing.ejs
20+
max-items: 3
821
---
922

1023
::: {.logo-header}
@@ -75,6 +88,40 @@ Turing is written entirely in Julia, and is interoperable with its powerful ecos
7588
</div>
7689
```
7790

91+
<div class="side-space-news section-start-space">
92+
93+
```{=html}
94+
<!-- News & Updates Section -->
95+
<div class="section-header">
96+
<div>
97+
<h3 id="news-updates">News & Updates</h3>
98+
<p class="text-muted">Read the latest from the Turing team.</p>
99+
</div>
100+
<a href="news/" class="button">View more &rarr;</a>
101+
</div>
102+
```
103+
104+
::: {#news-and-updates}
105+
:::
106+
107+
108+
```{=html}
109+
<!-- Featured Tutorials Section -->
110+
<div class="section-header section-start-space">
111+
<div>
112+
<h3 id="featured-tutorials">Featured Tutorials</h3>
113+
<p class="text-muted">A selection of tutorials to get you started.</p>
114+
</div>
115+
<a href="https://turinglang.org/docs/tutorials/" class="button">View all tutorials &rarr;</a>
116+
</div>
117+
```
118+
119+
::: {#featured-tutorials}
120+
:::
121+
122+
123+
</div>
124+
78125
<div class="section-start-space">
79126

80127
{{< include _includes/brands.qmd >}}

news/posts/2019-12-14-initial-post/index.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ author:
1111
affiliation:
1212
- name: University of Oregon
1313
date: 12/14/2019
14+
on_landing: true
1415
---
1516

1617
All good open source projects should have a blog, and Turing is one such project. Later on, members of the Turing team may be populating this feed with posts on topics like

news/posts/2020-02-12-jsoc/index.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ author:
1111
1212
affiliation: University of Oregon
1313
date: 02/12/2020
14+
on_landing: true
1415
---
1516

1617
Last year, Turing participated in the Google Summer of Code (GSoC) through the Julia language organization. It was a fun time, and the project was better for it. Turing plans to participate in the upcoming GSoC, and we wanted to outline some potential projects and expectations we have for applicants.

news/posts/2020-05-04-Imperial-Report13-analysis/index.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ include-in-header:
4545
- text: |
4646
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
4747
resources: data/*
48+
on_landing: true
4849
---
4950

5051
The Turing.jl team is currently exploring possibilities in an attempt to help with the ongoing SARS-CoV-2 crisis. As preparation for this and to get our feet wet, we decided to perform a replication study of the [Imperial Report 13](https://www.imperial.ac.uk/mrc-global-infectious-disease-analysis/covid-19/report-13-europe-npi-impact/), which attempts to estimate the real number of infections and impact of non-pharmaceutical interventions on COVID-19. In the report, the inference was performed using the probabilistic programming language (PPL) Stan. We have explicated their model and inference in Turing.jl, a Julia-based PPL. We believe the results and analysis of our study are relevant for the public, and for other researchers who are actively working on epidemiological models. To that end, our implementation and results are available [here](https://github.com/cambridge-mlg/Covid19).

news/posts/2020-09-11-gsoc/index.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ author:
1111
1212
affiliation: University of Oregon
1313
date: 09/11/2020
14+
on_landing: true
1415
---
1516

1617
As the 2020 [Google Summer of Code](https://summerofcode.withgoogle.com/) comes to a close, the Turing team thought it would be a good opportunity to reflect on the work that was done by our superb students this summer.

news/posts/2021-02-04-gsoc/index.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ author:
1111
1212
affiliation: University of Oregon
1313
date: 02/10/2021
14+
on_landing: true
15+
landing_sort_order: 5
1416
---
1517

1618
It's about time for us to start thinking about projects we'd like to see at Turing.jl for the [Google Summer of Code 2021](https://summerofcode.withgoogle.com/)! Below is a list of projects the Turing team would be interested in working with students on for the summer.

news/posts/2022-02-17-gsoc/index.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ author:
1313
- name: the TuringLang team
1414
url: /team/
1515
date: 02/17/2022
16+
on_landing: true
1617
---
1718

1819
It is another year of the [Google Summer of Code](https://summerofcode.withgoogle.com/) time, and we have compiled an updated list of exciting Turing projects!

0 commit comments

Comments
 (0)