Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/djuelg/Shapez-Theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Juelg <djuelg@gmx.de>2016-05-22 12:37:58 +0300
committerDominik Juelg <djuelg@gmx.de>2016-05-22 12:37:58 +0300
commit96694a0311564564be3a714a1e93ab9aabcda9bd (patch)
tree1344f7231a0e141c5535eddad98c9dc2caaa0226
parentef93d1b370a687dc6a44fa1e5ed164ca976a2a8c (diff)
added more start-screen variables to config
-rw-r--r--exampleSite/config.toml8
-rwxr-xr-xlayouts/partials/start-screen.svg10
-rw-r--r--sample-config.toml8
3 files changed, 16 insertions, 10 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 72184c8..23e74df 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -25,12 +25,14 @@ googleAnalytics = ""
subtitle_link = ""
message = "I'm a optional important message!"
+ # Possible values are: auto | optimizeSpeed | optimizeQuality
+ start_screen_image_quality = "auto"
# Enter links for the buttons (button one has the house sign), shouldn't be left empty
button_1 = ""
button_2 = "playground/"
button_3 = "about/"
- keywords = "hugo, blog, Shapez, SVG, design"
-
- logo = "images/logo.png" \ No newline at end of file
+ logo = "images/logo.png"
+ logo_start_screen_rotation = "19"
+ keywords = "hugo, blog, Shapez, SVG, design" \ No newline at end of file
diff --git a/layouts/partials/start-screen.svg b/layouts/partials/start-screen.svg
index e978460..9de4359 100755
--- a/layouts/partials/start-screen.svg
+++ b/layouts/partials/start-screen.svg
@@ -35,13 +35,13 @@
</defs>
<image id="svg-image-3" y="234.615" x="1114.735"
- preserveAspectRatio="none" height="2009" width="2009" image-rendering="optimizeQuality"
+ preserveAspectRatio="none" height="2009" width="2009" image-rendering="{{ .Site.Params.start_screen_image_quality }}"
xlink:href="{{ .Site.BaseURL }}images/start-screen/picture1.png"/>
<image id="svg-image-2" y="234.615" x="1114.735"
- preserveAspectRatio="none" height="2009" width="2009" image-rendering="optimizeQuality"
+ preserveAspectRatio="none" height="2009" width="2009" image-rendering="{{ .Site.Params.start_screen_image_quality }}"
xlink:href="{{ .Site.BaseURL }}images/start-screen/picture2.png"/>
<image id="svg-image-1" y="234.615" x="1114.735"
- preserveAspectRatio="none" height="2009" width="2009" image-rendering="optimizeQuality"
+ preserveAspectRatio="none" height="2009" width="2009" image-rendering="{{ .Site.Params.start_screen_image_quality }}"
xlink:href="{{ .Site.BaseURL }}images/start-screen/picture3.png"/>
<g id="g3557">
@@ -103,6 +103,8 @@
</g>
<image y="-602.681" x="3238.513" id="image3651"
- preserveAspectRatio="none" height="470.669" width="470.669" transform="rotate(19)" image-rendering="optimizeQuality"
+ preserveAspectRatio="none" height="470.669" width="470.669"
+ transform="rotate({{ .Site.Params.logo_start_screen_rotation }})"
+ image-rendering="{{ .Site.Params.start_screen_image_quality }}"
xlink:href="{{ .Site.BaseURL }}{{ .Site.Params.logo }}"/>
</svg>
diff --git a/sample-config.toml b/sample-config.toml
index 72184c8..23e74df 100644
--- a/sample-config.toml
+++ b/sample-config.toml
@@ -25,12 +25,14 @@ googleAnalytics = ""
subtitle_link = ""
message = "I'm a optional important message!"
+ # Possible values are: auto | optimizeSpeed | optimizeQuality
+ start_screen_image_quality = "auto"
# Enter links for the buttons (button one has the house sign), shouldn't be left empty
button_1 = ""
button_2 = "playground/"
button_3 = "about/"
- keywords = "hugo, blog, Shapez, SVG, design"
-
- logo = "images/logo.png" \ No newline at end of file
+ logo = "images/logo.png"
+ logo_start_screen_rotation = "19"
+ keywords = "hugo, blog, Shapez, SVG, design" \ No newline at end of file