Skip to content

Commit 4005d52

Browse files
author
Josh Sager
committed
Initial commit of Hugo theme for developers.linode.com
0 parents  commit 4005d52

Some content is hidden

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

62 files changed

+1069
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/universal"]
2+
path = themes/universal
3+
url = https://github.com/devcows/hugo-universal-theme

archetypes/default.md

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

config.toml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
baseURL = "https://developers.linode.com/"
2+
languageCode = "en-us"
3+
title = "Linode Developers Site"
4+
defaultContentLanguage = "en"
5+
paginate = 25
6+
7+
# menu
8+
[menu]
9+
10+
[[menu.main]]
11+
weight = 1
12+
name = "Home"
13+
url = "/"
14+
15+
[[menu.main]]
16+
weight = 2
17+
name = "APIv4 Docs"
18+
url = "https://developers.linode.com/"
19+
20+
[[menu.main]]
21+
weight = 3
22+
name = "Guides"
23+
url = "/guides/"
24+
25+
[[menu.main]]
26+
weight = 4
27+
name = "Libraries and Tools"
28+
url = "/libraries-tools/"
29+
30+
[[menu.main]]
31+
weight = 5
32+
name = "Changelog"
33+
url = "/changelog/"
34+
35+
[[menu.topbar]]
36+
weight = 1
37+
name = "GitHub"
38+
url = "https://github.com/linode"
39+
pre = "<i class='fab fa-github'></i>"
40+
41+
[[menu.topbar]]
42+
weight = 2
43+
name = "Facebook"
44+
url = "http://facebook.com/linode"
45+
pre = "<i class='fab fa-facebook'></i>"
46+
47+
[[menu.topbar]]
48+
weight = 3
49+
name = "Twitter"
50+
url = "http://twitter.com/linode"
51+
pre = "<i class='fab fa-twitter'></i>"
52+
53+
# params
54+
[params]
55+
date_format = "Monday, January 2, 2006"
56+
copyright = "Copyright (c) 2018, Linode LLC"
57+
logo = "/img/linode-logo_standard_light_small.png"
58+
59+
[params.topbar]
60+
enable = true
61+
text = "For Developers, By Developers"
62+
63+
[params.carousel]
64+
enable = true
65+
66+
[params.features]
67+
enable = true
68+
69+
[params.features2]
70+
enable = true

content/changelog/2018-06-21.md.old

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "Welcome to the Changelog"
3+
date: "2018-06-21T11:02:00-04:00"
4+
description: "Our First Post"
5+
---
6+
7+
Exciting things, blah blah, promote promote.

content/changelog/2018-06-25.md.old

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Things with Stuff"
3+
date: "2018-06-25T11:02:00-04:00"
4+
description: "This is what we did"
5+
---
6+
#### We Can Do Things with Stuff
7+
8+
That's right, I said it.

content/changelog/2018/06-21.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Welcome to the Changelog"
3+
date: "2018-06-21T11:02:00-04:00"
4+
description: "Our First Post"
5+
categories:
6+
- Linode-CLI
7+
---
8+
9+
Exciting things, blah blah, promote promote.
10+
11+
<!--more-->
12+
13+
Did it work? I don't think it did.

content/changelog/2018/06-25.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "Things with Stuff"
3+
date: "2018-06-25T11:02:00-04:00"
4+
description: "This is what we did"
5+
categories:
6+
- APIv4
7+
- Linode-CLI
8+
---
9+
#### We Can Do Things with Stuff
10+
11+
That's right, I said it. If you want to see what else we are doing, click the link.
12+
13+
<!--more-->
14+
15+
This is below-the-fold text that expands the changelog post. I am checking to see
16+
if I can get the page to only display the Summary.

content/changelog/_index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "_Index"
3+
date: 2018-06-13T08:55:08-04:00
4+
draft: false
5+
---
6+
This is the Changelog page. It's a blog of sorts, with filtering.

content/guides/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: "Guides"
3+
author:
4+
name: Josh Sager
5+
6+
description: Guides
7+
keywords: []
8+
license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)'
9+
date: 2018-06-13T08:55:08-04:00
10+
template: guides
11+
---
12+
This is the Guides page. This page will be a curated list of guides taken from
13+
our Docs site to make it easy for developers to find the resources they need
14+
to create and consume Linode's products and services.

content/libraries-tools/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Libraries and Tools
3+
author:
4+
name: Josh Sager
5+
6+
description: Libraries and Tools
7+
keywords: []
8+
license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)'
9+
date: 2018-06-13T08:55:08-04:00
10+
type: "libraries-tools"
11+
---
12+
# Libraries and Tools
13+
14+
We can put introduction copy here.

data/carousel/welcome.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
weight: 1
2+
title: "For Developers By Developers"
3+
description: >
4+
<ul class="list-style-none">
5+
<li>Doing Things with Stuff Since 2003</li>
6+
</ul>
7+
image: "img/carousel/hero001.png"

data/features/docs.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
weight: 1
2+
name: "APIv4 Documentation"
3+
icon: "fa fa-globe"
4+
description: >
5+
Reference documentation for the Linode API.
6+
7+
8+
<a href="https://developers.linode.com" target="_blank"><button type="button" class="btn btn-success">Read the Docs</button></a>

data/features/guides.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
weight: 2
2+
name: "Guides"
3+
icon: "fa fa-book"
4+
description: >
5+
Get started building tools and apps using the Linode API.
6+
7+
8+
<a href="/guides"><button type="button" class="btn btn-success">Do the Needful</button></a>

data/features/libraries-tools.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
weight: 3
2+
name: "Libraries and Tools"
3+
icon: "fa fa-wrench"
4+
description: >
5+
What you need to integrate the Linode API with your application.
6+
7+
8+
<a href="/libraries-tools"><button type="button" class="btn btn-success">View Libraries and Tools</button></a>

data/features2/community-site.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
weight: 2
2+
name: "Community Questions"
3+
icon: "fa fa-users"
4+
description: >
5+
Questions and answers from the Linode community.
6+
7+
8+
<a href="https://www.linode.com/community/questions/" target="_blank"><button type="button" class="btn btn-success">Community Site</button></a>

data/features2/holder.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
weight: 1
2+
name: "Become a Jedi"
3+
icon: "fab fa-jedi-order"
4+
description: >
5+
Resisting the dark side is easy.
6+
7+
8+
<a href="/luke"><button type="button" class="btn btn-success">Use the Force, Luke</button></a>

layouts/_default/list.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Site.LanguageCode }}">
3+
4+
{{ partialCached "head.html" . }}
5+
6+
<body>
7+
<div id="all">
8+
<header>
9+
{{ partialCached "top.html" . }}
10+
{{ partialCached "nav.html" . }}
11+
</header>
12+
13+
<div class="container">
14+
<div class="row pad-top">
15+
<div class="col-12">
16+
<h1>Changelog</h1>
17+
</div>
18+
</div>
19+
20+
<div class="row">
21+
<div class="col-12">
22+
<p style="color:red;"><em>Not showing _index.md front matter. Need to fix.</em></p>
23+
<p>{{ .Summary }}</p>
24+
</div>
25+
</div>
26+
27+
<!-- Ranges through content/changelog/*.md -->
28+
{{ range .Pages }}
29+
<article>
30+
<div class="row">
31+
<div class="col-md-12">
32+
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a> ({{ .Date.Format "2006-01-02" }})</h3>
33+
<p style="color:red;"><em>Content truncation isn't working with the more tag. Shows the Read More link, but doesn't truncate the content.</em></p>
34+
<p>{{ .Content }}</p>
35+
</div>
36+
</div>
37+
38+
{{ if .Truncated }}
39+
<!-- Includes a read more link if the summary is truncated... -->
40+
<div class="row">
41+
<div class="col-md-12 pad-bottom">
42+
<a href="{{ .RelPermalink }}">Read More</a>
43+
</div>
44+
</div>
45+
{{ end }}
46+
</article>
47+
{{ end }}
48+
</div>
49+
<!-- /#container -->
50+
51+
<h1>!!!! We Need Pagination !!!!</h1>
52+
53+
{{ partialCached "footer.html" . }}
54+
</div>
55+
<!-- /#all -->
56+
57+
{{ partialCached "scripts.html" . }}
58+
</body>
59+
</html>

layouts/_default/single.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Site.LanguageCode }}">
3+
4+
{{ partialCached "head.html" . }}
5+
6+
<body>
7+
<div id="all">
8+
<header>
9+
{{ partialCached "top.html" . }}
10+
{{ partialCached "nav.html" . }}
11+
</header>
12+
13+
<div class="container">
14+
<div class="row pad-top">
15+
<div class="col-12">
16+
<h1>{{ .Title }}</h1>
17+
</div>
18+
<div class="col-12">
19+
<p>{{ .Content }}</p>
20+
</div>
21+
</div>
22+
</div>
23+
<!-- /#container -->
24+
25+
{{ partialCached "footer.html" . }}
26+
</div>
27+
<!-- /#all -->
28+
29+
{{ partialCached "scripts.html" . }}
30+
</body>
31+
</html>

layouts/index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Site.LanguageCode }}">
3+
4+
{{ partialCached "head.html" . }}
5+
6+
<body>
7+
<div id="all">
8+
<header>
9+
{{ partialCached "top.html" . }}
10+
{{ partialCached "nav.html" . }}
11+
</header>
12+
{{ partial "carousel.html" . }}
13+
{{ partial "banners.html" . }}
14+
{{ partial "features.html" . }}
15+
{{ partial "features2.html" . }}
16+
{{ partial "careers.html" . }}
17+
{{ partial "events.html" . }}
18+
19+
{{ partialCached "footer.html" . }}
20+
</div>
21+
<!-- /#all -->
22+
23+
{{ partialCached "scripts.html" . }}
24+
</body>
25+
</html>

layouts/libraries-tools/single.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Site.LanguageCode }}">
3+
4+
{{ partial "head.html" . }}
5+
6+
<body>
7+
<div id="all">
8+
<header>
9+
{{ partial "top.html" . }}
10+
{{ partial "nav.html" . }}
11+
</header>
12+
13+
<div class="container">
14+
<div class="row pad-top">
15+
<div class="content col-12">
16+
{{ .Content }}
17+
</div>
18+
</div>
19+
20+
{{ $repoJ := getJSON "https://api.github.com/search/repositories?q=linode" }}
21+
22+
<div class="row">
23+
{{ range first 50 $repoJ.items }}
24+
<div class="col-6">
25+
<div class="library">
26+
<div class="library-github-band text-right">
27+
<i class="fas fa-star"></i> {{ .stargazers_count }}&nbsp;&nbsp;
28+
<i class="fas fa-code-branch"></i> {{ .forks_count }}&nbsp;&nbsp;
29+
<i class="fas fa-file-code"></i> {{ .language }}
30+
</div>
31+
<!-- /#library-github-band -->
32+
<div class="library-content">
33+
<h3>
34+
{{ if .owner.avatar_url }}
35+
<img src="{{ .owner.avatar_url }}" width="30" height="30" />
36+
{{ end }}
37+
{{ .name }}
38+
</h3>
39+
<p>{{ .description }}</p>
40+
<p><a href="{{ .html_url }}" target="_blank">View Library</a></p>
41+
</div>
42+
<!-- /#library-content -->
43+
</div>
44+
<!-- /#library -->
45+
</div>
46+
{{ end }}
47+
<!-- /#col-6 -->
48+
</div>
49+
<!-- /#row -->
50+
</div>
51+
<!-- /#container -->
52+
</div>
53+
<!-- /#all -->
54+
55+
{{ partial "scripts.html" . }}
56+
</body>
57+
</html>

layouts/partials/banners.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<img src="/img/banners/linode-cli.png" class="img-fluid" />

0 commit comments

Comments
 (0)