diff --git a/static/images/screenshots/1-en.png b/assets/images/screenshots/en/1.png similarity index 100% rename from static/images/screenshots/1-en.png rename to assets/images/screenshots/en/1.png diff --git a/static/images/screenshots/2-en.png b/assets/images/screenshots/en/2.png similarity index 100% rename from static/images/screenshots/2-en.png rename to assets/images/screenshots/en/2.png diff --git a/static/images/screenshots/3-en.png b/assets/images/screenshots/en/3.png similarity index 100% rename from static/images/screenshots/3-en.png rename to assets/images/screenshots/en/3.png diff --git a/static/images/screenshots/4-en.png b/assets/images/screenshots/en/4.png similarity index 100% rename from static/images/screenshots/4-en.png rename to assets/images/screenshots/en/4.png diff --git a/static/images/screenshots/5-en.png b/assets/images/screenshots/en/5.png similarity index 100% rename from static/images/screenshots/5-en.png rename to assets/images/screenshots/en/5.png diff --git a/static/images/screenshots/6-en.png b/assets/images/screenshots/en/6.png similarity index 100% rename from static/images/screenshots/6-en.png rename to assets/images/screenshots/en/6.png diff --git a/static/images/screenshots/7-en.png b/assets/images/screenshots/en/7.png similarity index 100% rename from static/images/screenshots/7-en.png rename to assets/images/screenshots/en/7.png diff --git a/static/images/screenshots/1-ru.png b/assets/images/screenshots/ru/1.png similarity index 100% rename from static/images/screenshots/1-ru.png rename to assets/images/screenshots/ru/1.png diff --git a/static/images/screenshots/2-ru.png b/assets/images/screenshots/ru/2.png similarity index 100% rename from static/images/screenshots/2-ru.png rename to assets/images/screenshots/ru/2.png diff --git a/static/images/screenshots/3-ru.png b/assets/images/screenshots/ru/3.png similarity index 100% rename from static/images/screenshots/3-ru.png rename to assets/images/screenshots/ru/3.png diff --git a/static/images/screenshots/4-ru.png b/assets/images/screenshots/ru/4.png similarity index 100% rename from static/images/screenshots/4-ru.png rename to assets/images/screenshots/ru/4.png diff --git a/static/images/screenshots/5-ru.png b/assets/images/screenshots/ru/5.png similarity index 100% rename from static/images/screenshots/5-ru.png rename to assets/images/screenshots/ru/5.png diff --git a/static/images/screenshots/6-ru.png b/assets/images/screenshots/ru/6.png similarity index 100% rename from static/images/screenshots/6-ru.png rename to assets/images/screenshots/ru/6.png diff --git a/static/images/screenshots/7-ru.png b/assets/images/screenshots/ru/7.png similarity index 100% rename from static/images/screenshots/7-ru.png rename to assets/images/screenshots/ru/7.png diff --git a/content/en/_index.html b/content/en/_index.html index 56fc256..afb5a70 100644 --- a/content/en/_index.html +++ b/content/en/_index.html @@ -5,53 +5,12 @@ linkTitle = "SelfPrivacy" +++ {{< blocks/section color="dark" type="section" >}} -
+
- + {{< responsive-carousel >}}
-
+

@@ -62,7 +21,7 @@ linkTitle = "SelfPrivacy"

-
+ {{< /blocks/section >}}
diff --git a/content/ru/_index.html b/content/ru/_index.html index a0b9103..4e61b1c 100644 --- a/content/ru/_index.html +++ b/content/ru/_index.html @@ -4,52 +4,11 @@ linkTitle = "SelfPrivacy" +++ -{{< blocks/section color="dark" type="section">}} +{{< blocks/section color="dark" type="section" >}}
- + {{< responsive-carousel >}}
@@ -64,13 +23,13 @@ linkTitle = "SelfPrivacy"
- {{< /blocks/section>}} +{{< /blocks/section>}}

Ваши личные сервисы

- +

Для серьезных дел

diff --git a/layouts/shortcodes/responsive-carousel.html b/layouts/shortcodes/responsive-carousel.html new file mode 100644 index 0000000..46056a9 --- /dev/null +++ b/layouts/shortcodes/responsive-carousel.html @@ -0,0 +1,51 @@ +{{ $lang := .Page.Lang }} +{{ $srcFiles := (resources.Match (printf "images/screenshots/%s/*" $lang)) }} + +{{ $tinyw := default "500" }} +{{ $smallw := default "800" }} +{{ $mediumw := default "1200" }} +{{ $largew := default "2400" }} + + diff --git a/layouts/shortcodes/responsive-img.html b/layouts/shortcodes/responsive-img.html new file mode 100644 index 0000000..6964da9 --- /dev/null +++ b/layouts/shortcodes/responsive-img.html @@ -0,0 +1,30 @@ +{{ $src := ( resources.Get ( .Get 0 ) ) }} + +{{ $tinyw := default "500" }} +{{ $smallw := default "800" }} +{{ $mediumw := default "1200" }} +{{ $largew := default "2400" }} + +{{ $tiny := $src.Resize (printf "%sx" $tinyw) }} +{{ $small := $src.Resize (printf "%sx" $smallw) }} +{{ $medium:= $src.Resize (printf "%sx" $mediumw) }} +{{ $large := $src.Resize (printf "%sx" $largew) }} + + \ No newline at end of file