Skip to content

Commit 0596ecd

Browse files
use new logo and move navbar to separate file for clean _quarto.yml
1 parent 2f88b17 commit 0596ecd

File tree

4 files changed

+69
-47
lines changed

4 files changed

+69
-47
lines changed

_includes/navbar/navbar.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<footer class="custom-footer">
2+
<div class="footer-container">
3+
<div class="footer-grid">
4+
<div class="footer-links-wrapper">
5+
<div class="footer-column footer-explore">
6+
<h5>Explore</h5>
7+
<a href="https://turinglang.org/docs/getting-started/">Get Started</a>
8+
<a href="https://turinglang.org/docs/tutorials/">Tutorials</a>
9+
<a href="https://turinglang.org/docs/faq/">FAQ</a>
10+
<a href="/library">Libraries</a>
11+
<a href="/news">News</a>
12+
<a href="/team">Team</a>
13+
</div>
14+
15+
<div class="footer-column footer-connect">
16+
<h5>Connect</h5>
17+
<a href="https://github.com/TuringLang" target="_blank" rel="noopener"><i class="bi bi-github"></i>
18+
GitHub</a>
19+
<a href="https://x.com/TuringLang" target="_blank" rel="noopener"><i class="bi bi-twitter-x"></i>
20+
Twitter</a>
21+
<a href="https://julialang.slack.com/archives/CCYDC34A0" target="_blank" rel="noopener"><i
22+
class="bi bi-slack"></i> Slack</a>
23+
<a href="https://discourse.julialang.org/c/domain/probprog/48" target="_blank" rel="noopener"><i
24+
class="bi bi-chat-dots"></i> Discourse</a>
25+
</div>
26+
</div>
27+
28+
<div class="footer-column footer-brands">
29+
<h5>Supported by leading researchers</h5>
30+
<p>Turing.jl is developed by researchers and engineers at the following research institutions.</p>
31+
<div class="logo-grid">
32+
<a href="https://mlg.eng.cam.ac.uk/" class="partner-logo" target="_blank" rel="noopener">
33+
<img src="/assets/images/brands/university-cambridge-logo-black-example-640x132.png"
34+
alt="University of Cambridge Logo" class="brands-light-mode-logo">
35+
<img src="/assets/images/brands/university-cambridge-logo-white-example-640x133.png"
36+
alt="University of Cambridge Logo Dark" class="brands-dark-mode-logo">
37+
</a>
38+
<a href="https://www.turing.ac.uk/" class="partner-logo" target="_blank" rel="noopener">
39+
<img src="/assets/images/brands/Turing_Logo_1000x400px_Black.webp"
40+
alt="The Alan Turing Institute Logo" class="brands-light-mode-logo">
41+
<img src="/assets/images/brands/Turing_Logo_1000x400px_White.webp"
42+
alt="The Alan Turing Institute Logo Dark" class="brands-dark-mode-logo">
43+
</a>
44+
</div>
45+
</div>
46+
47+
</div>
48+
<div class="footer-bottom">
49+
<p>Turing is created by <a href="https://mlg.eng.cam.ac.uk/hong/" target="_blank" rel="noopener">Hong
50+
Ge</a>, and maintained by the core <a href="/team" target="_blank" rel="noopener">team</a> of
51+
developers and <a href="https://github.com/TuringLang/Turing.jl/graphs/contributors" target="_blank"
52+
rel="noopener">contributors</a>.<br>© 2025 The Turing Project Contributors. <a
53+
href="https://github.com/TuringLang/Turing.jl/blob/master/LICENCE" target="_blank"
54+
rel="noopener">MIT License</a>.</p>
55+
<a href="https://github.com/TuringLang/turinglang.github.io/" target="_blank" rel="noopener"
56+
class="footer-source-link"><i class="bi bi-github"></i> Website Source</a>
57+
</div>
58+
</div>
59+
</footer>

_quarto.yml

Lines changed: 5 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ website:
2626
location: navbar
2727
type: overlay
2828
navbar:
29-
logo: /assets/logo/turing-logo.svg
29+
logo: /assets/logo/turing-logo-light.svg
30+
title: false
31+
background: "#ffffff"
3032
# logo-href: https://turinglang.org/ -- Keep this commented so clicking on logo in dev mode doesn't redirect to the site
3133
left:
3234
- text: Get Started
@@ -83,52 +85,9 @@ format:
8385
}
8486
</script>
8587
include-after-body:
88+
- file: _includes/navbar/navbar.html
8689
- text: |
87-
<footer class="custom-footer">
88-
<div class="footer-container">
89-
<div class="footer-grid">
90-
<div class="footer-links-wrapper">
91-
<div class="footer-column footer-explore">
92-
<h5>Explore</h5>
93-
<a href="https://turinglang.org/docs/getting-started/">Get Started</a>
94-
<a href="https://turinglang.org/docs/tutorials/">Tutorials</a>
95-
<a href="https://turinglang.org/docs/faq/">FAQ</a>
96-
<a href="/library">Libraries</a>
97-
<a href="/news">News</a>
98-
<a href="/team">Team</a>
99-
</div>
100-
101-
<div class="footer-column footer-connect">
102-
<h5>Connect</h5>
103-
<a href="https://github.com/TuringLang" target="_blank" rel="noopener"><i class="bi bi-github"></i> GitHub</a>
104-
<a href="https://x.com/TuringLang" target="_blank" rel="noopener"><i class="bi bi-twitter-x"></i> Twitter</a>
105-
<a href="https://julialang.slack.com/archives/CCYDC34A0" target="_blank" rel="noopener"><i class="bi bi-slack"></i> Slack</a>
106-
<a href="https://discourse.julialang.org/c/domain/probprog/48" target="_blank" rel="noopener"><i class="bi bi-chat-dots"></i> Discourse</a>
107-
</div>
108-
</div>
109-
110-
<div class="footer-column footer-brands">
111-
<h5>Supported by leading researchers</h5>
112-
<p>Turing.jl is developed by researchers and engineers at the following research institutions.</p>
113-
<div class="logo-grid">
114-
<a href="https://mlg.eng.cam.ac.uk/" class="partner-logo" target="_blank" rel="noopener">
115-
<img src="/assets/images/brands/university-cambridge-logo-black-example-640x132.png" alt="University of Cambridge Logo" class="brands-light-mode-logo">
116-
<img src="/assets/images/brands/university-cambridge-logo-white-example-640x133.png" alt="University of Cambridge Logo Dark" class="brands-dark-mode-logo">
117-
</a>
118-
<a href="https://www.turing.ac.uk/" class="partner-logo" target="_blank" rel="noopener">
119-
<img src="/assets/images/brands/Turing_Logo_1000x400px_Black.webp" alt="The Alan Turing Institute Logo" class="brands-light-mode-logo">
120-
<img src="/assets/images/brands/Turing_Logo_1000x400px_White.webp" alt="The Alan Turing Institute Logo Dark" class="brands-dark-mode-logo">
121-
</a>
122-
</div>
123-
</div>
124-
125-
</div>
126-
<div class="footer-bottom">
127-
<p>Turing is created by <a href="https://mlg.eng.cam.ac.uk/hong/" target="_blank" rel="noopener">Hong Ge</a>, and maintained by the core <a href="/team" target="_blank" rel="noopener">team</a> of developers and <a href="https://github.com/TuringLang/Turing.jl/graphs/contributors" target="_blank" rel="noopener">contributors</a>.<br>© 2025 The Turing Project Contributors. <a href="https://github.com/TuringLang/Turing.jl/blob/master/LICENCE" target="_blank" rel="noopener">MIT License</a>.</p>
128-
<a href="https://github.com/TuringLang/turinglang.github.io/" target="_blank" rel="noopener" class="footer-source-link"><i class="bi bi-github"></i> Website Source</a>
129-
</div>
130-
</div>
131-
</footer>
90+
<script>document.addEventListener('DOMContentLoaded',async()=>{const e=document.querySelector('.navbar-logo');if(!e)return;const t=await fetch('/assets/logo/turing-logo-light.svg').then(e=>e.text()),o=new DOMParser().parseFromString(t,'image/svg+xml').documentElement;o.classList.add('navbar-logo'),e.replaceWith(o)});</script>
13291
13392
# Global Variables to use in any qmd files using:
13493
# {{< meta site-url >}}

assets/logo/turing-logo-light.svg

Lines changed: 1 addition & 1 deletion
Loading

theming/theme-dark.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@
3232
.custom-footer .brands-dark-mode-logo {
3333
display: inline !important;
3434
}
35+
36+
.navbar-logo .logo-text {
37+
fill: white;
38+
}

0 commit comments

Comments
 (0)