mirror of https://github.com/MISP/misp-website
chg: [menu] more menu work
parent
ef880c1367
commit
7871d48245
|
@ -33,5 +33,4 @@ To compile a local version of the website, run the following commands in a termi
|
||||||
|
|
||||||
## How to deploy the MISP website
|
## How to deploy the MISP website
|
||||||
|
|
||||||
TODO figure this out
|
|
||||||
|
|
||||||
|
|
169
config.toml
169
config.toml
|
@ -135,125 +135,162 @@ disablePathToLower = "True"
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "menu.contact"
|
identifier = "menu.contact"
|
||||||
name = "Contact"
|
name = "Contact"
|
||||||
url = ""
|
url = "/img/menu-contact.png"
|
||||||
weight = 90
|
weight = 90
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Contact"
|
identifier = "section.contact"
|
||||||
|
name = "Reaching us"
|
||||||
|
parent = "menu.contact"
|
||||||
|
weight = 1
|
||||||
|
post = 1
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Contact Us"
|
||||||
url = "/support/"
|
url = "/support/"
|
||||||
weight = 1
|
weight = 1
|
||||||
parent = "menu.contact"
|
parent = "section.contact"
|
||||||
post = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Press"
|
name = "Press inquiries"
|
||||||
url = "/press/"
|
url = "/press/"
|
||||||
weight = 2
|
weight = 2
|
||||||
parent = "menu.contact"
|
parent = "section.contact"
|
||||||
post = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Who"
|
|
||||||
url = "/who/"
|
|
||||||
weight = 3
|
|
||||||
parent = "menu.contact"
|
|
||||||
post = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Contributors"
|
|
||||||
url = "/contributors/"
|
|
||||||
weight = 4
|
|
||||||
parent = "menu.contact"
|
|
||||||
post = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Governance"
|
|
||||||
url = "/governance/"
|
|
||||||
weight = 6
|
|
||||||
parent = "menu.contact"
|
|
||||||
post = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Professional Services"
|
name = "Professional Services"
|
||||||
url = "/professional-services/"
|
url = "/professional-services/"
|
||||||
weight = 2
|
weight = 2
|
||||||
parent = "menu.contact"
|
parent = "section.contact"
|
||||||
post = 1
|
post = 1
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Security"
|
name = "Security Matters"
|
||||||
url = "/security/"
|
url = "/security/"
|
||||||
weight = 2
|
weight = 2
|
||||||
parent = "menu.contact"
|
parent = "section.contact"
|
||||||
post = 1
|
post = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "section.who"
|
||||||
|
name = "Who are we?"
|
||||||
|
parent = "menu.contact"
|
||||||
|
weight = 1
|
||||||
|
post = 2
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Who"
|
||||||
|
url = "/who/"
|
||||||
|
weight = 3
|
||||||
|
parent = "section.who"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Contributors"
|
||||||
|
url = "/contributors/"
|
||||||
|
weight = 4
|
||||||
|
parent = "section.who"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Governance"
|
||||||
|
url = "/governance/"
|
||||||
|
weight = 6
|
||||||
|
parent = "section.who"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "menu.documentation"
|
identifier = "menu.documentation"
|
||||||
name = "Documentation"
|
name = "Documentation"
|
||||||
url = ""
|
url = "/img/menu-book.png"
|
||||||
weight = 40
|
weight = 40
|
||||||
|
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Documentation"
|
||||||
|
identifier = "section.documentation"
|
||||||
|
parent = "menu.documentation"
|
||||||
|
weight = 1
|
||||||
|
post = 1
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Documentation"
|
name = "Documentation"
|
||||||
url = "/documentation/"
|
url = "/documentation/"
|
||||||
weight = 1
|
weight = 1
|
||||||
parent = "menu.documentation"
|
parent = "section.documentation"
|
||||||
post = 1
|
post = 1
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "OpenAPI"
|
||||||
|
url = "/documentation/openapi.html"
|
||||||
|
weight = 2
|
||||||
|
parent = "section.documentation"
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Tools"
|
name = "Tools"
|
||||||
url = "/tools/"
|
url = "/tools/"
|
||||||
weight = 2
|
weight = 3
|
||||||
parent = "menu.documentation"
|
parent = "section.documentation"
|
||||||
post = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Support"
|
name = "Support"
|
||||||
url = "/support/"
|
url = "/support/"
|
||||||
weight = 3
|
|
||||||
parent = "menu.documentation"
|
|
||||||
post = 1
|
|
||||||
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Legal and policy"
|
|
||||||
url = "/compliance/"
|
|
||||||
weight = 4
|
weight = 4
|
||||||
parent = "menu.documentation"
|
parent = "section.documentation"
|
||||||
post = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "License"
|
|
||||||
url = "/license/"
|
|
||||||
weight = 5
|
|
||||||
parent = "menu.documentation"
|
|
||||||
post = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Contributing"
|
name = "Contributing"
|
||||||
|
identifier = "section.contributing"
|
||||||
url = "/contributing/"
|
url = "/contributing/"
|
||||||
weight = 6
|
weight = 5
|
||||||
parent = "menu.documentation"
|
parent = "section.documentation"
|
||||||
post = 1
|
|
||||||
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Research projects"
|
name = "Research projects"
|
||||||
url = "/research-projects/"
|
url = "/research-projects/"
|
||||||
weight = 7
|
weight = 6
|
||||||
parent = "menu.documentation"
|
parent = "section.documentation"
|
||||||
post = 1
|
|
||||||
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "OpenAPI spec"
|
name = "Legal"
|
||||||
url = "/documentation/openapi.html"
|
identifier = "section.legal"
|
||||||
weight = 8
|
url = ""
|
||||||
|
weight = 5
|
||||||
parent = "menu.documentation"
|
parent = "menu.documentation"
|
||||||
post = 1
|
post = 2
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "License"
|
||||||
|
url = "/license/"
|
||||||
|
weight = 1
|
||||||
|
parent = "section.legal"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Legal and policy"
|
||||||
|
url = "/compliance/"
|
||||||
|
weight = 11
|
||||||
|
parent = "section.legal"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "GDPR"
|
||||||
|
url = "/compliance/GDPR"
|
||||||
|
weight = 12
|
||||||
|
parent = "section.legal"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "ISO/IEC 27010:2015"
|
||||||
|
url = "/compliance/ISO-IEC-27010/"
|
||||||
|
weight = 13
|
||||||
|
parent = "section.legal"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "NISD"
|
||||||
|
url = "/compliance/NISD"
|
||||||
|
weight = 14
|
||||||
|
parent = "section.legal"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -292,7 +329,7 @@ disablePathToLower = "True"
|
||||||
[[menu.topbar]]
|
[[menu.topbar]]
|
||||||
weight = 6
|
weight = 6
|
||||||
name = "RSS Feed"
|
name = "RSS Feed"
|
||||||
url = "index.xml"
|
url = "/index.xml"
|
||||||
pre = "<i class='fas fa-2x fa-rss'></i>"
|
pre = "<i class='fas fa-2x fa-rss'></i>"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
@ -445,7 +482,7 @@ disablePathToLower = "True"
|
||||||
[params.recent_posts]
|
[params.recent_posts]
|
||||||
enable = true
|
enable = true
|
||||||
title = "From our blog"
|
title = "From our blog"
|
||||||
subtitle = "TODO blabla, blog, press, ...Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo."
|
subtitle = "In addition to the [news](/blog/) stories below, check out the [press](/press), [events](/events), [hackathon](hackathon), [MISP Summit](misp-summit) pages and full [news archive](/blog)."
|
||||||
hide_summary = false
|
hide_summary = false
|
||||||
|
|
||||||
[params.footer.recent_posts]
|
[params.footer.recent_posts]
|
||||||
|
|
|
@ -64,13 +64,15 @@
|
||||||
{{ range .Children.ByWeight }}
|
{{ range .Children.ByWeight }}
|
||||||
{{ $column := printf "%s" .Post }}
|
{{ $column := printf "%s" .Post }}
|
||||||
{{ if eq $column "1" }}
|
{{ if eq $column "1" }}
|
||||||
<li><a href="{{ .URL}}">{{ .Name }}</a></li>
|
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
|
<h5>{{ .Name }}</h5>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Children.ByWeight }}
|
{{ range .Children.ByWeight }}
|
||||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<li><a href="{{ .URL}}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -81,13 +83,15 @@
|
||||||
{{ range .Children.ByWeight }}
|
{{ range .Children.ByWeight }}
|
||||||
{{ $column := printf "%s" .Post }}
|
{{ $column := printf "%s" .Post }}
|
||||||
{{ if eq $column "2" }}
|
{{ if eq $column "2" }}
|
||||||
<li><a href="{{ .URL}}">{{ .Name }}</a></li>
|
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
|
<h5>{{ .Name }}</h5>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Children.ByWeight }}
|
{{ range .Children.ByWeight }}
|
||||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<li><a href="{{ .URL}}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -99,13 +103,15 @@
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
{{ $column := printf "%s" .Post }}
|
{{ $column := printf "%s" .Post }}
|
||||||
{{ if eq $column "3" }}
|
{{ if eq $column "3" }}
|
||||||
<li><a href="{{ .URL}}">{{ .Name }}</a></li>
|
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
|
<h5>{{ .Name }}</h5>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Children.ByWeight }}
|
{{ range .Children.ByWeight }}
|
||||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<li><a href="{{ .URL}}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -116,13 +122,15 @@
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
{{ $column := printf "%s" .Post }}
|
{{ $column := printf "%s" .Post }}
|
||||||
{{ if eq $column "4" }}
|
{{ if eq $column "4" }}
|
||||||
<li><a href="{{ .URL}}">{{ .Name }}</a></li>
|
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
|
<h5>{{ .Name }}</h5>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Children.ByWeight }}
|
{{ range .Children.ByWeight }}
|
||||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<li><a href="{{ .URL}}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -31,9 +31,7 @@
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.navbar .yamm-content h5 {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
opacity: 95%;
|
opacity: 95%;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 118 KiB |
Binary file not shown.
After Width: | Height: | Size: 91 KiB |
Loading…
Reference in New Issue