Skip to content

Commit c554d83

Browse files
committed
Jekyll test
1 parent e797192 commit c554d83

File tree

15 files changed

+380
-1
lines changed

15 files changed

+380
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.sass-cache
3+
.jekyll-metadata

_config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
title: "Vulkan Lessons"
2+
subtitle: "Vulkan tutorials and study materials"
3+
author: "Artem Gurevich"
4+
5+
baseurl: ""
6+
url: "http://glcoder.github.io"
7+
description: >
8+
OpenGL and Vulkan GAPI programming tutorials and study materials.
9+
10+
encoding: utf-8
11+
permalink: pretty
12+
paginate_path: /page:num
13+
timezone: Europe/Moscow
14+
markdown: redcarpet
15+
highlighter: none
16+
17+
redcarpet:
18+
extensions: ["no_intra_emphasis", "tables", "autolink", "strikethrough", "with_toc_data"]
19+
20+
defaults:
21+
values:
22+
author: "Artem Gurevich"
23+
layout: "default"

_includes/footer.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<footer class="blog-footer">
2+
<p>Copyright © 2016 <a href="mailto:{{ site.email }}">{{ site.author }}</a>.</p>
3+
<p><a href="#">Back to top</a></p>
4+
</footer> <!--/.blog-footer -->
5+
6+
<script src="//cdn.jsdelivr.net/jquery/1.11.3/jquery.min.js"></script>
7+
<script src="//cdn.jsdelivr.net/bootstrap/3.3.6/js/bootstrap.min.js"></script>
8+
9+
<script src="//cdn.jsdelivr.net/prism/1.4.1/prism.js"></script>
10+
<script src="//cdn.jsdelivr.net/prism/1.4.1/components/prism-clike.min.js"></script>
11+
<script src="//cdn.jsdelivr.net/prism/1.4.1/components/prism-c.min.js"></script>
12+
<script src="//cdn.jsdelivr.net/prism/1.4.1/components/prism-cpp.min.js"></script>
13+
<script src="//cdn.jsdelivr.net/prism/1.4.1/components/prism-glsl.min.js"></script>

_includes/head.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8+
9+
<link href='//fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
10+
11+
<link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css">
12+
<link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap-theme.min.css">
13+
<link rel="stylesheet" href="//cdn.jsdelivr.net/prism/1.4.1/themes/prism.css">
14+
<link rel="stylesheet" href="{{ '/css/main.css' | prepend: site.baseurl }}">
15+
16+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
17+
</head>

_includes/header.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<nav class="navbar navbar-default">
2+
<div class="container">
3+
<div class="navbar-header">
4+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
5+
<span class="sr-only">Toggle</span>
6+
<span class="icon-bar"></span>
7+
<span class="icon-bar"></span>
8+
<span class="icon-bar"></span>
9+
</button>
10+
<a class="navbar-brand" href="{{ site.baseurl | prepend: site.url }}">{{ site.title }}</a>
11+
</div> <!--/.navbar-header -->
12+
<div id="navbar" class="collapse navbar-collapse">
13+
<ul class="nav navbar-nav">
14+
{% for n_page in site.pages %}
15+
{% if n_page.title %}
16+
<li><a href="{{ n_page.url | prepend: site.baseurl }}">{{ n_page.title }}</a></li>
17+
{% endif %}
18+
{% endfor %}
19+
</ul>
20+
</div> <!--/.navbar-collapse -->
21+
</div> <!-- /.container -->
22+
</nav> <!--/.navbar -->

_includes/sidebar.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div class="sidebar-module">
2+
<h4>Posts</h4>
3+
<ol class="list-unstyled">
4+
{% for n_post in site.posts reversed %}
5+
<li><a href="{{ n_post.url | prepend: site.baseurl }}">{{ n_post.title }}</a></li>
6+
{% endfor %}
7+
</ol>
8+
</div> <!--/.sidebar-module -->
9+
<div class="sidebar-module">
10+
<h4>Links</h4>
11+
<ol class="list-unstyled">
12+
<li><a href="#">GitHub</a></li>
13+
<li><a href="#">Twitter</a></li>
14+
<li><a href="#">Facebook</a></li>
15+
</ol>
16+
</div> <!--/.sidebar-module -->

_layouts/default.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
{% include head.html %}
4+
<body>
5+
{% include header.html %}
6+
<div class="container">
7+
<div class="row">
8+
<div class="col-sm-8 blog-main">
9+
{{ content }}
10+
</div> <!-- /.blog-main -->
11+
<div class="col-sm-3 col-sm-offset-1 blog-sidebar">
12+
{% include sidebar.html %}
13+
</div> <!-- /.blog-sidebar -->
14+
</div> <!-- /.row -->
15+
</div> <!-- /.container -->
16+
{% include footer.html %}
17+
</body>
18+
</html>

_layouts/page.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
---
4+
<article class="blog-post">
5+
<h2 class="blog-post-title">{{ page.title }} </h2>
6+
{{ content }}
7+
</article> <!--/.blog-post -->

_layouts/post.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default
3+
---
4+
<article class="blog-post">
5+
<h2 class="blog-post-title">{{ page.title }} </h2>
6+
<!-- <p class="blog-post-meta">{{ page.date | date: "%d.%m.%Y" }}</p> -->
7+
{{ content }}
8+
</article> <!--/.blog-post -->

_posts/2016-02-17-lesson01.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
layout: post
3+
title: "Lesson 1"
4+
date: 2016-02-17 00:00:00 +0000
5+
categories: vulkan
6+
thumbnail: /assets/logo.png
7+
---
8+
Some basic info about Vulkan.
9+
10+
Little C++ `code` snippet:
11+
12+
```cpp
13+
#include <stdio.h>
14+
15+
// Global variable
16+
static char const * strHelloWorld = "Hello, World!";
17+
18+
int main(int argc, char *argv[]) {
19+
printf("%s\n", strHelloWorld);
20+
return 0;
21+
}
22+
```
23+
24+
Some GLSL `code` snippet:
25+
26+
```glsl
27+
#version 330 core
28+
29+
layout(location = 0) in vec3 position;
30+
31+
uniform struct Camera {
32+
mat4 modelViewProjection;
33+
} camera;
34+
35+
void main(void) {
36+
gl_Position = camera.modelViewProjection * vec4(position, 1.0);
37+
}
38+
```
39+
40+
We can do this all day long.
41+
42+
Some basic info about Vulkan.
43+
44+
Little C++ `code` snippet:
45+
46+
```cpp
47+
#include <stdio.h>
48+
49+
// Global variable
50+
static char const * strHelloWorld = "Hello, World!";
51+
52+
int main(int argc, char *argv[]) {
53+
printf("%s\n", strHelloWorld);
54+
return 0;
55+
}
56+
```
57+
58+
Some GLSL `code` snippet:
59+
60+
```glsl
61+
#version 330 core
62+
63+
layout(location = 0) in vec3 position;
64+
65+
uniform struct Camera {
66+
mat4 modelViewProjection;
67+
} camera;
68+
69+
void main(void) {
70+
gl_Position = camera.modelViewProjection * vec4(position, 1.0);
71+
}
72+
```
73+
74+
We can do this all day long.

0 commit comments

Comments
 (0)