+
-
+
+ {{ page.title }}
+ {{ page.description }}
+
-
- {{ page.title }}
- {{ page.description }}
-
+
-
+
+ {{ content }}
+
-
- {{ content }}
-
-
-
-
-
-
-
-
+
+
+
+
diff --git a/_projects/1_project.markdown b/_projects/1_project.markdown
index 94cd752..8bc4074 100644
--- a/_projects/1_project.markdown
+++ b/_projects/1_project.markdown
@@ -3,6 +3,7 @@ layout: page
title: Project 1
description: a project with a background image
img: /assets/img/12.jpg
+importance: 1
---
Every project has a beautiful feature shocase page. It's easy to include images, in a flexible 3-column grid format. Make your photos 1/3, 2/3, or full width.
diff --git a/_projects/2_project.markdown b/_projects/2_project.markdown
index 3f157d9..57a86df 100644
--- a/_projects/2_project.markdown
+++ b/_projects/2_project.markdown
@@ -3,6 +3,7 @@ layout: page
title: Project 2
description: a project with a background image
img: /assets/img/2.jpg
+importance: 2
---
Every project has a beautiful feature shocase page. It's easy to include images, in a flexible 3-column grid format. Make your photos 1/3, 2/3, or full width.
diff --git a/_projects/3_project.markdown b/_projects/3_project.markdown
index bc139c7..238788f 100644
--- a/_projects/3_project.markdown
+++ b/_projects/3_project.markdown
@@ -4,6 +4,7 @@ title: Project 3
description: a project that redirects to another website
img:
redirect: https://unsplash.com
+importance: 3
---
Every project has a beautiful feature shocase page. It's easy to include images, in a flexible 3-column grid format. Make your photos 1/3, 2/3, or full width.
diff --git a/_projects/4_project.markdown b/_projects/4_project.markdown
index 15457ff..114308a 100644
--- a/_projects/4_project.markdown
+++ b/_projects/4_project.markdown
@@ -3,6 +3,7 @@ layout: page
title: Project 4
description: another without an image
img:
+importance: 3
---
Every project has a beautiful feature shocase page. It's easy to include images, in a flexible 3-column grid format. Make your photos 1/3, 2/3, or full width.
diff --git a/_projects/5_project.markdown b/_projects/5_project.markdown
index 8538fe1..cd8a689 100644
--- a/_projects/5_project.markdown
+++ b/_projects/5_project.markdown
@@ -3,6 +3,7 @@ layout: page
title: Project 5
description: a project with a background image
img: /assets/img/1.jpg
+importance: 3
---
Every project has a beautiful feature shocase page. It's easy to include images, in a flexible 3-column grid format. Make your photos 1/3, 2/3, or full width.
diff --git a/_projects/6_project.markdown b/_projects/6_project.markdown
index b06503e..7fc6d02 100644
--- a/_projects/6_project.markdown
+++ b/_projects/6_project.markdown
@@ -3,6 +3,7 @@ layout: page
title: Project 6
description: a project with no image
img:
+importance: 4
---
Every project has a beautiful feature shocase page. It's easy to include images, in a flexible 3-column grid format. Make your photos 1/3, 2/3, or full width.
diff --git a/_sass/_base.scss b/_sass/_base.scss
index 8bce632..bf77ed7 100644
--- a/_sass/_base.scss
+++ b/_sass/_base.scss
@@ -217,3 +217,23 @@ footer.sticky-bottom {
text-decoration: none;
}
}
+
+
+// Projects
+
+.projects {
+ .grid-item {
+ width: 250px;
+ margin-bottom: 10px;
+ a {
+ color: black;
+ text-decoration: none;
+ &:hover {
+ color: $theme-color;
+ }
+ }
+ }
+ .card img {
+ width: 100%;
+ }
+}
diff --git a/assets/js/progressbar.js b/assets/js/progressbar.js
deleted file mode 100644
index 03e8748..0000000
--- a/assets/js/progressbar.js
+++ /dev/null
@@ -1,46 +0,0 @@
-$(document).ready(function() {
- var navbarHeight = $('#navbar').outerHeight(true);
- $('body').css({ 'padding-top': navbarHeight });
- $('progress-container').css({ 'padding-top': navbarHeight });
- var progressBar = $('#progress');
- progressBar.css({ 'top': navbarHeight });
- var getMax = function() { return $(document).height() - $(window).height(); }
- var getValue = function() { return $(window).scrollTop(); }
- // Check if the browser supports the progress element.
- if ('max' in document.createElement('progress')) {
- // Set the 'max' attribute for the first time.
- progressBar.attr({ max: getMax() });
- progressBar.attr({ value: getValue() });
-
- $(document).on('scroll', function() {
- // On scroll only the 'value' attribute needs to be calculated.
- progressBar.attr({ value: getValue() });
- });
-
- $(window).resize(function() {
- var navbarHeight = $('#navbar').outerHeight(true);
- $('body').css({ 'padding-top': navbarHeight });
- $('progress-container').css({ 'padding-top': navbarHeight });
- progressBar.css({ 'top': navbarHeight });
- // On resize, both the 'max' and 'value' attributes need to be calculated.
- progressBar.attr({ max: getMax(), value: getValue() });
- });
- } else {
- var max = getMax(), value, width;
- var getWidth = function() {
- // Calculate the window width as a percentage.
- value = getValue();
- width = (value/max) * 100;
- width = width + '%';
- return width;
- }
- var setWidth = function() { progressBar.css({ width: getWidth() }); };
- setWidth();
- $(document).on('scroll', setWidth);
- $(window).on('resize', function() {
- // Need to reset the 'max' attribute.
- max = getMax();
- setWidth();
- });
- }
-});
diff --git a/blog/index.html b/blog/index.html
index 5a6e096..9c474d7 100644
--- a/blog/index.html
+++ b/blog/index.html
@@ -2,6 +2,14 @@
layout: default
pagination:
enabled: true
+ collection: posts
+ permalink: /page/:num/
+ per_page: 3
+ sort_field: date
+ sort_reverse: true
+ trail:
+ before: 1 # The number of links before the current page
+ after: 3 # The number of links after the current page
---