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

Was trying to create jekyll based version of The-Personal-Page #16

Open
wants to merge 3 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_site
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Your New Jekyll Site
markdown: redcarpet
pygments: true
13 changes: 13 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>N.H.</title>
<link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="robots" content="all" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta http-equiv="imagetoolbar" content="false" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/main.css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="css/main.css">
11 changes: 11 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<head>{% include head.html %}</head>
<html>

<body>

{{ content }}


</body>
</html>
9 changes: 9 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: default
---
<h2>{{ page.title }}</h2>
<p class="meta">{{ page.date | date_to_string }}</p>

<div class="post">
{{ content }}
</div>
60 changes: 60 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
* {
padding: 0;
margin: 0;
}

body {
background-color: #333;
}

p {
color: #fff;
font-family: Helvetica;
font-size: 16px;
line-height: 24px;
margin-bottom: 22px;
-webkit-font-smoothing: antialiased;
}

a {
color: #fff;
font-weight: bold;
text-decoration: none;
border-bottom: 1px solid rgba(255,255,255,0.3);
}

a:hover {
color: #990000;
border-bottom: 1px solid rgba(255,255,255,1);
}

#monogram {
width: 50px;
padding: 50px 0 0 0;
margin: 0 auto 0 50px;
}

#about {
width: 360px;
padding: 0 0 0 150px;
margin: -35px 50px 0 auto !important;
}

@media (max-width: 767px) {
#monogram {
position: relative;
width: auto;
padding: 20px;
margin: 0;
}

#about {
position: relative;
width: auto;
padding: 20px;
margin: 0 !important;
}

background-image {
opacity: 0.2;
}
Binary file added img/monogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nh_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 1 addition & 35 deletions index.html → index.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,3 @@
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>N.H.</title>
<link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="robots" content="all" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta http-equiv="imagetoolbar" content="false" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
* { padding: 0; margin: 0; }
body { background-color: #333; }
p { color: #fff; font-family: Helvetica; font-size: 16px; line-height: 24px; margin-bottom: 22px; -webkit-font-smoothing: antialiased; }
a { color: #fff; font-weight: bold; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
a:hover { color: #990000; border-bottom: 1px solid rgba(255,255,255,1); }
#monogram { width: 50px; padding: 50px 0 0 0; margin: 0 auto 0 50px; }
#about { width: 360px; padding: 0 0 0 150px; margin: -35px 50px 0 auto !important; }
@media (max-width: 767px) {
#monogram { position: relative; width: auto; padding: 20px; margin: 0; }
#about { position: relative; width: auto; padding: 20px; margin: 0 !important; }
background-image { opacity: 0.2; }
}
</style>
</head>

<body>

<!-- swap out for a logo -->
<div id="monogram">
<img src="monogram.png" />
Expand All @@ -49,12 +17,10 @@
$(function(){
$(window).resize(function(){
if($(this).width() >= 767){
$.backstretch("nh_bg.jpg", {speed: 150});
$.backstretch("nh_bg.jpg", {speed: 150});//insert image for wallpaper by changing path of "nh_bg.jpg" to whatever the path to your picture is.
}
})
.resize();//trigger resize on page load
});
</script>

</body>
</html>