Skip to content

Commit

Permalink
hugo --destination ../../docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hlaueriksson committed May 31, 2017
1 parent 1764375 commit a19bb18
Show file tree
Hide file tree
Showing 10 changed files with 542 additions and 301 deletions.
71 changes: 47 additions & 24 deletions docs/about/index.html
@@ -1,24 +1,41 @@
<!doctype html>
<html>
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">

<title>JAMstack Recipes</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="https://hlaueriksson.github.io/jamstack/">
<link rel="stylesheet" href="app.css"/>
<link href="app.css" rel="stylesheet">
<meta name="generator" content="Hugo 0.21" />
</head>
<body>
<header>
<section class="navigation">

<h2><a href="https://hlaueriksson.github.io/jamstack/about/">About</a></h2>

<h2><a href="https://hlaueriksson.github.io/jamstack/submit/">Submit Recipe</a></h2>

</section>
</header>

<section>
<h1 id="about">About</h1>
<body id="page">
<div class="container">
<div class="header clearfix">
<nav>
<ul class="nav nav-pills float-right">
<li class="nav-item">
<a class="nav-link" href="https://hlaueriksson.github.io/jamstack/">Home</a>
</li>

<li class="nav-item">
<a class="nav-link" href="https://hlaueriksson.github.io/jamstack/about/">About</a>
</li>

<li class="nav-item">
<a class="nav-link" href="https://hlaueriksson.github.io/jamstack/submit/">Submit Recipe</a>
</li>

</ul>
</nav>
<h3 class="text-muted">JAMstack Recipes</h3>
</div>


<div class="row marketing">
<div class="col">
<h1 id="about">About</h1>

<p>This is an experiment where I&rsquo;m trying to build a <a href="https://jamstack.org">JAMstack</a> site with <a href="https://gohugo.io">Hugo</a> and <a href="https://azure.microsoft.com/en-us/services/functions/">Azure Functions</a>.</p>

Expand All @@ -44,12 +61,18 @@ <h1 id="about">About</h1>
<li>Strawberries: <a href="https://www.flickr.com/photos/42787780@N04/6984507532/">https://www.flickr.com/photos/42787780@N04/6984507532/</a> by Fried Dough</li>
</ul>

</section>
</div>
</div>

<footer class="footer">
<p>JAMstack Recipes</p>
</footer>
</div>

<footer>
</footer>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="app.js"></script>
</body>
</html>
<script src="app.js"></script>
</body>
</html>
93 changes: 90 additions & 3 deletions docs/app.css
@@ -1,11 +1,98 @@
section#recipe #imperial {
/* Hidden */
body#recipe #imperial {
display: none;
}

section#recipe #measurements {
body#recipe #measurements {
display: none;
}

section#submit #result {
body#submit #result {
display: none;
}

/* Space out content a bit */
body {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}

/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
padding-right: 1rem;
padding-left: 1rem;
}

/* Custom page header */
.header {
padding-bottom: 1rem;
border-bottom: .05rem solid #e5e5e5;
}
/* Make the masthead heading the same height as the navigation */
.header h3 {
margin-top: 0;
margin-bottom: 0;
line-height: 3rem;
}

/* Custom page footer */
.footer {
padding-top: 1.5rem;
color: #777;
border-top: .05rem solid #e5e5e5;
}

/* Customize container */
@media (min-width: 48em) {
.container {
max-width: 46rem;
}
}
.container-narrow > hr {
margin: 2rem 0;
}

/* Main marketing message and sign up button */
.jumbotron {
text-align: center;
border-bottom: .05rem solid #e5e5e5;
}
.jumbotron .btn {
padding: .75rem 1.5rem;
font-size: 1.5rem;
}

/* Supporting marketing content */
.marketing {
margin: 3rem 0;
}
.marketing p + h4 {
margin-top: 1.5rem;
}
.marketing img {
margin-bottom: 1.5rem;
}
.marketing #measurements {
margin-bottom: 1.5rem;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 48em) {
/* Remove the padding we set earlier */
.header,
.marketing,
.footer {
padding-right: 0;
padding-left: 0;
}
/* Space out the masthead */
.header {
margin-bottom: 2rem;
}
/* Remove the bottom border on the jumbotron for visual effect */
.jumbotron {
border-bottom: 0;
}
}
15 changes: 10 additions & 5 deletions docs/app.js
@@ -1,8 +1,13 @@
// nav
$(function () {
$("nav a[href='" + window.location.href + "']").addClass("active");
});

// recipe
$(function () {
if ($("section#recipe").length) {
let slug = $("#recipe").data("slug");
let url = $("#recipe").data("api");
if ($("body#recipe").length) {
let slug = $("#data").data("slug");
let url = $("#data").data("api");
$.getJSON(url + slug, function (data) {
$.each(data, function (index, ingredient) {
$("#imperial").append("<li>" + ingredient.Amount + " " + ingredient.Unit + " " + ingredient.Name + "</li>");
Expand All @@ -18,8 +23,8 @@ $(function () {

// submit
$(function () {
if ($("section#submit").length) {
let form = $("#recipe");
if ($("body#submit").length) {
let form = $("form#recipe");
form.submit(function (e) {
e.preventDefault();
let data = form.serializeArray().reduce(function (a, x) { a[x.name] = x.value; return a; }, {});
Expand Down
117 changes: 67 additions & 50 deletions docs/index.html
@@ -1,60 +1,77 @@
<!doctype html>
<html>
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">

<title>JAMstack Recipes</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="https://hlaueriksson.github.io/jamstack/">
<link rel="stylesheet" href="app.css"/>
<link href="app.css" rel="stylesheet">
<meta name="generator" content="Hugo 0.21" />
</head>
<body>
<header>
<section class="navigation">

<h2><a href="https://hlaueriksson.github.io/jamstack/about/">About</a></h2>

<h2><a href="https://hlaueriksson.github.io/jamstack/submit/">Submit Recipe</a></h2>

</section>
</header>

<section>
<body id="index">
<div class="container">
<div class="header clearfix">
<nav>
<ul class="nav nav-pills float-right">
<li class="nav-item">
<a class="nav-link" href="https://hlaueriksson.github.io/jamstack/">Home</a>
</li>

<li class="nav-item">
<a class="nav-link" href="https://hlaueriksson.github.io/jamstack/about/">About</a>
</li>

<li class="nav-item">
<a class="nav-link" href="https://hlaueriksson.github.io/jamstack/submit/">Submit Recipe</a>
</li>

</ul>
</nav>
<h3 class="text-muted">JAMstack Recipes</h3>
</div>


<div class="jumbotron">
<h1 id="jamstack-recipes">JAMstack Recipes</h1>

<p>The best jam recipes served by JAMstack and Serverless technology
</section>
<p>The best jam recipes served by JAMstack and Serverless technology.
</div>

<section class="recipes">

<article>
<h2><a href="https://hlaueriksson.github.io/jamstack/recipe/apple-jam/">Apple Jam</a></h2>
<div>
<img src="/jamstack/recipe/apple-jam/apples.jpg" alt="Apples" width="320px" />
<p>Jam made of apples tastes awesome.</p>
<div class="row marketing">
<div class="col">

<h4><a href="https://hlaueriksson.github.io/jamstack/recipe/apple-jam/">Apple Jam</a></h4>
<p>Jam made of apples tastes awesome.</p>
<a href="https://hlaueriksson.github.io/jamstack/recipe/apple-jam/">
<img src="/jamstack/recipe/apple-jam/apples.jpg" alt="Apples">
</a>

<h4><a href="https://hlaueriksson.github.io/jamstack/recipe/lingonberry-jam/">Lingonberry Jam</a></h4>
<p>Jam made of lingonberries tastes great.</p>
<a href="https://hlaueriksson.github.io/jamstack/recipe/lingonberry-jam/">
<img src="/jamstack/recipe/lingonberry-jam/lingonberries.jpg" alt="Lingonberries">
</a>

<h4><a href="https://hlaueriksson.github.io/jamstack/recipe/strawberry-jam/">Strawberry Jam</a></h4>
<p>Jam made of strawberries tastes fantastic.</p>
<a href="https://hlaueriksson.github.io/jamstack/recipe/strawberry-jam/">
<img src="/jamstack/recipe/strawberry-jam/strawberries.jpg" alt="Strawberries">
</a>

</div>
</article>

<article>
<h2><a href="https://hlaueriksson.github.io/jamstack/recipe/lingonberry-jam/">Lingonberry Jam</a></h2>
<div>
<img src="/jamstack/recipe/lingonberry-jam/lingonberries.jpg" alt="Lingonberries" width="320px" />
<p>Jam made of lingonberries tastes great.</p>
</div>
</article>

<article>
<h2><a href="https://hlaueriksson.github.io/jamstack/recipe/strawberry-jam/">Strawberry Jam</a></h2>
<div>
<img src="/jamstack/recipe/strawberry-jam/strawberries.jpg" alt="Strawberries" width="320px" />
<p>Jam made of strawberries tastes fantastic.</p>
</div>
</article>

</section>
</div>

<footer class="footer">
<p>JAMstack Recipes</p>
</footer>
</div>

<footer>
</footer>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="app.js"></script>
</body>
</html>
<script src="app.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/index.xml
Expand Up @@ -26,7 +26,7 @@
<pubDate>Sat, 27 May 2017 20:38:56 +0200</pubDate>

<guid>https://hlaueriksson.github.io/jamstack/</guid>
<description>JAMstack Recipes The best jam recipes served by JAMstack and Serverless technology</description>
<description>JAMstack Recipes The best jam recipes served by JAMstack and Serverless technology.</description>
</item>

<item>
Expand Down

0 comments on commit a19bb18

Please sign in to comment.