Skip to content

Commit e268097

Browse files
Add Lato as a default font
1 parent b42d272 commit e268097

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

assets/theme-css/navbar.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
.navbar-logo-text {
1919
font-size: 1.25rem;
2020
font-weight: 700;
21+
font-family: "Lato", sans-serif;
2122
}
2223
.navbar .container {
2324
min-height: 4rem;

doc/config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ params:
2626
image: logo.svg
2727
text: Scientific Python Hugo Theme
2828
link: /
29-
fonts:
30-
- name: "Lato"
31-
weights: [400, 900]
3229
hero:
3330
title: Scientific Python Theme
3431
image: logo.svg

exampleSite/config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ params:
2626
image: logo.svg
2727
text: Scientific Python Hugo Theme
2828
link: /
29-
fonts:
30-
- name: "Lato"
31-
weights: [400, 900]
3229
hero:
3330
title: Example Site
3431
image: logo.svg

layouts/partials/css.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@
2121

2222
<link rel="icon" href="{{ "images/favicon.ico" | relURL }}" />
2323

24-
<!-- Fallback font for symbols (such as "🛈"). --
24+
<!-- Fallback font for symbols (such as "🛈"). -->
2525
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2">
2626

27+
<!-- Default theme font (Lato). -->
28+
<link rel="preconnect" href="https://fonts.googleapis.com">
29+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
30+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700">
31+
2732
<!-- Process and include Sass files. -->
2833
{{- $sass := append (resources.Get "theme-css/sphinx-design/index.scss")
2934
(resources.Get "theme-css/pst/bootstrap.scss")

0 commit comments

Comments
 (0)