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

github.com/jeblister/kube.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed <jeblister@gmail.com>2018-01-18 01:31:49 +0300
committerGitHub <noreply@github.com>2018-01-18 01:31:49 +0300
commit1372deb2fb7fe8d4e05974acd4b96568ea568615 (patch)
treef94e0273a2d7c5eb99e80d8c992909d6b1703275
parentecdfa4538946b92455383606756e93a4af2c3883 (diff)
parentb606e65da0456af7e3d793dadf6bdf4d827f5100 (diff)
Merge pull request #13 from mnewswanger/master
Update paths to support hugo relURL for use in subfolder of a domain
-rw-r--r--layouts/_default/baseof.html134
-rw-r--r--layouts/_default/single.html34
-rw-r--r--layouts/blog/single.html2
-rw-r--r--layouts/docs/single.html46
-rw-r--r--layouts/index.html118
-rw-r--r--layouts/partials/footer.html2
6 files changed, 168 insertions, 168 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index bfbadce..cc107da 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,67 +1,67 @@
-<!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}">
-
-<head>
- {{ .Hugo.Generator }}
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
-
- {{ with .Description }}
- <meta name="description" content="{{ . }}"> {{ end }}
- <!-- noindex meta -->
- {{ $default_noindex_kinds := slice "section" "taxonomy" "taxonomyTerm" }}
- {{ $noindex_kinds := .Site.Params.noindex_kinds | default $default_noindex_kinds }}
- {{ $is_noindex_true := and (isset .Params "noindex") .Params.noindex }}
- {{ if or (in $noindex_kinds .Kind) ($is_noindex_true) }}
- <meta name="robots" content="noindex">
- {{ end }}
-
- {{ partial "meta/name-author" . }}
- {{ template "_internal/opengraph.html" . }}
- {{ partial "meta/ogimage" . }}
- <!-- Site verification -->
- {{ if .IsHome }} {{ partial "site-verification" . }} {{ end }}
- <!-- add googleAnalytics in config.toml -->
- {{ template "_internal/google_analytics_async.html" . }}
- {{ if .RSSLink }}
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }}
-
- <link rel="canonical" href="{{ .Permalink }}"> {{ if (isset .Params "prev") }}
- <link rel="prev" href="{{ .Params.prev }}"> {{ end }} {{ if (isset .Params "next") }}
- <link rel="next" href="{{ .Params.next }}"> {{ end }}
-
- {{ partial "favicon" . }}
-
- <link href="/css/font.css" rel="stylesheet" type="text/css">
- <link href="/css/kube.min.css" rel="stylesheet" type="text/css">
- <link href="/css/kube.legenda.css" rel="stylesheet" type="text/css">
- <link href="/css/highlight.css" rel="stylesheet" type="text/css">
- <link href="/css/master.css" rel="stylesheet" type="text/css">
- <link href="/css/kube.demo.css" rel="stylesheet" type="text/css">
-<!-- Your own theme here -->
- <link href="/css/custom.css" rel="stylesheet" type="text/css">
-<!-- js vendor -->
- <script src="/js/jquery-2.1.4.min.js" type="text/javascript">
- </script>
-
- <script type="text/javascript" src="/js/tocbot.min.js"></script>
-</head>
-
-
-<body class="page-kube">
- <header>{{ block "header" . }}{{ end }}</header>
- <main>{{ block "main" . }}{{ end }}</main>
- <footer>{{ block "footer" . }}{{ end }}</footer>
-
-
- <script src="/js/kube.js" type="text/javascript">
- </script>
- <script src="/js/kube.legenda.js" type="text/javascript">
- </script>
- <script src="/js/master.js" type="text/javascript">
- </script>
-</body>
-
-</html>
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+
+<head>
+ {{ .Hugo.Generator }}
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
+
+ {{ with .Description }}
+ <meta name="description" content="{{ . }}"> {{ end }}
+ <!-- noindex meta -->
+ {{ $default_noindex_kinds := slice "section" "taxonomy" "taxonomyTerm" }}
+ {{ $noindex_kinds := .Site.Params.noindex_kinds | default $default_noindex_kinds }}
+ {{ $is_noindex_true := and (isset .Params "noindex") .Params.noindex }}
+ {{ if or (in $noindex_kinds .Kind) ($is_noindex_true) }}
+ <meta name="robots" content="noindex">
+ {{ end }}
+
+ {{ partial "meta/name-author" . }}
+ {{ template "_internal/opengraph.html" . }}
+ {{ partial "meta/ogimage" . }}
+ <!-- Site verification -->
+ {{ if .IsHome }} {{ partial "site-verification" . }} {{ end }}
+ <!-- add googleAnalytics in config.toml -->
+ {{ template "_internal/google_analytics_async.html" . }}
+ {{ if .RSSLink }}
+ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }}
+
+ <link rel="canonical" href="{{ .Permalink }}"> {{ if (isset .Params "prev") }}
+ <link rel="prev" href="{{ .Params.prev }}"> {{ end }} {{ if (isset .Params "next") }}
+ <link rel="next" href="{{ .Params.next }}"> {{ end }}
+
+ {{ partial "favicon" . }}
+
+ <link href="{{ "/css/font.css" | relURL }}" rel="stylesheet" type="text/css">
+ <link href="{{ "/css/kube.min.css" | relURL }}" rel="stylesheet" type="text/css">
+ <link href="{{ "/css/kube.legenda.css" | relURL }}" rel="stylesheet" type="text/css">
+ <link href="{{ "/css/highlight.css" | relURL }}" rel="stylesheet" type="text/css">
+ <link href="{{ "/css/master.css" | relURL }}" rel="stylesheet" type="text/css">
+ <link href="{{ "/css/kube.demo.css" | relURL }}" rel="stylesheet" type="text/css">
+<!-- Your own theme here -->
+ <link href="{{ "/css/custom.css" | relURL }}" rel="stylesheet" type="text/css">
+<!-- js vendor -->
+ <script src="{{ "/js/jquery-2.1.4.min.js" | relURL }}" type="text/javascript">
+ </script>
+
+ <script type="text/javascript" src="{{ "/js/tocbot.min.js" | relURL }}"></script>
+</head>
+
+
+<body class="page-kube">
+ <header>{{ block "header" . }}{{ end }}</header>
+ <main>{{ block "main" . }}{{ end }}</main>
+ <footer>{{ block "footer" . }}{{ end }}</footer>
+
+
+ <script src="{{ "/js/kube.js" | relURL }}" type="text/javascript">
+ </script>
+ <script src="{{ "/js/kube.legenda.js" | relURL }}" type="text/javascript">
+ </script>
+ <script src="{{ "/js/master.js" | relURL }}" type="text/javascript">
+ </script>
+</body>
+
+</html>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 2e3618e..ed6341c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,18 +1,18 @@
-{{ define "title"}} {{ .Title}} {{end}}
-{{ define "header"}} {{ partial "header" .}} {{end}}
-
-{{ define "main" }}
-
-<div id="hero" class="wrap">
- <h1>{{.Title }}</h1>
- <p>{{.Params.description}}</p>
-</div>
-<ul id="posts">
-
- {{ .Content }}
-
-</ul>
-{{ end }}
-{{ define "footer" }}
- {{ partial "footer" . }}
+{{ define "title"}} {{ .Title}} {{end}}
+{{ define "header"}} {{ partial "header" .}} {{end}}
+
+{{ define "main" }}
+
+<div id="hero" class="wrap">
+ <h1>{{.Title }}</h1>
+ <p>{{.Params.description}}</p>
+</div>
+<ul id="posts">
+
+ {{ .Content }}
+
+</ul>
+{{ end }}
+{{ define "footer" }}
+ {{ partial "footer" . }}
{{ end }} \ No newline at end of file
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index de7788a..8148883 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -37,7 +37,7 @@
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="" tabindex="-1" value=""></div>
</form>
- <div class="form-subscribe-twitter"><div>or</div> <a href="http://twitter.com/jebli_7">Follow us on Twitter</a></div>
+ <div class="form-subscribe-twitter"><div>or</div> <a href="https://twitter.com/jebli_7">Follow us on Twitter</a></div>
</div>
</div>
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
index 0f0f153..ed942e9 100644
--- a/layouts/docs/single.html
+++ b/layouts/docs/single.html
@@ -1,23 +1,23 @@
-{{ define "title"}} {{ .Title}} {{end}}
-{{ define "header"}} {{ partial "header" .}} {{end}}
-{{ define "main"}}
- <div id="main">
- <div id="hero">
- <h1> {{ .Title}} </h1>
- <p class="hero-lead">
- {{ .Params.bref | safeHTML }}.
- </p>
-
- </div>
- <div id="kube-component" class="content">
- {{ partial "toc" .}}
-
- {{ .Content}}
-<!-- Inject script tag in this template -->
- {{if .Params.script}}
- {{ $script := (delimit (slice "scripts" .Params.script) "/")}}
- {{ partial (string $script) .}}
- {{end }}
- </div>
- </div>
-{{ end }}
+{{ define "title"}} {{ .Title}} {{end}}
+{{ define "header"}} {{ partial "header" .}} {{end}}
+{{ define "main"}}
+ <div id="main">
+ <div id="hero">
+ <h1> {{ .Title}} </h1>
+ <p class="hero-lead">
+ {{ .Params.bref | safeHTML }}.
+ </p>
+
+ </div>
+ <div id="kube-component" class="content">
+ {{ partial "toc" .}}
+
+ {{ .Content}}
+<!-- Inject script tag in this template -->
+ {{if .Params.script}}
+ {{ $script := (delimit (slice "scripts" .Params.script) "/")}}
+ {{ partial (string $script) .}}
+ {{end }}
+ </div>
+ </div>
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 43fdf85..0c87e8e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,59 +1,59 @@
-{{ define "title"}} {{ .Site.Title}} {{end}}
-{{ define "header"}} {{ partial "header" .}} {{end}}
-{{ define "main"}}
-
-<div id="main">
- <div id="hero">
- <h1>{{.Title}}</h1>
- <p>{{.Description}}</p>
- </div>
- <div id="action-buttons">
- <a class="button primary big" href="https://github.com/jeblister/kube/releases" onclick="_gaq.push(['_trackEvent', 'kube', 'download']);">Download</a> <a class="button outline big" href="https://github.com/jeblister/kube" onclick="_gaq.push(['_trackEvent', 'kube', 'github']);">View on Github</a>
- <p>Zip-archive, includes all the source and site example files</p>
- </div>
- <div class="message focus" data-component="message"> <span class="close small"></span>
- <a class="button inverted small " href="https://imperavi.com/kube/" >Kube </a> from <a href="https://imperavi.com/">imperavi</a> is an awesome <mark>CSS & JS Framework</mark> and i designed this template for <a href="https://gohugo.io">hugo</a> with the same original philosophy !
- </div>
- <div id="kube-features">
- <div class="row gutters">
- <div class="col col-4 item">
- <figure>
- <img alt="Baseline" height="48" src="/img/kube/icon-baseline.png" width="48">
- </figure>
- <h3>Horizontal Rhythm</h3>
- <p>In Kube horizontal rhythm based on a 4px vertical grid is something that we are truly proud of.</p>
- </div>
- <div class="col col-4 item">
- <figure>
- <img alt="Typography" height="48" src="/img/kube/icon-typo.png" width="48">
- </figure>
- <h3>Typography</h3>
- <p>We obsess over typography, and it shows throughout Kube.</p>
- </div>
- <div class="col col-4 item">
- <figure>
- <img alt="Minimalism" height="48" src="/img/kube/icon-minimalism.png" width="48">
- </figure>
- <h3>Minimalism</h3>
- <p>We strongly believe in minimalism as a general concept as well as a practical approach to everyday life.</p>
- </div>
- </div>
- <div class="row gutters">
- <div class="col col-4 item">
- <h4>Mobile-first Design</h4>
- <p>Every element in kube is mobile-first and fully embraces latest and greatest tech.</p>
- </div>
- <div class="col col-4 item">
- <h4>Cross-browser</h4>
- <p>Kube works in all modern browsers, both desktop and mobile, including latest Chrome, Firefox, Safari, Opera, IE and Edge.</p>
- </div>
- <div class="col col-4 item">
- <h4>License</h4>
- <p>Kube licensed under <a href="http://opensource.org/licenses/MIT">MIT</a>.<br>
- Kube Framework is absolutely free for personal or commercial use.</p>
- </div>
- </div>
-</div>
-</div>
-{{ end }}
-{{ define "footer"}} {{ partial "footer" .}} {{end}}
+{{ define "title"}} {{ .Site.Title}} {{end}}
+{{ define "header"}} {{ partial "header" .}} {{end}}
+{{ define "main"}}
+
+<div id="main">
+ <div id="hero">
+ <h1>{{.Title}}</h1>
+ <p>{{.Description}}</p>
+ </div>
+ <div id="action-buttons">
+ <a class="button primary big" href="https://github.com/jeblister/kube/releases" onclick="_gaq.push(['_trackEvent', 'kube', 'download']);">Download</a> <a class="button outline big" href="https://github.com/jeblister/kube" onclick="_gaq.push(['_trackEvent', 'kube', 'github']);">View on Github</a>
+ <p>Zip-archive, includes all the source and site example files</p>
+ </div>
+ <div class="message focus" data-component="message"> <span class="close small"></span>
+ <a class="button inverted small " href="https://imperavi.com/kube/" >Kube </a> from <a href="https://imperavi.com/">imperavi</a> is an awesome <mark>CSS & JS Framework</mark> and i designed this template for <a href="https://gohugo.io">hugo</a> with the same original philosophy !
+ </div>
+ <div id="kube-features">
+ <div class="row gutters">
+ <div class="col col-4 item">
+ <figure>
+ <img alt="Baseline" height="48" src="{{ "/img/kube/icon-baseline.png" | relURL }}" width="48">
+ </figure>
+ <h3>Horizontal Rhythm</h3>
+ <p>In Kube horizontal rhythm based on a 4px vertical grid is something that we are truly proud of.</p>
+ </div>
+ <div class="col col-4 item">
+ <figure>
+ <img alt="Typography" height="48" src="{{ "/img/kube/icon-typo.png" | relURL }}" width="48">
+ </figure>
+ <h3>Typography</h3>
+ <p>We obsess over typography, and it shows throughout Kube.</p>
+ </div>
+ <div class="col col-4 item">
+ <figure>
+ <img alt="Minimalism" height="48" src="{{ "/img/kube/icon-minimalism.png" | relURL }}" width="48">
+ </figure>
+ <h3>Minimalism</h3>
+ <p>We strongly believe in minimalism as a general concept as well as a practical approach to everyday life.</p>
+ </div>
+ </div>
+ <div class="row gutters">
+ <div class="col col-4 item">
+ <h4>Mobile-first Design</h4>
+ <p>Every element in kube is mobile-first and fully embraces latest and greatest tech.</p>
+ </div>
+ <div class="col col-4 item">
+ <h4>Cross-browser</h4>
+ <p>Kube works in all modern browsers, both desktop and mobile, including latest Chrome, Firefox, Safari, Opera, IE and Edge.</p>
+ </div>
+ <div class="col col-4 item">
+ <h4>License</h4>
+ <p>Kube licensed under <a href="https://opensource.org/licenses/MIT">MIT</a>.<br>
+ Kube Framework is absolutely free for personal or commercial use.</p>
+ </div>
+ </div>
+</div>
+</div>
+{{ end }}
+{{ define "footer"}} {{ partial "footer" .}} {{end}}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 50e55c6..212dd10 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -12,7 +12,7 @@
<a href="/docs/">Docs</a>
</li>
<li>
- <a href="http://twitter.com/{{.Site.Params.twitter}}">Give a shout-out on Twitter!</a>
+ <a href="https://twitter.com/{{.Site.Params.twitter}}">Give a shout-out on Twitter!</a>
</li>
</ul>
</nav>