Skip to content

Commit

Permalink
Merge pull request kubernetes#31 from lucperkins/lperkins/update-base…
Browse files Browse the repository at this point in the history
…-url

Production site updates
  • Loading branch information
lucperkins authored May 10, 2019
2 parents ef8bdc5 + 07f3c19 commit 916d7dd
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ disableKinds = ["taxonomy", "taxonomyTerm"]
languageCode = "en-us"
pygmentsCodeFences = true
pygmentsStyle = "fruity"
baseURL = "https://etcd.netlify.com"
baseURL = "https://etcd.io"
ignoreFiles = [
"content/docs/v*/README.md",
"content/docs/v*/*/README.md",
Expand Down
45 changes: 45 additions & 0 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{{ $img := "https://raw.githubusercontent.com/cncf/artwork/master/projects/etcd/stacked/color/etcd-stacked-color.png" }}
<!DOCTYPE html>
<html>
<head>
<title>etcd | 404 not found</title>
{{ partial "css.html" . }}
</head>
<body>
<section class="hero is-fullheight">
<div class="hero-body has-text-centered">
<div class="container">
<img src="{{ $img }}" width="150px">

<hr />

<p class="title is-size-1 is-size-2-mobile has-text-weight-bold is-spaced">
404 not found
</p>

<p class="subtitle">
We're sorry, but this page could not be found. Perhaps you were looking for:
</p>

<ul>
<li>
<a class="is-size-5" href="/">
The etcd main page
</a>
</li>
<li>
<a class="is-size-5" href="/docs/latest">
The etcd documentation
</a>
</li>
<li>
<a class="is-size-5" href="https://github.com/etcd-io/etcd">
The etcd GitHub repo
</a>
</li>
</ul>
</div>
</div>
</section>
</body>
</html>
23 changes: 21 additions & 2 deletions layouts/partials/meta.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
{{ $title := cond .IsHome site.Title .Title }}
{{ $type := cond .IsHome "website" "article" }}
{{ $url := .Permalink }}
{{ $img := "https://raw.githubusercontent.com/cncf/artwork/master/projects/etcd/horizontal/color/etcd-horizontal-color.png" }}
{{ $description := .Param "description" }}
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
{{ partial "favicon.html" . }}
<meta name="viewport" content="initial-scale=1,maximum-scale=1,width=device-width,user-scalable=no" />

<!-- OpenGraph metadata -->
<meta property="og:title" content="{{ $title }}">
<meta property="og:type" content="{{ $type }}">
<meta property="og:url" content="{{ $url }}">
<meta property="og:image" content="{{ $img }}">
<meta property="og:image:alt" content="etcd project logo">
<meta property="og:image:type" content="image/png">
{{ with $description }}
<meta property="og:description" content="{{ . }}">
{{ end }}
<meta property="og:locale" content="en_US">

<!-- Hugo shout-out -->
{{ hugo.Generator }}

0 comments on commit 916d7dd

Please sign in to comment.