Skip to content

Commit 3306b8b

Browse files
author
Prasanna
committed
fixed issue with hugo setup
1 parent 8d4ba84 commit 3306b8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+4140
-2434
lines changed

README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

archetypes/default.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
+++
1+
---
22
title: "{{ replace .Name "-" " " | title }}"
33
date: {{ .Date }}
4-
+++
4+
draft: true
5+
---
56

layouts/404.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Page.Language | default "en" }}" class="js csstransforms3d">
3+
4+
<head>
5+
<meta charset="utf-8"> {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
6+
<title>{{ .Scratch.Get "title" }}</title>
7+
8+
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
9+
<link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
10+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
11+
<link href="{{"css/hybrid.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
12+
<link href="{{"css/featherlight.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
13+
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
14+
<link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
15+
<link href="{{"css/hugo-theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
16+
{{with .Site.Params.themeVariant}}
17+
<link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
18+
{{end}}
19+
<style type="text/css">
20+
:root #header + #content > #left > #rlblock_left {
21+
display: none !important;
22+
}
23+
24+
p,
25+
li,
26+
ul {
27+
text-align: center
28+
}
29+
30+
ul {
31+
list-style-type: none;
32+
}
33+
</style>
34+
{{ partial "custom-header.html" . }}
35+
</head>
36+
37+
<body>
38+
39+
<body class="" data-url="/">
40+
41+
<section id="body" style="margin-left:0px;">
42+
<div id="overlay"></div>
43+
<div id="chapter">
44+
<div id="body-inner">
45+
<h1>{{T "title-404"}}</h1>
46+
<p>
47+
</p>
48+
<p>{{T "message-404"}}</p>
49+
<p></p>
50+
<p><a href='{{ "" | relLangURL }}'>{{T "Go-to-homepage"}}</a></p>
51+
<p><img src='{{ "/images/gopher-404.jpg" | relURL }}' style="width:50%"></img></p>
52+
</div>
53+
</div>
54+
55+
</section>
56+
</body>
57+
58+
</html>

layouts/partials/favicon.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<link rel="shortcut icon" href="{{"images/favicon.ico" | relURL}}" type="image/x-icon" />
2+
<link rel="icon" href="{{"images/favicon.ico" | relURL}}" type="image/x-icon" />

layouts/partials/footer.html

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{{ if .Params.chapter }}
2+
</div> <!-- end chapter-->
3+
{{ end }}
4+
</div>
5+
{{ partial "custom-comments.html" . }}
6+
</div>
7+
8+
<div id="navigation">
9+
<!-- Next prev page -->
10+
{{ $currentNode := . }}
11+
12+
{{ template "menu-nextprev" dict "menu" .Site.Home "currentnode" $currentNode }}
13+
14+
{{ define "menu-nextprev" }}
15+
{{$currentNode := .currentnode }}
16+
{{ if ne .menu.Params.hidden true}}
17+
{{if hasPrefix $currentNode.URL .menu.URL }}
18+
{{ $currentNode.Scratch.Set "NextPageOK" "OK" }}
19+
{{ $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") }}
20+
{{else}}
21+
{{if eq ($currentNode.Scratch.Get "NextPageOK") "OK"}}
22+
{{ $currentNode.Scratch.Set "NextPageOK" nil }}
23+
{{ $currentNode.Scratch.Set "nextPage" .menu }}
24+
{{end}}
25+
{{end}}
26+
{{ $currentNode.Scratch.Set "prevPageTmp" .menu }}
27+
28+
{{ $currentNode.Scratch.Set "pages" .menu.Pages }}
29+
{{ if .menu.IsHome}}
30+
{{ $currentNode.Scratch.Set "pages" .menu.Sections }}
31+
{{ else if .menu.Sections}}
32+
{{ $currentNode.Scratch.Set "pages" (.menu.Pages | union .menu.Sections) }}
33+
{{end}}
34+
{{ $pages := ($currentNode.Scratch.Get "pages") }}
35+
36+
{{ range $pages.ByWeight }}
37+
{{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
38+
{{end}}
39+
{{ end }}
40+
{{ end }}
41+
42+
43+
{{with ($.Scratch.Get "prevPage")}}
44+
<a class="nav nav-prev" href="{{.URL}}" title="{{.Title}}"> <i class="fas fa-chevron-left"></i></a>
45+
{{end}}
46+
{{with ($.Scratch.Get "nextPage")}}
47+
<a class="nav nav-next" href="{{.URL}}" title="{{.Title}}" style="margin-right: 0px;"><i class="fas fa-chevron-right"></i></a>
48+
{{end}}
49+
</div>
50+
51+
</section>
52+
53+
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
54+
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
55+
</div>
56+
<script src="{{"js/clipboard.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
57+
<script src="{{"js/perfect-scrollbar.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
58+
<script src="{{"js/perfect-scrollbar.jquery.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
59+
<script src="{{"js/jquery.sticky.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
60+
<script src="{{"js/featherlight.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
61+
<script src="{{"js/highlight.pack.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
62+
<script>hljs.initHighlightingOnLoad();</script>
63+
<script src="{{"js/modernizr.custom-3.6.0.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
64+
<script src="{{"js/learn.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
65+
<script src="{{"js/hugo-learn.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
66+
67+
<link href="{{"mermaid/mermaid.css" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" type="text/css" rel="stylesheet" />
68+
<script src="{{"mermaid/mermaid.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
69+
<script>
70+
var config = {
71+
startOnLoad:true,
72+
flowchart:{
73+
curve:'basis'
74+
}
75+
};
76+
mermaid.initialize(config);
77+
</script>
78+
{{ partial "custom-footer.html" . }}
79+
</body>
80+
</html>

layouts/partials/header.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<html lang="{{ .Page.Language | default "en" }}" class="js csstransforms3d">
44
<head>
55
<meta charset="utf-8">
6-
<meta property="og:title" content="Distributed Training Workshop" />
6+
<meta property="og:title" content="EKSworkshop.com" />
77
<meta property="og:type" content="website" />
8-
<meta property="og:url" content="https://distributed-training-workshop.go-aws.com" />
9-
<meta property="og:image" content="https://distributed-training-workshop.go-aws.com/images/architecture.png" />
8+
<meta property="og:url" content="https://eksworkshop.com" />
9+
<meta property="og:image" content="https://eksworkshop.com/images/3-service-animated.gif" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
1111
{{ .Hugo.Generator }}
1212
{{ partial "meta.html" . }}
@@ -15,30 +15,30 @@
1515

1616
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
1717
<link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
18-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
18+
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
1919
<link href="{{"css/hybrid.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
2020
<link href="{{"css/featherlight.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
2121
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
2222
<link href="{{"css/auto-complete.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
2323
<link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
2424
<link href="{{"css/hugo-theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
25+
<link href="{{"css/jquery-ui.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
2526
{{with .Site.Params.themeVariant}}
2627
<link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
2728
{{end}}
2829

29-
<link href="{{"css/jquery-ui.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
30-
<link href="{{"css/jquery-ui.structure.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
31-
<link href="{{"css/jquery-ui.theme.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
32-
<script src="{{"js/jquery-2.x.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
33-
<script src="{{"js/jquery-ui.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
34-
<script src="{{"js/tabs.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
30+
<script src="{{"js/jquery-3.3.1.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
31+
<script src="{{"js/jquery-ui-1.12.1.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
32+
<!--
33+
<script src="{{"js/tabvisibility.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
34+
-->
3535

3636
<style type="text/css">
3737
:root #header + #content > #left > #rlblock_left{
3838
display:none !important;
3939
}
4040
{{ if .Site.Params.disableInlineCopyToClipBoard }}
41-
:not(pre) > code + span.copy-to-clipboard {
41+
:not(pre) > code + .copy-to-clipboard {
4242
display: none;
4343
}
4444
{{ end }}
@@ -59,7 +59,7 @@
5959
{{with $File.Path }}
6060
<div id="top-github-link">
6161
<a class="github-link" title='{{T "Edit-this-page"}}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
62-
<i class="fa fa-code-fork"></i>
62+
<i class="fas fa-code-branch"></i>
6363
<span id="top-github-link-text">{{T "Edit-this-page"}}</span>
6464
</a>
6565
</div>
@@ -69,14 +69,14 @@
6969
<div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
7070
<span id="sidebar-toggle-span">
7171
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
72-
<i class="fa fa-bars"></i>
72+
<i class="fas fa-bars"></i>
7373
</a>
7474
</span>
7575
{{ if $toc }}
76-
<span id="toc-menu"><i class="fa fa-list-alt"></i></span>
76+
<span id="toc-menu"><i class="fas fa-list-alt"></i></span>
7777
{{ end }}
7878
<span class="links">
79-
{{ template "breadcrumb" dict "page" . "value" .Title }}
79+
{{ template "breadcrumb" dict "page" . "value" .Title }}
8080
</span>
8181
</div>
8282
{{ if $toc }}
@@ -98,7 +98,7 @@ <h1>{{.Title}}</h1>
9898
{{$parent := .page.Parent }}
9999
{{ if $parent }}
100100
{{ $value := (printf "<a href='%s'>%s</a> > %s" $parent.URL $parent.Title .value) }}
101-
{{ template "breadcrumb" dict "page" $parent "value" $value }}
101+
{{ template "breadcrumb" dict "page" $parent "value" $value }}
102102
{{else}}
103103
{{.value|safeHTML}}
104104
{{end}}

layouts/partials/menu-footer.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

layouts/shortcodes/cf-download.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<a
2+
href="https://s3.amazonaws.com/{{ $.Site.Params.template_bucket }}/templates/{{ $.Site.Params.branch }}/{{ .Get 0 }}"
3+
target="_blank" class="btn btn-default">
4+
<i class="fas fa-download"></i>
5+
Download
6+
</a>

layouts/shortcodes/cf-launch.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<a
2+
href="https://console.aws.amazon.com/cloudformation/home?#/stacks/create/review?stackName={{ .Get 1 }}&templateURL=https://s3.amazonaws.com/{{ $.Site.Params.template_bucket }}/templates/{{ $.Site.Params.branch }}/{{ .Get 0 }}"
3+
target="_blank" class="btn btn-default">
4+
<i class="fas fa-cloud-upload-alt"></i>
5+
Launch
6+
</a>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<style type="text/css">
2+
.ghContributors{
3+
display:flex;
4+
flex-flow: wrap;
5+
align-content: flex-start
6+
}
7+
8+
.ghContributors > div{
9+
width: 50% ;
10+
display: inline-flex;
11+
margin-bottom: 5px;
12+
}
13+
.ghContributors > div label{
14+
padding-left: 4px ;
15+
}
16+
.ghContributors > div span{
17+
font-size: x-small;
18+
padding-left: 4px ;
19+
}
20+
21+
</style>
22+
<div class="ghContributors">
23+
{{ $url := .Get 0 }}
24+
{{ range getJSON $url }}
25+
<div>
26+
<img src="{{.avatar_url}}" class="inline" width="32" height="32" style="height: 32px;height: 32px;margin-bottom:.25em; vertical-align:middle; ">
27+
<label><a href="{{.html_url}}">@{{.login}}</a></label>
28+
<span class="contributions">{{.contributions}} commits</span>
29+
</div>
30+
{{ end }}
31+
</div>

0 commit comments

Comments
 (0)