Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 404.html #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ partial "head.html" . }}
{{ partial "header.html" . }}
{{ partial "404content.html" . }}
{{ partial "footer.html" . }}
1 change: 1 addition & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{ partial "head.html" . }}
{{ partial "header.html" . }}
{{ partial "intro.html" . }}
{{ partial "about.html" . }}
{{ partial "services.html" . }}
{{ partial "pricing.html" . }}
Expand Down
17 changes: 17 additions & 0 deletions layouts/partials/404content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!-- 404 Section -->
<section id="404content" class="404content">
<div class="container content-section text-center">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<br/>
<br/>
<h4>Error - 404: Page not found.</h4>
<br/>
<div class="btn btn-default">
<a href="/">Go to home</a>
</div>
<br/>
</div>
</div>
</div>
</section>
28 changes: 0 additions & 28 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,3 @@
</div>
<!-- /.container -->
</nav>

<section id="intro">
<!-- Header -->
<div class="intro-header">

<div class="container">

<div class="row">
<div class="col-lg-12">
<div class="intro-message">
<h1>{{ .Site.Title }}</h1>
<h3>{{ .Site.Params.description }}</h3>
<hr class="intro-divider">
{{ if isset .Site.Params "social" }}
<ul class="list-inline intro-social-buttons">
{{ partial "social.html" . }}
</ul>
{{ end }}
</div>
</div>
</div>

</div>
<!-- /.container -->

</div>
<!-- /.intro-header -->
</section>
28 changes: 28 additions & 0 deletions layouts/partials/intro.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- Navigation -->
<section id="intro">
<!-- Header -->
<div class="intro-header">

<div class="container">

<div class="row">
<div class="col-lg-12">
<div class="intro-message">
<h1>{{ .Site.Title }}</h1>
<h3>{{ .Site.Params.description }}</h3>
<hr class="intro-divider">
{{ if isset .Site.Params "social" }}
<ul class="list-inline intro-social-buttons">
{{ partial "social.html" . }}
</ul>
{{ end }}
</div>
</div>
</div>

</div>
<!-- /.container -->

</div>
<!-- /.intro-header -->
</section>