forked from inveniosoftware/docs-invenio-rdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrontpage.html
100 lines (91 loc) · 2.64 KB
/
frontpage.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!--
Copyright (C) 2018-2024 CERN.
Copyright (C) 2018-2024 Northwestern University.
Copyright (C) 2022-2024 KTH Royal Institute of Technology.
Invenio is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
-->
{% extends "main.html" %}
{% macro render(nav_item, path, level) %}
{% if nav_item.url %}
{% set link = nav_item.url | url %}
{% elif nav_item.children %}
{% set link = nav_item.children[0].url | url %}
{% else %}
{% set link = "" %}
{% endif %}
{% if nav_item.children and level <= 1 %}
<li class="rdm-toc-item level{{level}} nested">
<div>
<a href="{{ link }}">{{ nav_item.title }}</a>
<ul>
{% for nav_item in nav_item.children %}
{{ render(nav_item, path ~ "_" ~ loop.index, level + 1) }}
{% endfor %}
</ul>
</div>
</li>
{% else %}
<li class="rdm-toc-item level{{level}}">
<div>
<a href="{{ link }}">{{ nav_item.title }}</a>
</div>
</li>
{% endif %}
{% endmacro %}
<!-- Render hero under tabs -->
{% block tabs %}
{{ super() }}
<style>
/* Embedded CSS styles to isolate changes to this page only */
body[data-md-color-scheme] .md-header {
background: transparent;
position: static;
transform: translateY(0px);
}
body[data-md-color-scheme] .md-tabs {
border-bottom: none;
background: transparent;
}
</style>
<!-- Hero for landing page -->
<section class="mdx-container">
<div class="rdm-hero-bg">
<svg
class="wave-svg"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1123 258"
>
<path
d="M1124,2c0,0 0,256 0,256l-1125,0l0,-48c0,0 16,5 55,5c116,0 197,-92 325,-92c121,0 114,46 254,46c140,0 214,-167 572,-166Z"
/>
</svg>
</div>
<div class="rdm-hero md-typeset">
<img src="images/logo-invenio-rdm.svg" />
<div class="rdm-hero-subtitle">
The turn-key research data management repository
</div>
<a href="/install/" class="md-button md-button--primary">Quick start</a>
<a href="https://inveniordm.web.cern.ch" class="md-button">Demo site</a>
</div>
</section>
{% endblock %}
<!-- Content -->
{% block content %}
{% if "material/tags" in config.plugins and tags %}
{% include "partials/tags.html" %}
{% endif %}
{% include "partials/actions.html" %}
{{ page.content }}
{% include "partials/source-file.html" %}
<ul class="rdm-toc">
{% for nav_item in nav %}
{%- if nav_item.title != "Home" %}
{%- set path = "__nav_" ~ loop.index %}
{%- set level = 1 %}
{{ render(nav_item, path, level) }}
{%- endif %}
{% endfor %}
</ul>
{% endblock %}