From a74c3972962dee71c6eb33a27f9392aa69b6b1f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sun, 16 Aug 2020 02:24:01 +0200 Subject: [PATCH] test gh-pages --- _config.yml | 20 ++++++- _includes/goat_counter.html | 6 +++ _includes/head.html | 15 ++++++ _includes/menu_item.html | 19 +++++++ _includes/post_list.html | 9 ++++ _layouts/default.html | 11 ++++ _layouts/home.html | 11 ++++ _layouts/post.html | 7 +++ _posts/2020-07-07-overview-post.md | 83 ++++++++++++++++++++++++++++++ _sass/no-style-please.scss | 29 +++++++++++ assets/css/main.scss | 4 ++ index.markdown | 4 ++ 12 files changed, 216 insertions(+), 2 deletions(-) create mode 100644 _includes/goat_counter.html create mode 100644 _includes/head.html create mode 100644 _includes/menu_item.html create mode 100644 _includes/post_list.html create mode 100644 _layouts/default.html create mode 100644 _layouts/home.html create mode 100644 _layouts/post.html create mode 100644 _posts/2020-07-07-overview-post.md create mode 100644 _sass/no-style-please.scss create mode 100644 assets/css/main.scss 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 @@ + + + \ 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 @@ + + + + + + {% feed_meta %} + {% seo %} + + {% if site.goat_counter and jekyll.environment == "production" %} + {% include goat_counter.html %} + {% endif %} + + + + \ 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 @@ + \ 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 %} + +{% 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 @@ + + + {%- include head.html -%} + +
+
+ {{ content }} +
+
+ + \ 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 +--- +
+

{{ site.title }}

+ {% if site.theme_config.show_description == true %} +

{{ site.description }}

+ {% endif %} +
+ +{% 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 +--- + +{{ site.theme_config.back_home_text }} +

{{ page.title }}

+{{ 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 (
) + +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 %} -- 2.47.3