From 948dec793226f3b84a61b127c1f8d7fe8da4f553 Mon Sep 17 00:00:00 2001 From: Kyle Kirkby Date: Fri, 13 Sep 2019 16:45:08 +0100 Subject: [PATCH 1/8] Changed file extension to .md --- index.html => index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename index.html => index.md (97%) diff --git a/index.html b/index.md similarity index 97% rename from index.html rename to index.md index 7eb3220..aa3b8f4 100644 --- a/index.html +++ b/index.md @@ -24,5 +24,5 @@ - row: custom_include_row source: ai_boards.html edit-on-github: true +particle_js: true --- -{% include members.html %} From adfe35f44540a4880faf59ae807ebce4c3c6ccde Mon Sep 17 00:00:00 2001 From: Kyle Kirkby Date: Fri, 13 Sep 2019 16:45:33 +0100 Subject: [PATCH 2/8] Added particles js --- _layouts/flow.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_layouts/flow.html b/_layouts/flow.html index 4a677c7..b9d31a7 100644 --- a/_layouts/flow.html +++ b/_layouts/flow.html @@ -1,6 +1,9 @@ --- layout: base --- +{% if page.particles_js %} +
+{% endif %} {% if page.flow %}
{% for each in page.flow %} From 597869dc59ddf4f0d5234882782b1798ada6c219 Mon Sep 17 00:00:00 2001 From: Kyle Kirkby Date: Fri, 13 Sep 2019 16:45:44 +0100 Subject: [PATCH 3/8] CSS for particles js --- assets/css/app/custom.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/assets/css/app/custom.scss b/assets/css/app/custom.scss index 5c6145b..c991515 100644 --- a/assets/css/app/custom.scss +++ b/assets/css/app/custom.scss @@ -148,3 +148,16 @@ div#github_controls a.btn { color: white; border: 1px solid #2d2d2d; } +#particles-js > canvas { + z-index: 9; + width: 100% !important; +} +#particles-js { + width: 100%; + height: 100%; + background-image: url(main.css); + background-size: cover; + background-position: 50% 50%; + position: absolute; + background-repeat: no-repeat; +} From cd9e6d3fe1f9bd118bae712c78d9c232bee4e3c9 Mon Sep 17 00:00:00 2001 From: Kyle Kirkby Date: Fri, 13 Sep 2019 16:45:55 +0100 Subject: [PATCH 4/8] Added the particles.js lib --- assets/js/package-home.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/package-home.js b/assets/js/package-home.js index dfe1532..b1e6325 100644 --- a/assets/js/package-home.js +++ b/assets/js/package-home.js @@ -5,5 +5,6 @@ //= require vendor/owl.carousel //= require app/main +//= require app/particles //= require app/custom //= require app/home From 238168fc031a2a5485d4afd0809f198bcaa7e3fa Mon Sep 17 00:00:00 2001 From: Kyle Kirkby Date: Fri, 13 Sep 2019 16:46:41 +0100 Subject: [PATCH 5/8] Corrected frontmatter val --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index aa3b8f4..076eaba 100644 --- a/index.md +++ b/index.md @@ -24,5 +24,5 @@ flow: - row: custom_include_row source: ai_boards.html edit-on-github: true -particle_js: true +particles_js: true --- From 8f25e4c9d6727054175d93e4259a768756459420 Mon Sep 17 00:00:00 2001 From: Kyle Kirkby Date: Fri, 13 Sep 2019 16:51:29 +0100 Subject: [PATCH 6/8] Added base.html layout override --- _layouts/base.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _layouts/base.html diff --git a/_layouts/base.html b/_layouts/base.html new file mode 100644 index 0000000..a1f6c0f --- /dev/null +++ b/_layouts/base.html @@ -0,0 +1,20 @@ +--- +--- + + + {% include head.html %} + +
+ {% include_cached nav.html pageUrl=page.url %} + {% if page.particles_js %} +
+ {% endif %} +
+ {{content}} + {% include_cached github-edit.html pagePath=page.path pagePermalink=page.permalink %} + {% include_cached footer.html %} +
+
+ {% include javascript.html %} + + From d301faea2352419cd8a4fb466e651451bf025d7f Mon Sep 17 00:00:00 2001 From: Kyle Kirkby Date: Fri, 13 Sep 2019 16:52:05 +0100 Subject: [PATCH 7/8] Removed the particles-js div from the flow.html layout --- _layouts/flow.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/_layouts/flow.html b/_layouts/flow.html index b9d31a7..4a677c7 100644 --- a/_layouts/flow.html +++ b/_layouts/flow.html @@ -1,9 +1,6 @@ --- layout: base --- -{% if page.particles_js %} -
-{% endif %} {% if page.flow %}
{% for each in page.flow %} From e5ddda3c86f2a26929822a51ef523a0c112bb4c6 Mon Sep 17 00:00:00 2001 From: Kyle Kirkby Date: Fri, 13 Sep 2019 16:52:22 +0100 Subject: [PATCH 8/8] Adjusted the z-index properties for content --- assets/css/app/custom.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/css/app/custom.scss b/assets/css/app/custom.scss index c991515..ff36891 100644 --- a/assets/css/app/custom.scss +++ b/assets/css/app/custom.scss @@ -136,6 +136,7 @@ img.img-responsive.ai-homepage-image { } .row.content.github-edit { background-color: black; + z-index: 2; } div#github_controls a#github_home { @@ -155,6 +156,7 @@ div#github_controls a.btn { #particles-js { width: 100%; height: 100%; + z-index: 1; background-image: url(main.css); background-size: cover; background-position: 50% 50%;