Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion content/english/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ draft: false
hidemetadata: true
---

## Workshop Projects

{{< workshop-list style="card" depth="1" showhidden="false" description="true" />}}

## Contributing

Want to help improve our workshops or our website? Click here: **[Workshop Contributor Guidelines](guidelines/)**!
8 changes: 8 additions & 0 deletions themes/docdock/layouts/partials/flex/body-beforecontent.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
<!-- Page Logo-->
{{ partial "header.html" . }}
</header>

{{- if .IsHome}}
<div>
<h2 style="margin-left: 2%;" class="Workshop-Projects-Header">Workshop Projects</h2>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will probably need to be localized

<p style="margin-left: 2%;">Here are the projects our organization has created.</p>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will probably need to be localized

</div>
{{- end}}

<article>
<aside>
<ul class="menu">
Expand Down
139 changes: 61 additions & 78 deletions themes/docdock/layouts/partials/menu.html
Original file line number Diff line number Diff line change
@@ -1,86 +1,69 @@
{{- $currentNode := . }}
{{- $showvisitedlinks := .Site.Params.showVisitedLinks -}}

{{- if eq .Site.Params.orderSectionsBy "title"}}
{{- range .Site.Home.Sections.ByTitle}}
{{- if (or (eq $currentNode .Site.Home) (.IsAncestor $currentNode))}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
{{- end}}
{{- end}}
{{- else}}
{{- range .Site.Home.Sections.ByWeight}}
{{- if (or (eq $currentNode .Site.Home) (.IsAncestor $currentNode))}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
{{- end}}
{{- end}}
{{- end}}
{{- $currentNode := . }} {{- $showvisitedlinks := .Site.Params.showVisitedLinks
-}} {{- if eq .Site.Params.orderSectionsBy "title"}} {{- range
.Site.Home.Sections.ByTitle}} {{- if (or (eq $currentNode .Site.Home)
(.IsAncestor $currentNode))}} {{- template "section-tree-nav" dict "sect" .
"currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}} {{- end}} {{-
end}} {{- else}} {{- range .Site.Home.Sections.ByWeight}} {{- if (or (eq
$currentNode .Site.Home) (.IsAncestor $currentNode))}} {{- template
"section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks"
$showvisitedlinks}} {{- end}} {{- end}} {{- end}}

<!-- templates -->
{{- define "section-tree-nav" }}
{{- $showvisitedlinks := .showvisitedlinks }}
{{- $currentNode := .currentnode }}
{{- with .sect}}
{{- if and .IsSection (or (not .Params.hidden) $.showhidden)}}
{{- $numberOfPages := (add (len .Pages) (len .Sections)) }}
{{- safeHTML .Params.head}}
<li data-nav-id="{{.Permalink}}" class="dd-item
{{- define "section-tree-nav" }} {{- $showvisitedlinks := .showvisitedlinks }}
{{- $currentNode := .currentnode }} {{- with .sect}} {{- if and .IsSection (or
(not .Params.hidden) $.showhidden)}} {{- $numberOfPages := (add (len .Pages)
(len .Sections)) }} {{- safeHTML .Params.head}}
<li
data-nav-id="{{.Permalink}}"
class="dd-item
{{- if .IsAncestor $currentNode}} parent{{end}}
{{- if eq .Permalink $currentNode.Permalink}} active{{end}}
{{- if .Params.alwaysopen}} alwaysopen{{end -}}
{{- if ne $numberOfPages 0 }} haschildren{{end}}
">
<div>
<a href="{{ .RelPermalink}}">{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}</a>

{{- if ne $numberOfPages 0 }}
{{- if or (.IsAncestor $currentNode) (.Params.alwaysopen) }}
<i class="fa fa-angle-down fa-lg category-icon"></i>
{{- else -}}
<i class="fa fa-angle-right fa-lg category-icon"></i>
{{- end}}
{{- end}}
"
>
<div>
<a href="{{ .RelPermalink}}"
>{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}</a
>

{{- if $showvisitedlinks}}<i class="fa fa-circle-thin read-icon"></i>{{end}}
</div>
{{- if ne $numberOfPages 0 }}
<ul>
{{- .Scratch.Set "pages" .Pages }}
{{- if .Sections}}
{{- .Scratch.Set "pages" (.Pages | union .Sections) }}
{{- end}}
{{- $pages := (.Scratch.Get "pages") }}

{{- if eq .Site.Params.orderPagesBy "title"}}
{{- range $pages.ByTitle }}
{{- if and .Params.hidden (not $.showhidden) }}
{{- else}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }}
{{- end}}
{{- end}}
{{- else}}
{{- range $pages.ByWeight }}
{{- if and .Params.hidden (not $.showhidden) }}
{{- else}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }}
{{- end}}
{{- end}}
{{- end}}
</ul>
{{- end}}
</li>
{{- else}}
{{- if not .Params.Hidden }}
<li data-nav-id="{{.Permalink}}" class="dd-item
{{- if eq .Permalink $currentNode.Permalink}} active{{end -}}
">
<div>
<a href="{{ .RelPermalink}}">
{{safeHTML .Params.Pre}}{{.LinkTitle}}{{safeHTML .Params.Post}}
</a>
{{- if $showvisitedlinks}}<i class="fa fa-circle-thin read-icon"></i>{{end}}
</div>
</li>
{{- end}}
{{- if ne $numberOfPages 0 }} {{- if or (.IsAncestor $currentNode)
(.Params.alwaysopen) }}
<i class="fa fa-angle-down fa-lg category-icon"></i>
{{- else -}}
<i class="fa fa-angle-up fa-lg category-icon"></i>
{{- end}} {{- end}} {{- if $showvisitedlinks}}<i
class="fa fa-circle-thin read-icon"
></i
>{{end}}
</div>
{{- if ne $numberOfPages 0 }}
<ul>
{{- .Scratch.Set "pages" .Pages }} {{- if .Sections}} {{- .Scratch.Set
"pages" (.Pages | union .Sections) }} {{- end}} {{- $pages := (.Scratch.Get
"pages") }} {{- if eq .Site.Params.orderPagesBy "title"}} {{- range
$pages.ByTitle }} {{- if and .Params.hidden (not $.showhidden) }} {{- else}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode
"showvisitedlinks" $showvisitedlinks }} {{- end}} {{- end}} {{- else}} {{-
range $pages.ByWeight }} {{- if and .Params.hidden (not $.showhidden) }} {{-
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like visual studio code messed up the formatting here, let's see if we can fix this

else}} {{- template "section-tree-nav" dict "sect" . "currentnode"
$currentNode "showvisitedlinks" $showvisitedlinks }} {{- end}} {{- end}} {{-
end}}
</ul>
{{- end}}
{{- end}}
{{- end}}
</li>
{{- else}} {{- if not .Params.Hidden }}
<li
data-nav-id="{{.Permalink}}"
class="dd-item
{{- if eq .Permalink $currentNode.Permalink}} active{{end -}}
"
>
<div>
<a href="{{ .RelPermalink}}">
{{safeHTML .Params.Pre}}{{.LinkTitle}}{{safeHTML .Params.Post}}
</a>
{{- if $showvisitedlinks}}<i class="fa fa-circle-thin read-icon"></i>{{end}}
</div>
</li>
{{- end}} {{- end}} {{- end}} {{- end}}
1 change: 1 addition & 0 deletions themes/docdock/static/css/chunk.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ body {
padding: 0;
font-family: Lato, sans-serif;
font-weight: normal;
background-color: #f1f6f1;
}
.jgBGVn span {
display: block;
Expand Down
5 changes: 2 additions & 3 deletions themes/docdock/static/css/data-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
font-family: Lato, sans-serif;
color: rgb(112, 112, 112);
font-size: 16px;
background-color: #ffffff;
}
.emolVn {
float: left;
Expand Down Expand Up @@ -94,9 +95,7 @@
text-decoration-style: unset;
}
.iFdsJw {
background-image: /*savepage-url=./static/media/2018_0814_Pattern_Adjusted.57f3c140.svg*/ url(

);
background-image: /*savepage-url=./static/media/2018_0814_Pattern_Adjusted.57f3c140.svg*/ url();
font-family: Lato, sans-serif;
font-weight: bolder;
box-shadow: rgba(245, 107, 107, 0.1) 0px 4px 12px;
Expand Down
Loading