summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-08-16 02:24:01 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-08-16 03:27:49 +0200
commita74c3972962dee71c6eb33a27f9392aa69b6b1f1 (patch)
tree05d8eb68f6b803f680994d98812d0cb6788d1fd7
parentf51a59b03ee8d0b17a347adc46cf522745208296 (diff)
test gh-pagesgh-pages2
-rw-r--r--_config.yml20
-rw-r--r--_includes/goat_counter.html6
-rw-r--r--_includes/head.html15
-rw-r--r--_includes/menu_item.html19
-rw-r--r--_includes/post_list.html9
-rw-r--r--_layouts/default.html11
-rw-r--r--_layouts/home.html11
-rw-r--r--_layouts/post.html7
-rw-r--r--_posts/2020-07-07-overview-post.md83
-rw-r--r--_sass/no-style-please.scss29
-rw-r--r--assets/css/main.scss4
-rw-r--r--index.markdown4
12 files changed, 216 insertions, 2 deletions
diff --git a/_config.yml b/_config.yml
index 641abb6..348243c 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,17 +1,33 @@
title: VKVG Documentation
+author: Jean-Philippe Bruyère
email: jp_bruyere@hotmail.com
+url: http://github.com/jpbruyere/vkvg # root address of the site
description: >-
description: Open source 2d vector graphic library for vulkan writen in c.
-#baseurl: "vkvg" # the subpath of your site, e.g. /blog
+baseurl: "/vkvg" # the subpath of your site, e.g. /blog
url: "https://jpbruyere.github.io" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jpbruyere
github_username: jpbruyere
# Build settings
-theme: no-style-please
+# theme: no-style-please
+remote_theme: riggraz/no-style-please
+
+theme_config:
+ back_home_text: ".." # customize text for homepage link in post layout
+ date_format: "%Y-%m-%d" # customize how date is formatted
+ show_description: false # show blog description in home page
+
+addons:
+ - github
+ - plugins
+ - analytics
+
plugins:
- jekyll-feed
+ - jekyll-seo-tag
+ - jekyll-remote-theme
# Exclude from processing.
# The following items will not be processed, by default.
diff --git a/_includes/goat_counter.html b/_includes/goat_counter.html
new file mode 100644
index 0000000..8c22587
--- /dev/null
+++ b/_includes/goat_counter.html
@@ -0,0 +1,6 @@
+<script data-goatcounter="https://{{ site.goat_counter }}.goatcounter.com/count"
+ async src="//gc.zgo.at/count.js"></script>
+
+<noscript>
+ <img src="https://{{ site.goat_counter }}.goatcounter.com/count?p=/test-img">
+</noscript> \ No newline at end of file
diff --git a/_includes/head.html b/_includes/head.html
new file mode 100644
index 0000000..9a85610
--- /dev/null
+++ b/_includes/head.html
@@ -0,0 +1,15 @@
+<head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+
+ {% feed_meta %}
+ {% seo %}
+
+ {% if site.goat_counter and jekyll.environment == "production" %}
+ {% include goat_counter.html %}
+ {% endif %}
+
+ <link rel="shortcut icon" type="image/x-icon" href="/{{ site.favicon }}" />
+ <link rel="stylesheet" href="{{ site.url }}/assets/css/main.css" />
+</head> \ No newline at end of file
diff --git a/_includes/menu_item.html b/_includes/menu_item.html
new file mode 100644
index 0000000..fc14e4b
--- /dev/null
+++ b/_includes/menu_item.html
@@ -0,0 +1,19 @@
+<ul>
+ {% for item in include.collection %}
+ <li>
+ {% if item.url != false %}
+ <a href="{{ item.url }}">{{ item.title }}</a>
+ {% else %}
+ {{ item.title }}
+ {% endif %}
+ </li>
+
+ {% if item.post_list == true %}
+ {% include post_list.html %}
+ {% endif %}
+
+ {% if item.entries != blank %}
+ {% include menu_item.html collection=item.entries %}
+ {% endif %}
+ {% endfor %}
+</ul> \ No newline at end of file
diff --git a/_includes/post_list.html b/_includes/post_list.html
new file mode 100644
index 0000000..f516e33
--- /dev/null
+++ b/_includes/post_list.html
@@ -0,0 +1,9 @@
+{% if site.posts.size > 0 %}
+ <ul>
+ {% for post in site.posts %}
+ <li>
+ {{ post.date | date: site.theme_config.date_format }} <a href="{{ post.url }}">{{ post.title | downcase }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+{% endif %} \ No newline at end of file
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..a1bc351
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="{{ page.lang | default: "en" }}">
+ {%- include head.html -%}
+ <body>
+ <main class="page-content" aria-label="Content">
+ <div class="wrapper">
+ {{ content }}
+ </div>
+ </main>
+ </body>
+</html> \ No newline at end of file
diff --git a/_layouts/home.html b/_layouts/home.html
new file mode 100644
index 0000000..cdcdbe8
--- /dev/null
+++ b/_layouts/home.html
@@ -0,0 +1,11 @@
+---
+layout: default
+---
+<header>
+ <h1>{{ site.title }}</h1>
+ {% if site.theme_config.show_description == true %}
+ <p>{{ site.description }}</p>
+ {% endif %}
+</header>
+
+{% include menu_item.html collection=site.data.menu.entries %} \ No newline at end of file
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..84402dd
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,7 @@
+---
+layout: default
+---
+
+<a href="{{ site.url }}">{{ site.theme_config.back_home_text }}</a>
+<h1>{{ page.title }}</h1>
+{{ content }}
diff --git a/_posts/2020-07-07-overview-post.md b/_posts/2020-07-07-overview-post.md
new file mode 100644
index 0000000..ef2698f
--- /dev/null
+++ b/_posts/2020-07-07-overview-post.md
@@ -0,0 +1,83 @@
+---
+layout: post
+---
+
+Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit. Pellentesque vel lacinia neque. Praesent nulla quam, ullamcorper in sollicitudin ac, molestie sed justo. Cras aliquam, sapien id consectetur accumsan, augue magna faucibus ex, ut ultricies turpis tortor vel ante. In at rutrum tellus.
+
+# Sample heading 1
+## Sample heading 2
+### Sample heading 3
+#### Sample heading 4
+##### Sample heading 5
+###### Sample heading 6
+
+Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod.
+
+## Lists
+
+Unordered:
+
+- Fusce non velit cursus ligula mattis convallis vel at metus[^2].
+- Sed pharetra tellus massa, non elementum eros vulputate non.
+- Suspendisse potenti.
+
+Ordered:
+
+1. Quisque arcu felis, laoreet vel accumsan sit amet, fermentum at nunc.
+2. Sed massa quam, auctor in eros quis, porttitor tincidunt orci.
+3. Nulla convallis id sapien ornare viverra.
+4. Nam a est eget ligula pellentesque posuere.
+
+## Blockquote
+
+The following is a blockquote:
+
+> Suspendisse tempus dolor nec risus sodales posuere. Proin dui dui, mollis a consectetur molestie, lobortis vitae tellus.
+
+## Thematic breaks (<hr>)
+
+Mauris viverra dictum ultricies[^3]. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. **You can put some text inside the horizontal rule like so.**
+
+---
+{: data-content="hr with text"}
+
+Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. **Or you can just have an clean horizontal rule.**
+
+---
+
+Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. Or you can just have an clean horizontal rule.
+
+## Code
+
+Now some code:
+
+```
+const ultimateTruth = 'this theme is the best!';
+console.log(ultimateTruth);
+```
+
+And here is some `inline code`!
+
+## Tables
+
+Now a table:
+
+| Tables | Are | Cool |
+| ------------- |:-------------:| -----:|
+| col 3 is | right-aligned | $1600 |
+| col 2 is | centered | $12 |
+| zebra stripes | are neat | $1 |
+
+## Images
+
+![theme logo](https://raw.githubusercontent.com/riggraz/no-style-please/master/logo.png)
+
+Logo of *no style, please!* theme[^4]
+
+---
+{: data-content="footnotes"}
+
+[^1]: this is a footnote. It should highlight if you click on the corresponding superscript number.
+[^2]: hey there, i'm using no style please!
+[^3]: this is another footnote.
+[^4]: this is a very very long footnote to test if a very very long footnote brings some problems or not. I strongly hope that there are no problems but you know sometimes problems arise from nowhere. \ No newline at end of file
diff --git a/_sass/no-style-please.scss b/_sass/no-style-please.scss
new file mode 100644
index 0000000..f39a763
--- /dev/null
+++ b/_sass/no-style-please.scss
@@ -0,0 +1,29 @@
+body {
+ color: black;
+ background-color: white;
+ font-family: monospace;
+ font-size: 1.3rem;
+ line-height: 1.3rem;
+}
+
+.wrapper {
+ width: fit-content;
+ max-width: 640px;
+ margin: 4rem auto;
+ padding: 0 1rem;
+}
+
+h1 { line-height: 2rem; }
+
+hr {
+ text-align: center;
+ border: 0;
+
+ &:before { content: '/////' }
+ &:after { content: attr(data-content) '/////' }
+}
+
+table, th, td {
+ border: thin solid black;
+ border-collapse: collapse;
+} \ No newline at end of file
diff --git a/assets/css/main.scss b/assets/css/main.scss
new file mode 100644
index 0000000..665ab93
--- /dev/null
+++ b/assets/css/main.scss
@@ -0,0 +1,4 @@
+---
+---
+
+@import "no-style-please"; \ No newline at end of file
diff --git a/index.markdown b/index.markdown
index 0671507..1abcb58 100644
--- a/index.markdown
+++ b/index.markdown
@@ -4,3 +4,7 @@
layout: home
---
+
+{% for p in site.posts %}
+ {{ p | inspect }}
+{% endfor %}