Skip to content

Commit 24e4692

Browse files
Removes aileron font. Adds homepage instructions.
1 parent 36f57c0 commit 24e4692

21 files changed

+192
-84
lines changed

assets/scss/common/_fonts.scss

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1-
/* Aileron - latin */
2-
@font-face {
3-
font-family: "Aileron";
4-
font-style: normal;
5-
font-weight: 100;
6-
font-display: auto;
7-
src:
8-
url("/fonts/aileron/Aileron-UltraThin.otf") format("opentype")
9-
}
1+
// /* Aileron - latin */
2+
// @font-face {
3+
// font-family: "Aileron";
4+
// font-style: normal;
5+
// font-weight: 100;
6+
// font-display: auto;
7+
// src:
8+
// url("/fonts/aileron/Aileron-UltraThin.otf") format("opentype")
9+
// }
1010

11-
/* Aileron - latin */
12-
@font-face {
13-
font-family: "Aileron";
14-
font-style: normal;
15-
font-weight: 200;
16-
font-display: auto;
17-
src:
18-
url("/fonts/aileron/Aileron-Thin.otf") format("opentype")
19-
}
11+
// /* Aileron - latin */
12+
// @font-face {
13+
// font-family: "Aileron";
14+
// font-style: normal;
15+
// font-weight: 200;
16+
// font-display: auto;
17+
// src:
18+
// url("/fonts/aileron/Aileron-Thin.otf") format("opentype")
19+
// }
2020

21-
/* Aileron - latin */
22-
@font-face {
23-
font-family: "Aileron";
24-
font-style: normal;
25-
font-weight: 300;
26-
font-display: auto;
27-
src:
28-
url("/fonts/aileron/Aileron-Light.otf") format("opentype")
29-
}
21+
// /* Aileron - latin */
22+
// @font-face {
23+
// font-family: "Aileron";
24+
// font-style: normal;
25+
// font-weight: 300;
26+
// font-display: auto;
27+
// src:
28+
// url("/fonts/aileron/Aileron-Light.otf") format("opentype")
29+
// }
3030

31-
/* Aileron - latin */
32-
@font-face {
33-
font-family: "Aileron";
34-
font-style: normal;
35-
font-weight: 400;
36-
font-display: auto;
37-
src:
38-
url("/fonts/aileron/Aileron-Regular.otf") format("opentype")
39-
}
31+
// /* Aileron - latin */
32+
// @font-face {
33+
// font-family: "Aileron";
34+
// font-style: normal;
35+
// font-weight: 400;
36+
// font-display: auto;
37+
// src:
38+
// url("/fonts/aileron/Aileron-Regular.otf") format("opentype")
39+
// }
4040

41-
/* Aileron - latin */
42-
@font-face {
43-
font-family: "Aileron";
44-
font-style: normal;
45-
font-weight: 500;
46-
font-display: auto;
47-
src:
48-
url("/fonts/aileron/Aileron-SemiBold.otf") format("opentype")
49-
}
41+
// /* Aileron - latin */
42+
// @font-face {
43+
// font-family: "Aileron";
44+
// font-style: normal;
45+
// font-weight: 500;
46+
// font-display: auto;
47+
// src:
48+
// url("/fonts/aileron/Aileron-SemiBold.otf") format("opentype")
49+
// }
5050

51-
/* Aileron - latin */
52-
@font-face {
53-
font-family: "Aileron";
54-
font-style: normal;
55-
font-weight: 600;
56-
font-display: auto;
57-
src:
58-
url("/fonts/aileron/Aileron-Bold.otf") format("opentype")
59-
}
51+
// /* Aileron - latin */
52+
// @font-face {
53+
// font-family: "Aileron";
54+
// font-style: normal;
55+
// font-weight: 600;
56+
// font-display: auto;
57+
// src:
58+
// url("/fonts/aileron/Aileron-Bold.otf") format("opentype")
59+
// }
6060

61-
/* Aileron - latin */
62-
@font-face {
63-
font-family: "Aileron";
64-
font-style: normal;
65-
font-weight: 700;
66-
font-display: auto;
67-
src:
68-
url("/fonts/aileron/Aileron-Heavy.otf") format("opentype")
69-
}
61+
// /* Aileron - latin */
62+
// @font-face {
63+
// font-family: "Aileron";
64+
// font-style: normal;
65+
// font-weight: 700;
66+
// font-display: auto;
67+
// src:
68+
// url("/fonts/aileron/Aileron-Heavy.otf") format("opentype")
69+
// }
7070

71-
/* Aileron black - latin */
72-
@font-face {
73-
font-family: "Aileron";
74-
font-style: normal;
75-
font-weight: 800;
76-
font-display: auto;
77-
src:
78-
url("/fonts/aileron/Aileron-Black.otf") format("opentype")
79-
}
71+
// /* Aileron black - latin */
72+
// @font-face {
73+
// font-family: "Aileron";
74+
// font-style: normal;
75+
// font-weight: 800;
76+
// font-display: auto;
77+
// src:
78+
// url("/fonts/aileron/Aileron-Black.otf") format("opentype")
79+
// }
8080

81-
/* jost-regular - latin */
82-
@font-face {
83-
font-family: "Aileron";
84-
font-style: normal;
85-
font-weight: 500;
86-
font-display: auto;
87-
src:
88-
url("/fonts/aileron/Aileron-Black.otf") format("opentype")
89-
}
81+
// /* jost-regular - latin */
82+
// @font-face {
83+
// font-family: "Aileron";
84+
// font-style: normal;
85+
// font-weight: 500;
86+
// font-display: auto;
87+
// src:
88+
// url("/fonts/aileron/Aileron-Black.otf") format("opentype")
89+
// }

assets/scss/common/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ $border-color: $gray-200;
106106
// Font, line-height, and color for body text, headings, and more.
107107

108108
// stylelint-disable value-keyword-case
109-
$font-family-sans-serif: "Aileron", monospace, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
109+
$font-family-sans-serif: "Helvetica Neue", arial, "Noto Sans", sans-serif, monospace, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
110110
$font-family-monospace: sfmono-regular, menlo, monaco, consolas, "Liberation Mono", "Courier New", monospace;
111111
$font-family-base: $font-family-sans-serif;
112112
// stylelint-enable value-keyword-case

config/_default/menus/menus.en.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[main]]
22
name = "Docs"
3-
url = "/docs/basics/copy-the-template/"
3+
url = "/docs/basics/create-your-project/"
44
identifier = "docs"
55
weight = 1
66

content/en/docs/basics/create-your-project/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ images: []
77
type: docs
88
menu:
99
docs:
10-
parent: "lorem"
1110
identifier: "create-your-project-d2c050fb5faacaef26719b08ac79b55e"
1211
weight: 1
1312
toc: true
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
title: "Homepage"
3+
description: ""
4+
lead: ""
5+
draft: false
6+
images: []
7+
type: docs
8+
menu:
9+
docs:
10+
identifier: "homepage-34abaab9738d1f78e8388bea91e06430"
11+
weight: 100
12+
toc: true
13+
---
14+
15+
## Disable the homepage
16+
17+
If you'd like to make one of your docs pages the homepage, instead of `index.html`, then you can do so by following these steps:
18+
19+
1. Find the page that you want to be the new _homepage_. In this example we're going to use [/docs/basics/create-your-project/]({{< relref "/docs/basics/create-your-project" >}}).
20+
1. In the front-matter of `content/en/docs/basics/create-your-project/index.md` add a `url` variable and set it to `/`:
21+
22+
```toml
23+
...
24+
type: docs
25+
menu:
26+
docs:
27+
identifier: "create-your-project-d2c050fb5faacaef26719b08ac79b55e"
28+
weight: 1
29+
toc: true
30+
url: "/"
31+
```
32+
33+
1. Rename `layouts/index.html` to `layouts/index.html.bak`. Run this command from the root of your project:
34+
35+
```shell
36+
mv layouts/index.html layouts/index.html.bak
37+
```
38+
39+
1. Rename `layouts/_default/list.html` to `layouts/_default/list.html.bak`. Run this command from the root of your project:
40+
41+
```shell
42+
mv layouts/_default/list.html layouts/_default/list.html.bak
43+
```
44+
45+
1. Update the first and second items in `config/_default/menus/menus.en.toml` and change the `url` variable to `/`:
46+
47+
```toml
48+
[[main]]
49+
name = "Docs"
50+
url = "/"
51+
identifier = "docs"
52+
weight = 1
53+
54+
[[main]]
55+
name = "Basics"
56+
weight = 10
57+
identifier = "docs-basics"
58+
url = "/"
59+
parent = "docs"
60+
```
61+
62+
1. Stop and then restart your local server with `npm run start`.
63+
64+
## Re-enable the homepage
65+
66+
Follow these steps if you disabled the custom homepage but would like to re-enable it:
67+
68+
1. Update the first and second items in `config/_default/menus/menus.en.toml` and change the `url` variable to `/`:
69+
70+
```toml
71+
[[main]]
72+
name = "Docs"
73+
url = "/docs/basics/create-your-project"
74+
identifier = "docs"
75+
weight = 1
76+
77+
[[main]]
78+
name = "Basics"
79+
weight = 10
80+
identifier = "docs-basics"
81+
url = "/docs/basics/create-your-project"
82+
parent = "docs"
83+
```
84+
85+
1. Rename `layouts/_default/list.html.bak` to `layouts/_default/list.html`. Run this command from the root of your project:
86+
87+
```shell
88+
mv layouts/_default/list.html.bak layouts/_default/list.html
89+
```
90+
91+
1. Rename `layouts/index.html.bak` to `layouts/index.html`. Run this command from the root of your project:
92+
93+
```shell
94+
mv layouts/index.html.bak layouts/index.html
95+
```
96+
97+
1. In the front-matter of `content/en/docs/basics/create-your-project/index.md` remove the `url` variable:
98+
99+
```toml
100+
...
101+
type: docs
102+
menu:
103+
docs:
104+
identifier: "create-your-project-d2c050fb5faacaef26719b08ac79b55e"
105+
weight: 1
106+
toc: true
107+
```
108+
109+
1. Stop and then restart your local server with `npm run start`.
-29.2 KB
Binary file not shown.
-30.1 KB
Binary file not shown.

static/fonts/aileron/Aileron-Bold.otf

-28.5 KB
Binary file not shown.
-30.2 KB
Binary file not shown.
-29.4 KB
Binary file not shown.
-30.7 KB
Binary file not shown.
-28.9 KB
Binary file not shown.
-27.7 KB
Binary file not shown.
-28.7 KB
Binary file not shown.
-27 KB
Binary file not shown.
-28.2 KB
Binary file not shown.
-29.3 KB
Binary file not shown.

static/fonts/aileron/Aileron-Thin.otf

-27.9 KB
Binary file not shown.
-28.8 KB
Binary file not shown.
-27 KB
Binary file not shown.
-28.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)