Skip to content

Commit a9a9b74

Browse files
author
Jesús Muriel
committed
Refactoring data and project loop generator.
1 parent 414ce97 commit a9a9b74

33 files changed

+29
-2
lines changed

_config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ url: "http://scala.epfl.ch" # the base hostname & protocol for your site
99
twitter_username: scala_lang
1010
github_username: scala
1111

12+
13+
# Collections
14+
collections:
15+
contact:
16+
output: true
17+
projects:
18+
output: true
19+
team:
20+
output: true
21+
1222
# Build settings
1323
markdown: kramdown
1424
exclude: ["node_modules", "gulpfile.js", "package.json"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ gulp.task('sass', function () {
5555
* Watch html/md files, run jekyll & reload BrowserSync
5656
*/
5757
gulp.task('watch', function () {
58-
gulp.watch(['index.html', '_layouts/*.html', '_includes/*.html', '_posts/*', 'resources/css/**/*.scss'], ['jekyll-rebuild', 'sass']);
58+
gulp.watch(['./*', '_layouts/*.html', '_includes/*.html', '_posts/*', 'resources/css/**/*.scss', '_data/*'], ['jekyll-rebuild', 'sass']);
5959
});
6060

6161
/**

projects.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
---
22
layout: page
33
---
4-
{{ content }}
4+
<div class="search">
5+
<input class="col-xs-12 form-control" value="" placeholder="Search a Project..." type="text">
6+
</div>
7+
8+
<div class="projects">
9+
{% for pr in site.projects %}
10+
<div class="project">
11+
{{ pr.name }}<br>
12+
</div>
13+
{% endfor %}
14+
</div>

resources/css/main.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,11 @@ ul.red {
202202
margin-right: 16px;
203203
}
204204
}
205+
}
206+
207+
/* PROJECTS */
208+
div.search input {
209+
&:before {
210+
content: "";
211+
}
205212
}

0 commit comments

Comments
 (0)