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 11:55:12 +0300
committerDominik Juelg <djuelg@gmx.de>2016-05-22 11:55:12 +0300
commit637689cba94a299e6f8617706872033875bf6ab2 (patch)
tree145a7c08abe46716551fb6082774c0c171ae7953
parent4462c6ebeb287e254e9ecee551580ad2c0f1d8b9 (diff)
added BaseUrl to images
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/head.html2
-rwxr-xr-xlayouts/partials/sidebar.svg2
-rwxr-xr-xlayouts/partials/start-screen.svg18
-rw-r--r--sample-config.toml2
8 files changed, 21 insertions, 11 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 60b5ac4..7fa6a55 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -33,4 +33,4 @@ googleAnalytics = ""
keywords = "hugo, blog, Shapez, SVG, design"
- logo = "/images/logo.png" \ No newline at end of file
+ logo = "images/logo.png" \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index c79656b..e3593b9 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -8,7 +8,7 @@
<div class="wrapper">
{{ range .Data.Pages.ByDate.Reverse }}
<div class="top-nav">
- <img src="{{ .Site.Params.logo }}">
+ <img src="{{ .Site.BaseURL }}{{ .Site.Params.logo }}">
<h3>{{ .Site.Title }}</h3>
<text>·</text>
<a href="{{ .Site.Params.button_1 }}">Home</a>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7985b19..c5951ce 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -7,7 +7,7 @@
<body>
<div class="wrapper">
<div class="top-nav">
- <img src="{{ .Site.Params.logo }}">
+ <img src="{{ .Site.BaseURL }}{{ .Site.Params.logo }}">
<h3><a href="{{ .Site.Params.button_3 }}" rel="me">{{ .Site.Title }}</a></h3>
<text>·</text>
<a href="{{ .Site.Params.button_1 }}">Home</a>
diff --git a/layouts/index.html b/layouts/index.html
index 0f253eb..cd559e5 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -7,7 +7,7 @@
<div class="wrapper">
<div class="start-screen">
<div class="mobile">
- <div><img src="{{ .Site.Params.logo }}"></div>
+ <div><img src="{{ .Site.BaseURL }}{{ .Site.Params.logo }}"></div>
<div><a href="{{ .Site.Params.button_2 }}">Playground</a></div>
<div><a href="{{ .Site.Params.button_3 }}" rel="me">About</a></div>
</div>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6ff070a..a6dd050 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -6,7 +6,7 @@
{{ .Hugo.Generator }}
<title>{{ .Site.Title }}</title>
{{ "<!-- Site Icon -->" | safeHTML }}
-<link rel="shortcut icon" href="{{ .Site.Params.logo }}">
+<link rel="shortcut icon" href="{{ .Site.BaseURL }}{{ .Site.Params.logo }}">
{{ "<!-- Load CSS config -->" | safeHTML }}
<link rel="stylesheet" href="/css/normalize.css" type="text/css">
<link rel="stylesheet" href="/css/default.css" type="text/css">
diff --git a/layouts/partials/sidebar.svg b/layouts/partials/sidebar.svg
index 652b52e..5cdc6d6 100755
--- a/layouts/partials/sidebar.svg
+++ b/layouts/partials/sidebar.svg
@@ -82,6 +82,6 @@
{{if or (not .NextInSection) (in .Permalink .Site.Params.button_2) }} fill="#4CABAB" style="cursor: not-allowed;" {{end}}/>
</a>
- <image y="797.66" x="123.81" xlink:href="{{ .Site.Params.logo }}" preserveAspectRatio="xMidYMid meet" height="230.68" width="230.68" image-rendering="optimizeQuality"/>
+ <image y="797.66" x="123.81" xlink:href="{{ .Site.BaseURL }}{{ .Site.Params.logo }}" preserveAspectRatio="xMidYMid meet" height="230.68" width="230.68" image-rendering="optimizeQuality"/>
</g>
</svg>
diff --git a/layouts/partials/start-screen.svg b/layouts/partials/start-screen.svg
index 7948fe6..669d664 100755
--- a/layouts/partials/start-screen.svg
+++ b/layouts/partials/start-screen.svg
@@ -33,9 +33,17 @@
<stop offset="100%" style="stop-color:rgb(255,116,0);stop-opacity:1" />
</linearGradient>
</defs>
- <image y="234.615" x="1114.735" id="svg-image-3" xlink:href="/images/start-screen/picture1.png" preserveAspectRatio="none" height="2009" width="2009" image-rendering="optimizeQuality"/>
- <image y="234.615" x="1114.735" id="svg-image-2" xlink:href="/images/start-screen/picture2.png" preserveAspectRatio="none" height="2009" width="2009" image-rendering="optimizeQuality"/>
- <image y="234.615" x="1114.735" id="svg-image-1" xlink:href="/images/start-screen/picture3.png" preserveAspectRatio="none" height="2009" width="2009" image-rendering="optimizeQuality"/>
+
+ <image id="svg-image-3" y="234.615" x="1114.735"
+ preserveAspectRatio="none" height="2009" width="2009" image-rendering="optimizeQuality"
+ 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"
+ 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"
+ xlink:href="{{ .Site.BaseURL }}images/start-screen/picture3.png"/>
+
<g id="g3557">
<g fill="#4cabab" id="g3559">
<path d="M169.38 3.41c37.375 29.125 76.875 66.875 99.5 95.25 55.375 69.375 92.375 147.75 108 228.25 2 10.875 4.375 23 5.125 26.75s1.875 18.375 2.5 32.5c3.75 82.25-15.125 217.875-41.375 296.25-18.5 55.125-26.375 85.5-37.5 143.125-10.125 52.875-15.5 114.25-15.5 176.25 0 57.5 3.375 100.125 12.875 161.875 2.625 16.625 10.125 52.625 15.75 75.625 34.75 140.75 101.125 272.625 194.25 386.125 39.875 48.625 93.375 101.75 143.125 142 28.5 23 78.5 58.25 105.75 74.375 4.5 2.625 17.125 10.75 28.125 18 118.5 77.875 250.125 124.75 437.5 155.75 15.125 2.5 35.625 5.875 45.625 7.5 49.875 8.25 110.75 15.75 166.875 20.625 15.875 1.25 30.625 3 33 3.75 2.375.625 4.5 1 4.75.875.125-.25-1.75-2.125-4.25-4.125-2.625-2-11.5-9.5-19.75-16.75-101.875-89.125-184.375-195.125-245.375-315.875-87.875-173.75-124.875-369.125-107-564.75 37.25-409.125 313.125-758.75 703.375-891.75 184.375-62.875 388-72.125 579.25-26.25 234.75 56.125 444 193.625 590.125 387.75 105.375 139.875 175.125 307.875 198.375 477.75 1.75 13 3.75 25.75 4.375 28.125s2.875 13.625 5 25c33.875 179.125 133.375 342.75 278.75 458 9.25 7.375 22.875 17.625 30.25 22.875 7.5 5.25 13.5 10 13.5 10.625 0 .5 2.375 2.5 5.375 4.375 2.875 1.875 7.75 5.5 10.875 8 13.375 10.75 51.625 38 80 56.75 98.25 65.125 215.375 127 442.375 233.875 19.5 9.25 35.75 16.75 36 16.75 2.125 0-1.625-13-7.75-26.875-9-20.375-22.875-61.875-28.625-85.625-9.25-38-13.75-70.25-15.75-111.25-4.25-90.875 13-179.75 51.625-265 18.75-41.5 61.25-153.625 84.75-223.75 47.125-141.25 71.25-255.625 80.375-381.875 12.625-173.75-5.75-361.875-50-513.5-30.875-105.75-75-203.375-149-329l-12.5-21.25-1933.625-.25-1933.5-.25 4.375 3.375z" id="path3561"/>
@@ -94,5 +102,7 @@
{{ if not (eq .Site.Params.subtitle_link "") }}</a>{{ end }}
</g>
- <image y="-602.681" x="3238.513" id="image3651" xlink:href="{{ .Site.Params.logo }}" preserveAspectRatio="none" height="470.669" width="470.669" transform="rotate(19)" image-rendering="optimizeQuality"/>
+ <image y="-602.681" x="3238.513" id="image3651"
+ preserveAspectRatio="none" height="470.669" width="470.669" transform="rotate(19)" image-rendering="optimizeQuality"
+ xlink:href="{{ .Site.BaseURL }}{{ .Site.Params.logo }}"/>
</svg>
diff --git a/sample-config.toml b/sample-config.toml
index 60b5ac4..7fa6a55 100644
--- a/sample-config.toml
+++ b/sample-config.toml
@@ -33,4 +33,4 @@ googleAnalytics = ""
keywords = "hugo, blog, Shapez, SVG, design"
- logo = "/images/logo.png" \ No newline at end of file
+ logo = "images/logo.png" \ No newline at end of file