From 9ca67793882da41f67fa1ab8d117afe62d36423a Mon Sep 17 00:00:00 2001 From: Spencer Flagg Date: Sat, 22 Oct 2022 18:17:56 +0200 Subject: [PATCH] added initial slash to image paths and disabled image compression to test on ios --- .eleventy.js | 9 ++---- .../components/landing/be-your-own.njk | 2 +- src/_includes/components/landing/bitcoin.njk | 2 +- src/_includes/components/landing/dev.njk | 2 +- src/_includes/components/landing/hero.njk | 4 +-- src/_includes/components/landing/products.njk | 4 +-- src/_includes/components/landing/support.njk | 4 +-- src/_includes/components/landing/why.njk | 4 +-- src/about.njk | 28 +++++++++---------- src/assets/js/landing.js | 1 - src/contact.njk | 4 +-- src/dev.njk | 4 +-- src/jobs.njk | 4 +-- src/news.njk | 4 +-- src/privacy.njk | 4 +-- 15 files changed, 37 insertions(+), 43 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 02112e0..14f2c76 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -22,13 +22,8 @@ module.exports = function (eleventyConfig) { eleventyConfig.addPassthroughCopy('src/assets/fonts'); eleventyConfig.addPassthroughCopy("./src/assets/js"); - // eleventyConfig.addPassthroughCopy('src/assets/images/**/*.png'); - // eleventyConfig.addPassthroughCopy('src/assets/images/**/*.svg'); - eleventyConfig.addPassthroughCopy('src/assets/images/**/*.jpg'); - // eleventyConfig.addPassthroughCopy('src/assets/images/**/*.gif'); - - if (true) {//(process.env.ELEVENTY_ENV === "production") { + if (process.env.ELEVENTY_ENV === "production") { eleventyConfig.addPlugin(img2picture, { // Should be same as Eleventy input folder set using `dir.input`. eleventyInputDir: "src", @@ -43,7 +38,7 @@ module.exports = function (eleventyConfig) { }); } else { // During development, copy the files to Eleventy's `dir.output` - eleventyConfig.addPassthroughCopy("_site/assets/images"); + eleventyConfig.addPassthroughCopy('./src/assets/images/'); } //plugins diff --git a/src/_includes/components/landing/be-your-own.njk b/src/_includes/components/landing/be-your-own.njk index 7388071..a71859d 100644 --- a/src/_includes/components/landing/be-your-own.njk +++ b/src/_includes/components/landing/be-your-own.njk @@ -23,7 +23,7 @@ {% if pseudoservice.slug in service.pseudoservices %}
- {{ service.name }} embassyOS service icon

{{ service.name }}

diff --git a/src/_includes/components/landing/bitcoin.njk b/src/_includes/components/landing/bitcoin.njk index 89c39bc..1257ace 100644 --- a/src/_includes/components/landing/bitcoin.njk +++ b/src/_includes/components/landing/bitcoin.njk @@ -20,7 +20,7 @@ {% if (category == "bitcoin") or (category == "lightning") or (category == "plebnet-tools") %} {{ service.name }} embassyOS service icon {% endif %} diff --git a/src/_includes/components/landing/dev.njk b/src/_includes/components/landing/dev.njk index 9239cde..b1aaf41 100644 --- a/src/_includes/components/landing/dev.njk +++ b/src/_includes/components/landing/dev.njk @@ -14,7 +14,7 @@
-
screenshot of dockerfile
+
screenshot of dockerfile
\ No newline at end of file diff --git a/src/_includes/components/landing/hero.njk b/src/_includes/components/landing/hero.njk index d06de1f..5e6d2b3 100644 --- a/src/_includes/components/landing/hero.njk +++ b/src/_includes/components/landing/hero.njk @@ -1,7 +1,7 @@
- start9 hero; voxel explosion - + start9 hero; voxel explosion +
meet the team diff --git a/src/_includes/components/landing/why.njk b/src/_includes/components/landing/why.njk index cde9fb3..c96df01 100644 --- a/src/_includes/components/landing/why.njk +++ b/src/_includes/components/landing/why.njk @@ -6,7 +6,7 @@

Right now, your favorite apps send your personal data off to live on a server somewhere else - where it can be analyzed, censored, sold or worse.

- +
@@ -14,7 +14,7 @@

But when you run your own server, you control your data. Your data never has to leave the privacy of your own home.

- +
diff --git a/src/about.njk b/src/about.njk index c0c3e87..f541111 100644 --- a/src/about.njk +++ b/src/about.njk @@ -5,8 +5,8 @@ layout: layouts/peripheral.njk
- about page hero image: a robot emerging from the embasssy - + about page hero image: a robot emerging from the embasssy +