Skip to content

Commit 0dbcb72

Browse files
authored
Formatting fixes (#19)
* css improvements * smooth scroll * change edit url to blog
1 parent 828f70d commit 0dbcb72

File tree

13 files changed

+90
-14
lines changed

13 files changed

+90
-14
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ disableNavChevron = false # set true to hide next/prev chevron, default is false
3333
highlightClientSide = false # set true to use highlight.pack.js instead of the default hugo chroma highlighter
3434
menushortcutsnewtab = false # set true to open shortcuts links to a new tab/window
3535
enableGitInfo = true
36-
editURL = "https://github.com/cloudposse/docs/edit/master"
36+
editURL = "https://github.com/cloudposse/docs/blob/master"
3737

3838
[outputFormats.glossary]
3939
baseName = "glossary"

content/LICENSE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ tags:
77
- apache2
88
---
99

10-
1110
Apache License
1211
Version 2.0, January 2004
1312
http://www.apache.org/licenses/
@@ -196,7 +195,7 @@ tags:
196195
same "printed page" as the copyright notice for easier
197196
identification within third-party archives.
198197

199-
Copyright 2018 Cloud Posse, LLC
198+
Copyright 2017-{{< year >}} Cloud Posse, LLC
200199

201200
Licensed under the Apache License, Version 2.0 (the "License");
202201
you may not use this file except in compliance with the License.

content/_footer.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
(C) 2018 Cloud Posse, LLC. All Rights Reserved.

content/glossary/aws.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ terms:
66
- "aws cli"
77
- "awscli"
88
- "aws-cli"
9+
- "!aws-"
910
excerpt: "Amazon Web Services"
1011
---
1112
Amazon Web Services is a public cloud offering from Amazon. It's also a command line tool (`aws`) use to control services running on the platform.

content/local-dev-environments/fancy-shell-prompts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Fancy shell prompts are not just pretty, they're also incredibly practical. With
88

99

1010
This is how to get a fancy shell prompt like the one below for the `bash` shell.
11-
![](/assets/500c4b8-Screen_Shot_2018-04-02_at_7.54.13_PM.png)
11+
{{< img src="/assets/500c4b8-Screen_Shot_2018-04-02_at_7.54.13_PM.png" title="Example of Powerline Shell Prompt" >}}
1212

1313
## Install powerline
1414

content/terraform/tips-tricks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ Then run `pre-commit install` in a given terraform repo to configure the hooks.
2929
After setting this up, every time you commit, the `terraform fmt` command will be run to canonicalize your files and a basic smoke test to validate all configurations without requiring required variables to be set.
3030

3131
Any time your commit affects any `*.tf` files, the validator will ensure well-formed terraform code.
32-
![Precommit Hook Output](/assets/dd6447a-Screen_Shot_2018-04-02_at_2.46.35_PM.png)
32+
{{< img src="/assets/dd6447a-Screen_Shot_2018-04-02_at_2.46.35_PM.png" title="Example of Pre Commit Hook Output" >}}

layouts/partials/custom-footer.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<div class="addthis_relatedposts_inline"></div>
21

32
<!-- Start of HubSpot Embed Code -->
43
<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/2197148.js"></script>

layouts/partials/flex/body-aftercontent.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
{{if not .IsHome}}
2+
<div class="addthis_relatedposts_inline"></div>
3+
{{end}}
4+
15
{{if not .IsHome}}
26
<div class="chevrons">
37
{{ partial "next-prev-page.html" . }}
@@ -24,7 +28,9 @@ <h3><i class="fa fa-align-left"></i>Table of Contents</h3>
2428
{{end}}
2529

2630

27-
<div class="copyright">
31+
<div class="copyright"> © {{ now.Format "2006"}} Cloud Posse, LLC. All Rights Reserved.</div>
32+
33+
<div class="custom">
2834
{{ $footer := print "_footer." .Lang }}
2935
{{ range where .Site.Pages "Source.BaseFileName" $footer }}
3036
{{ .Content }}
@@ -45,7 +51,7 @@ <h3><i class="fa fa-align-left"></i>Table of Contents</h3>
4551

4652
{{ if not .Page.Lastmod.IsZero }}
4753
<div class="date">
48-
<i class='fa fa-calendar'></i> {{T "last-update-on"}} {{ .Page.Lastmod.Format "02/01/2006" }}
54+
<i class='fa fa-calendar'></i> {{T "last-update-on"}} {{ .Page.Lastmod.Format "2006-01-02" }}
4955
</div>
5056
{{end}}
5157
</div>

layouts/partials/flex/body-beforecontent.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
{{if .IsHome}}
1919
<div class="landing-top">
2020
<div class="landing-description">
21+
<img src="/images/cloud.png" class="whitish cloud"/>
2122
<h1>The Cloud Posse Developer Hub</h1>
2223
<div class="about">
23-
Welcome to the Cloud Posse developer hub. You'll find comprehensive guides and documentation to help you start working with the Cloud Posse technology stack as quickly as possible, as well as support if you get stuck. Let's jump right in!
24+
<p>Welcome to the Cloud Posse developer hub. You'll find comprehensive guides and documentation to help you start working with the Cloud Posse technology stack as quickly as possible, as well as support if you get stuck. Let's jump right in!</p>
2425
</div>
2526
<div class="search-bar">
2627
<div class="searchbox">

layouts/shortcodes/img.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!-- image -->
2+
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
3+
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
4+
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} />
5+
{{ if .Get "link"}}</a>{{ end }}
6+
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
7+
<figcaption>{{ if isset .Params "title" }}
8+
<h4>{{ .Get "title" }}</h4>{{ end }}
9+
{{ if or (.Get "caption") (.Get "attr")}}<p>
10+
{{ .Get "caption" }}
11+
{{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }}
12+
{{ .Get "attr" }}
13+
{{ if .Get "attrlink"}}</a> {{ end }}
14+
</p> {{ end }}
15+
</figcaption>
16+
{{ end }}
17+
</figure>
18+
<!-- image -->

layouts/shortcodes/year.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ now.Format "2006" }}

static/css/custom.css

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ th:empty {
5656
}
5757

5858

59+
.whitish {
60+
filter: brightness(0) invert(1);
61+
}
62+
63+
img.cloud {
64+
max-width: 125px;
65+
margin-right: 10px;
66+
float: left;
67+
}
68+
5969
/* fix for empty pages */
6070
section header {
6171
display: none;
@@ -125,7 +135,6 @@ ul.menu > li.haschildren > div > a {
125135
}
126136

127137
article {
128-
min-height: 40%;
129138
margin-top: 0;
130139
}
131140

@@ -142,7 +151,11 @@ body > aside {
142151

143152
article > aside .menu .dd-item div a, article > aside .menu .dd-item div a:hover {
144153
order: 1;
145-
padding-left: 10px;
154+
padding-left: 5px;
155+
}
156+
157+
article > aside .menu .dd-item.haschildren > div {
158+
margin-left: initial;
146159
}
147160

148161
aside#left-sidebar .menu li.active > div > a:hover {
@@ -160,7 +173,7 @@ article > aside .menu .dd-item div i.category-icon {
160173

161174
aside#left-sidebar ul {
162175
margin-top: 0;
163-
padding-right: 20px;
176+
padding-right: 12px;
164177
}
165178

166179
aside#left-sidebar {
@@ -185,6 +198,7 @@ aside#left-sidebar .menu .dd-item.active > div * {
185198
}
186199

187200
aside#left-sidebar .menu .dd-item.active > div a {
201+
padding-left: 5px;
188202
color: #fff;
189203
}
190204

@@ -245,6 +259,7 @@ aside#right-sidebar nav a:hover {
245259
background-color: #f8f8f8;
246260
color: #555;
247261
border-radius: 3px;
262+
text-decoration: none;
248263
}
249264

250265

@@ -295,6 +310,7 @@ section > h2 {
295310

296311
article section.page {
297312
margin: 0;
313+
scroll-behavior: smooth;
298314
}
299315

300316
article section.page h1:first-of-type {
@@ -314,6 +330,11 @@ article section.page img {
314330
max-width: 50%
315331
}
316332

333+
334+
article section.page table {
335+
width: auto;
336+
}
337+
317338
article section.page table {
318339
border: 3px solid #eee;
319340
border-radius: 5px;
@@ -445,6 +466,14 @@ div.landing-description {
445466
border: 0;
446467
}
447468

469+
.chevrons #navigation a:hover {
470+
color: #364548;
471+
}
472+
473+
.chevrons #navigation a {
474+
text-decoration: none;
475+
}
476+
448477
.breadcrumbs a:hover {
449478
text-decoration: none;
450479
background-color: #fff;
@@ -533,6 +562,11 @@ div.landing-description {
533562
font-size: 1em;
534563
}
535564

565+
div.calendly-badge-widget {
566+
right: 88px;
567+
bottom: 20px;
568+
}
569+
536570
.calendly-inline-widget iframe, .calendly-badge-widget iframe, .calendly-overlay iframe {
537571
border-radius: 10px;
538572
}
@@ -613,7 +647,7 @@ body > footer .footline .tags {
613647
margin-right: 10px;
614648
}
615649

616-
body > footer .footline .tags, body > .footline .copyright {
650+
body > footer .footline .tags, body > footer .footline .copyright {
617651
display: inline-block;
618652
float: left;
619653
}
@@ -752,4 +786,22 @@ footer .footline .date {
752786
margin-bottom: 2em;
753787
}
754788

789+
figure {
790+
max-width: 70%;
791+
}
792+
793+
figure img {
794+
min-width: 100%;
795+
}
796+
797+
figure h4 {
798+
margin-top: 0px;
799+
font-size: 0.8em;
800+
font-weight: normal;
801+
background-color: #F6F7F8;
802+
padding-right: 1em;
803+
display: block;
804+
width: 100%;
805+
text-align: right;
806+
}
755807

static/images/cloud.png

77 KB
Loading

0 commit comments

Comments
 (0)