]> O.S.I.I.S - jp/vkvg.git/commitdiff
test gh-pages gh-pages2
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sun, 16 Aug 2020 00:24:01 +0000 (02:24 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sun, 16 Aug 2020 01:27:49 +0000 (03:27 +0200)
12 files changed:
_config.yml
_includes/goat_counter.html [new file with mode: 0644]
_includes/head.html [new file with mode: 0644]
_includes/menu_item.html [new file with mode: 0644]
_includes/post_list.html [new file with mode: 0644]
_layouts/default.html [new file with mode: 0644]
_layouts/home.html [new file with mode: 0644]
_layouts/post.html [new file with mode: 0644]
_posts/2020-07-07-overview-post.md [new file with mode: 0644]
_sass/no-style-please.scss [new file with mode: 0644]
assets/css/main.scss [new file with mode: 0644]
index.markdown

index 641abb6f23009afb70892c3a9541e00f9ab356ee..348243cfb53e7d15a73080619da5a7968bff530e 100644 (file)
@@ -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 (file)
index 0000000..8c22587
--- /dev/null
@@ -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 (file)
index 0000000..9a85610
--- /dev/null
@@ -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 (file)
index 0000000..fc14e4b
--- /dev/null
@@ -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 (file)
index 0000000..f516e33
--- /dev/null
@@ -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 (file)
index 0000000..a1bc351
--- /dev/null
@@ -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 (file)
index 0000000..cdcdbe8
--- /dev/null
@@ -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 (file)
index 0000000..84402dd
--- /dev/null
@@ -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 (file)
index 0000000..ef2698f
--- /dev/null
@@ -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 (file)
index 0000000..f39a763
--- /dev/null
@@ -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 (file)
index 0000000..665ab93
--- /dev/null
@@ -0,0 +1,4 @@
+---
+---
+
+@import "no-style-please";
\ No newline at end of file
index 06715078416fe7a0f7153a3d1e9ec351217c99ad..1abcb581e7a26bf72962cf6cf588305ab33c8edf 100644 (file)
@@ -4,3 +4,7 @@
 
 layout: home
 ---
+
+{% for p in site.posts %}
+    {{ p | inspect }}
+{% endfor %}