Skip to content

Commit 182068b

Browse files
Move keyfeatures out of config (#479)
1 parent 888de9a commit 182068b

File tree

3 files changed

+41
-15
lines changed

3 files changed

+41
-15
lines changed

doc/config.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ params:
3434
url: /shortcodes/
3535
- title: Examples
3636
url: /examples/
37-
keyfeatures:
38-
features:
39-
- title: Documented
40-
text: The theme is documented at https://theme.scientific-python.org.
41-
- title: Reusable
42-
text: "The theme is being used by
43-
[scientific-python.org](https://github.com/scientific-python/scientific-python.org),
44-
[numpy.org](https://github.com/numpy/numpy.org), and
45-
[scipy.org](https://github.com/scipy/scipy.org)."
46-
- title: Community Maintained
47-
text: The theme is maintained by the [Theme Team](/about/).
4837
footer:
4938
logo: logo.svg
5039
socialmediatitle: ""

doc/content/_index.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title:
3+
---
4+
5+
{{< grid >}}
6+
7+
{{< card >}}
8+
title = 'Documented'
9+
body = '''
10+
The theme is documented at https://theme.scientific-python.org.
11+
'''
12+
{{< /card >}}
13+
14+
{{< card >}}
15+
title = 'Reusable'
16+
body = '''
17+
The theme is being used by
18+
[scientific-python.org](https://github.com/scientific-python/scientific-python.org),
19+
[numpy.org](https://github.com/numpy/numpy.org), and
20+
[scipy.org](https://github.com/scipy/scipy.org).
21+
'''
22+
{{< /card >}}
23+
24+
{{< card >}}
25+
title = 'Community Maintained'
26+
body = '''
27+
The theme is maintained by the [Theme Team](/about/).
28+
'''
29+
{{< /card >}}
30+
31+
{{< /grid >}}

layouts/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@
77
{{ partial "panel.html" . }}
88
{{ end }}
99

10-
{{ if .Content }}
11-
{{ partial "single/content.html" . }}
12-
{{ end }}
13-
1410
{{ if .Site.GetPage "/news" }}
1511
{{ partial "news.html" . }}
1612
{{ end }}
1713

14+
{{ if .Content }}
15+
<section class="article content-padding">
16+
<div class="content-container">
17+
<div class="article-content">
18+
{{ .Content }}
19+
</div>
20+
</div>
21+
</section>
22+
{{ end }}
23+
1824
{{ if .Site.Params.keyfeatures }}
1925
{{ partial "keyfeatures.html" . }}
2026
{{ end }}

0 commit comments

Comments
 (0)