forked from node-girls/express-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add single post pages, add blog title
- Loading branch information
1 parent
c1a8a94
commit db53b9c
Showing
7 changed files
with
144 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
{ | ||
"1467390356291": "This is my very first blog post!" | ||
} | ||
"1467464845605": { | ||
"blogTitle": "HIPSTER 1", | ||
"blogpost": "DIY knausgaard literally listicle chartreuse sriracha retro schlitz yuccie, venmo cronut cred thundercats. Bushwick seitan lomo viral. Chambray waistcoat echo park meditation brooklyn pork belly, asymmetrical ennui franzen. Hammock listicle man bun, shoreditch pinterest kitsch flexitarian before they sold out green juice semiotics put a bird on it keffiyeh neutra taxidermy cold-pressed. Kickstarter leggings sartorial humblebrag knausgaard. Everyday carry chicharrones meggings asymmetrical, echo park cronut yuccie viral shoreditch biodiesel affogato authentic. Irony quinoa single-origin coffee disrupt asymmetrical +1 gochujang, vinyl gastropub direct trade.\r\n\r\nTruffaut heirloom venmo 3 wolf moon. Cronut meditation tote bag pabst, disrupt slow-carb selvage locavore. Yuccie church-key post-ironic roof party cold-pressed mixtape. Cornhole skateboard portland vinyl mixtape, heirloom mustache brooklyn intelligentsia. Try-hard intelligentsia marfa, pork belly microdosing man braid farm-to-table knausgaard tote bag semiotics yr selfies green juice raw denim. Pop-up waistcoat hella plaid artisan twee microdosing forage, flexitarian post-ironic. Shabby chic taxidermy brunch post-ironic lumbersexual hammock, yuccie retro ennui." | ||
}, | ||
"1467465520102": { | ||
"blogTitle": "TITLE", | ||
"blogpost": "TESST" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Blog Post</title> | ||
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,300,700' rel='stylesheet' type='text/css'> | ||
<link href="../main.css" rel="stylesheet"> | ||
<script> | ||
window.onload = function(e){ | ||
var post = document.getElementById("blog").innerHTML; | ||
console.log(post.substr(0,10)); | ||
post = post.split("\"").join("").split("\n").join("<br/>"); | ||
document.getElementById("blog").innerHTML = post; | ||
console.log("script"); | ||
}; | ||
</script> | ||
</head> | ||
</head> | ||
<body class="single-post"> | ||
<header> | ||
<img class="main-logo" src="../img/logo1.png"> | ||
<h1 class="title">Node Girls</h1> | ||
</header> | ||
<a href="../"><- BACK</a> | ||
<div> | ||
<h1>{{title}}</h1> | ||
<div > | ||
<p id="blog"> | ||
{{ body }} | ||
</p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |