File tree 4 files changed +19
-9
lines changed
4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ highlight_code = true
24
24
name = " Ecosystem"
25
25
section = " docs"
26
26
url = " /ecosystem/"
27
- weight = 10
28
27
29
28
[[extra .menu .main ]]
30
29
name = " Blog"
31
30
section = " blog"
32
31
url = " /blog/"
33
- weight = 20
32
+
33
+ [[extra .menu .main ]]
34
+ name = " Docs"
35
+ url = " https://hackage.haskell.org/package/effectful-core/docs/Effectful.html"
34
36
35
37
[[extra .section .extra ]]
36
38
repo_url = " https://github.com/haskell-effectful/"
Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ title = "Effectful"
5
5
# The homepage contents
6
6
[extra ]
7
7
lead = " Build Fast & Reliable Haskell Applications"
8
- url = " /ecosystem/"
9
- url_button = " Browse the ecosystem"
8
+ left_url = " /ecosystem/"
9
+ left_url_button = " Browse the ecosystem"
10
+ right_url = " https://hackage.haskell.org/package/effectful-core/docs/Effectful.html"
11
+ right_url_button = " Read the documentation"
10
12
repo_version = " "
11
13
repo_license = " "
12
14
repo_url = " https://github.com/haskell-effectful/effectful"
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ <h1 class="mt-0">{{ section.title | default(value="Modern Documentation Theme")
35
35
< p >
36
36
< img src ="{{ section.extra.icon}} " height =250 > </ img >
37
37
</ p >
38
- < a class ="btn btn-primary btn-lg px-4 mb-2 " href ="{{ get_url(path=section.extra.url | default(value= "/")) | safe }}" role="button"> {{ section.extra.url_button | default(value="Get started") }}</ a >
39
- < p class ="meta " > {{ section.extra.repo_license | default(value="MIT")}} < a href ="{{ section.extra.repo_url | default(value= "https: //github.com/aaranxu/adidoks") | safe }}"> {{ section.extra.repo_version | default(value="0.1.0 ") }}</ a > </ p >
38
+ < a class ="btn btn-primary btn-lg px-4 mb-2 " href ="{{ get_url(path=section.extra.left_url | default(value= "/")) | safe }}" role="button"> {{ section.extra.left_url_button | default(value="Get started") }}</ a >
39
+ < a class ="btn btn-primary btn-lg px-4 mb-2 ms-4 " href ="{{ get_url(path= section.extra.right_url | default(value= "/")) | safe }}" role="button" > {{ section.extra.right_url_button | default(value="Get started ") }}</ a >
40
40
</ div >
41
41
</ div >
42
42
</ section >
Original file line number Diff line number Diff line change 38
38
{% endfor %}
39
39
{% elif config.extra.menu.main %}
40
40
{% for val in config.extra.menu.main %}
41
- < li class ="nav-item{% if current_section == val.section %} {{ current_section }} active{% endif %} ">
42
- < a class ="nav-link " href ="{{ get_url(path=val.url, trailing_slash=true) | safe }} "> {{ val.name }}</ a >
43
- </ li >
41
+ {% if val.section %}
42
+ < li class ="nav-item{% if current_section == val.section %} {{ current_section }} active{% endif %} ">
43
+ < a class ="nav-link " href ="{{ get_url(path=val.url, trailing_slash=true) | safe }} "> {{ val.name }}</ a >
44
+ </ li >
45
+ {% else %}
46
+ < li class ="nav-item ">
47
+ < a class ="nav-link " href ="{{ val.url | safe }} "> {{ val.name }}</ a >
48
+ </ li >
49
+ {% endif %}
44
50
{% endfor %}
45
51
{% else %}
46
52
< li class ="nav-item ">
You can’t perform that action at this time.
0 commit comments