File tree 5 files changed +28
-3
lines changed
5 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ params:
30
30
# Hero image (from static/images/___)
31
31
image : logos/numpy.svg
32
32
# Customizable navbar. For a dropdown, add a "sublinks" list.
33
-
33
+ news :
34
+ title : NumPy News
34
35
section3 :
35
36
title : CASE STUDIES
36
37
features :
Original file line number Diff line number Diff line change 3
3
{{ partial "hero.html" . }}
4
4
{{ end }}
5
5
6
- {{ if .Site.Params.section1 }}
7
- {{ partial "section1 .html" . }}
6
+ {{ if .Site.Params.news }}
7
+ {{ partial "news .html" . }}
8
8
{{ end }}
9
9
10
10
{{ if .Site.Params.section2 }}
Original file line number Diff line number Diff line change 24
24
< link rel ="stylesheet " type ="text/css " href ="{{ "css /shell.css" | relURL }}" />
25
25
< link rel ="stylesheet " type ="text/css " href ="{{ "css /tabs.css" | relURL }}" />
26
26
< link rel ="stylesheet " type ="text/css " href ="{{ "css /content.css" | relURL }}" />
27
+ < link rel ="stylesheet " type ="text/css " href ="{{ "css /news.css" | relURL }}" />
27
28
< link rel ="stylesheet " type ="text/css " href ="{{ "css /section2.css" | relURL }}" />
28
29
< link rel ="stylesheet " type ="text/css " href ="{{ "css /section3.css" | relURL }}" />
Original file line number Diff line number Diff line change
1
+ {{- $news := .Site.Params.news }}
2
+ {{- $title := index $news "title" }}
3
+
4
+ < div class ="news-container ">
5
+ < div class ="news-title "> {{ $title }}</ div >
6
+ < div class ="news-content "> NumPy News goes here</ div >
7
+ </ div >
Original file line number Diff line number Diff line change
1
+ .news-container {
2
+ display : flex;
3
+ flex-direction : column;
4
+ align-items : center;
5
+ width : 100vw ;
6
+ min-height : 100px ;
7
+ }
8
+
9
+ .news-title {
10
+ display : flex;
11
+ flex-direction : column;
12
+ width : 100% ;
13
+ align-items : center;
14
+ letter-spacing : 1.5px ;
15
+ font-size : 27px ;
16
+ }
You can’t perform that action at this time.
0 commit comments