commit 6ec9b42fe375d5aabc74b362057478f970869779
parent 045f5a9b1204a02b0c7d5e8f00a53ee6e70682d2
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 28 Apr 2018 20:35:42 +0200
try to factor out ptojects
Diffstat:
7 files changed, 107 insertions(+), 21 deletions(-)
diff --git a/_config.yml b/_config.yml
@@ -17,4 +17,9 @@ github_username: Nordgedanken
google-analytics:
id: ""
-exclude: ['package.json', 'src' , 'node_modules']
+exclude: ['package.json', 'src' , 'node_modules', 'yarn.lock']
+
+collections:
+- projects:
+ output: false
+ permalink: /:collection/:name
+\ No newline at end of file
diff --git a/_layouts/default.html b/_layouts/default.html
@@ -1,14 +1,44 @@
<!DOCTYPE html>
<html lang="en">
- {% include head.html %}
- <body>
- {% include header.html %}
- <section class="about" id="main">
- {% include about.html %}
- </section>
- <section id="projects">
- {% include projects.html %}
- </section>
+ {% include head.html %}
+ <body>
+ {% include header.html %}
+ <section class="about" id="main">
+ {% include about.html %}
+ </section>
+ <section id="projects">
+ {% for item in site.projects %}
+ {% if item.image_side == "right" %}
+ <div class="user-projects">
+ <div class="images-right">
+ <img alt="mountains" src="{{ "/assets/img/mountains.jpg" | prepend: site.baseurl }}" />
+ </div>
+ <div class="contents">
+ <h3>{{item.title}}</h3>
+ <ul>
+ <li>Featured Skills</li>
+ </ul>
+ {{item.content}}
+ <a class="project-link" href="{{item.project_link}}">Check it out</a>
+ </div>
+ </div>
+ {% elsif item.image_side == "left" %}
+ <div class="user-projects">
+ <div class="images-left">
+ <img alt="mountains" src="{{ "/assets/img/skate.jpg" | prepend: site.baseurl }}" />
+ </div>
+ <div class="contents-right">
+ <h3>{{item.title}}</h3>
+ <ul>
+ <li>Featured Skills</li>
+ </ul>
+ {{item.content}}
+ <a class="project-link" href="{{item.project_link}}">Check it out</a>
+ </div>
+ </div>
+ {% endif %}
+ {% endfor %}
+ </section>
{{ content }}
- {% include footer.html %}
- </body>
+ {% include footer.html %}
+ </body>
diff --git a/_posts/2018-04-28-Test.md b/_posts/2018-04-28-Test.md
@@ -1,11 +1,5 @@
---
+title: Test
layout: post
-title: "Welcome to Jekyll!"
-author: MTRNord
-date: 2015-11-17 16:16:01 -0600
-categories: jekyll update
+categories: main
---
-
-You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `bundle exec jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
-
-To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
-\ No newline at end of file
diff --git a/_projects/matrix-twitch-appservice.md b/_projects/matrix-twitch-appservice.md
@@ -0,0 +1,6 @@
+---
+collection: projects
+title: Matrix-Twitch-Appservice
+image_side: right
+project_link: https://github.com/Nordgedanken/matrix-twitch-bridge
+---
+\ No newline at end of file
diff --git a/_templates/default-post.yaml b/_templates/default-post.yaml
@@ -0,0 +1,5 @@
+---
+title: $1
+layout: post
+categories: main
+---
diff --git a/_templates/projects.yaml b/_templates/projects.yaml
@@ -0,0 +1,4 @@
+---
+title: projects
+layout: post
+---
diff --git a/projects.html b/projects.html
@@ -0,0 +1,40 @@
+---
+layout: clean
+---
+
+<section class="projects" id="main">
+ <h2>Projects</h2>
+
+
+ {% for item in site.projects %}
+ {% if page.image_side == "right" %}
+ <div class="user-projects">
+ <div class="images-right">
+ <img alt="mountains" src="{{ "/assets/img/mountains.jpg" | prepend: site.baseurl }}" />
+ </div>
+ <div class="contents">
+ <h3>{{page.title}}</h3>
+ <ul>
+ <li>Featured Skills</li>
+ </ul>
+ {{content}}
+ <a class="project-link" href="{{project_link}}">Check it out</a>
+ </div>
+ </div>
+ {% elsif page.image_side == "left" %}
+ <div class="user-projects">
+ <div class="images-left">
+ <img alt="mountains" src="{{ "/assets/img/skate.jpg" | prepend: site.baseurl }}" />
+ </div>
+ <div class="contents-right">
+ <h3>{{page.title}}</h3>
+ <ul>
+ <li>Featured Skills</li>
+ </ul>
+ {{content}}
+ <a class="project-link" href="{{project_link}}">Check it out</a>
+ </div>
+ </div>
+ {% endif %}
+ {% endfor %}
+</section>
+\ No newline at end of file