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

github.com/rhnvrm/bodhi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohan Verma <hello@rohanverma.net>2020-06-02 10:16:18 +0300
committerRohan Verma <hello@rohanverma.net>2020-06-02 10:16:18 +0300
commita617d7b33ae9df6f139dbeebb55bccb1f4f29c18 (patch)
treee19448cf33edc4fce5eab2e9cd7268c220d619f2
parent7b36d255c2d32c33e282de4670e01be78d14e738 (diff)
fix: example site relURL for hugoThemes
-rw-r--r--exampleSite/config.toml4
-rw-r--r--exampleSite/content/about/_index.md25
-rw-r--r--exampleSite/content/contact/_index.md14
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/_default/search.html10
-rw-r--r--layouts/partials/display_meta.html4
-rw-r--r--layouts/partials/favicon.html6
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/header.html10
-rw-r--r--layouts/partials/list_preview.html2
-rw-r--r--layouts/partials/menu.html8
-rw-r--r--layouts/partials/nav.html4
-rw-r--r--layouts/partials/pagination.html4
13 files changed, 54 insertions, 41 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 4a375ee..af0c174 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -17,8 +17,8 @@ url = "/"
weight = 1
[[menu.main_right]]
-name = "contact"
-url = "/contact/"
+name = "about"
+url = "/about/"
weight = 1
[[menu.nav]]
diff --git a/exampleSite/content/about/_index.md b/exampleSite/content/about/_index.md
new file mode 100644
index 0000000..ebe55bd
--- /dev/null
+++ b/exampleSite/content/about/_index.md
@@ -0,0 +1,25 @@
++++
+title = "About"
+description = "Hugo, the world’s fastest framework for building websites"
+date = "2019-02-28"
+aliases = ["about-us","about-hugo","contact"]
+author = "Hugo Authors"
++++
+
+Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
+
+Hugo makes use of a variety of open source projects including:
+
+* https://github.com/yuin/goldmark
+* https://github.com/alecthomas/chroma
+* https://github.com/muesli/smartcrop
+* https://github.com/spf13/cobra
+* https://github.com/spf13/viper
+
+Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
+
+Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
+
+Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
+
+Learn more and contribute on [GitHub](https://github.com/gohugoio). \ No newline at end of file
diff --git a/exampleSite/content/contact/_index.md b/exampleSite/content/contact/_index.md
deleted file mode 100644
index 13ab193..0000000
--- a/exampleSite/content/contact/_index.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-Title: "Contact"
----
-
-# Social
-
-| Social | URL |
-|:--------:|--------------------------------------------|
-| github | https://github.com/rhnvrm |
-| keybase | https://keybase.io/rhnvrm |
-| twitter | https://twitter.com/rhnvrm |
-| linkedin | https://www.linkedin.com/in/rhnvrm/ |
-| youtube | https://www.youtube.com/user/TheRohanVerma |
-| email | hello at rohanverma.net |
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index b8b9ddc..289b88f 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -31,7 +31,7 @@
</script>
{{- end }}
- <script src="{{"/js/main.js" | absURL }}"></script>
+ <script src="{{ "/js/main.js" | relURL }}"></script>
</body>
</html>
diff --git a/layouts/_default/search.html b/layouts/_default/search.html
index 4f28fc4..914ff3d 100644
--- a/layouts/_default/search.html
+++ b/layouts/_default/search.html
@@ -1,14 +1,14 @@
{{ define "footerfiles" }}
-<script src="{{ "/js/jquery-3.3.1.min.js" | absURL }}"></script>
-<script src="{{ "/js/fuse.min.js" | absURL }}"></script>
-<script src="{{ "/js/jquery.mark.min.js" | absURL }}"></script>
-<script src="{{ "js/search.js" | absURL }}"></script>
+<script src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
+<script src="{{ "/js/fuse.min.js" | relURL }}"></script>
+<script src="{{ "/js/jquery.mark.min.js" | relURL }}"></script>
+<script src="{{ "js/search.js" | relURL }}"></script>
{{ end }}
{{ define "main" }}
<div>
<h2>Search</h2>
<div class="my-auto" >
- <form action="{{ "search" | absURL }}">
+ <form action="{{ "search" | relURL }}">
<input id="search-query" name="s" placeholder="search"/>
</form>
<span class="small">press enter to search</span>
diff --git a/layouts/partials/display_meta.html b/layouts/partials/display_meta.html
index c4b40a2..949a227 100644
--- a/layouts/partials/display_meta.html
+++ b/layouts/partials/display_meta.html
@@ -6,13 +6,13 @@
{{ with .Params.categories }}
categories:
{{ range . }}
- <a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ "/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
{{ with .Params.tags }}
tags:
{{ range . }}
- <a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
</div>
diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html
index 9804ef4..d2f98d3 100644
--- a/layouts/partials/favicon.html
+++ b/layouts/partials/favicon.html
@@ -1 +1,5 @@
-<link rel="icon" sizes="any" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAACnUlEQVRIx6XVzWtcVRjH8c/cebkJOq1gNDi1WJLWpC9YmqAUpVDRRQUXUruy1FURRP+AlLbYQB18W7vwD1BcqLjoQrSYbSHWRhiJxJQgdNTErDSTXNOZ62JeMve20zLxWVwuz/Oc7znneX7nHP6nZRAYkt/G2E1/aeQw5KzfEqHQkyoaXZ7AQfM2E1l7fGIZdjmTYu/wupzAiFNetUcg54wHUms/axe5e2zuJe8aR8WUmTvicXtpvWzYBYeFQhMueqRXWm/AqP2d/0NG+gds+LfzH1nvH/CLq60+NHzj115pvYv4j4v+9rzYdz60dm9AwY6Et2hQ0bILhvGHqOXJJrIKW4AxryRCgyZEKSFNikWJrL1bgIpPUyuIfKbe5cmKfaWmaExowYrYwBag4XYCUNdQT/ka6kZddlxexaV2iYM+Ds+g804astOzynbfr413WsmxTv4hT/UPiNv63zoJ/QGqZjqd+cmN+wnpbuIuC72gYM60W92AIAXKClKiycnKWvKWfQoWrQqaq28OPOi1RPqASVJCOirXOV6jYNyVNmDeF3hQSaRqU1HsS3WDSmJVG7JyvlZTUJJXtUbzhsq1rseaZ5wzYd0VH6iJ1Iw675jYjLIlkZqdppwQmlV2vXlDtvf+mI88J4MRt72PostOCvCEgrdRMOVNOez2kNPJNj5tUqZVrpcNY8zxVjTwon0oOdGaMOOoI0nAQFfVQ/nOt31wC8gLu/oUJgFzljoau+ZPLKh00ucsomq2o8DFdrQNWDBtXmTNt95Tw4pLZm1Yd820Vawp+15N5GfvuJlUYsPnfnDAuh8tKyJ21SmHxW641ZroutOOCFXcbKskg0e94ffUZbXXfEpI4xZST9vjPrbSfFwf3ubjupqYZHv2HylrtUljNvuGAAAAAElFTkSuQmCC">
+{{ if isset .Site.Params "favicon" -}}
+ <link rel="icon" type="image/png" href={{ .Site.Params.favicon | relURL }} />
+{{ else }}
+ <link rel="icon" sizes="any" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAACnUlEQVRIx6XVzWtcVRjH8c/cebkJOq1gNDi1WJLWpC9YmqAUpVDRRQUXUruy1FURRP+AlLbYQB18W7vwD1BcqLjoQrSYbSHWRhiJxJQgdNTErDSTXNOZ62JeMve20zLxWVwuz/Oc7znneX7nHP6nZRAYkt/G2E1/aeQw5KzfEqHQkyoaXZ7AQfM2E1l7fGIZdjmTYu/wupzAiFNetUcg54wHUms/axe5e2zuJe8aR8WUmTvicXtpvWzYBYeFQhMueqRXWm/AqP2d/0NG+gds+LfzH1nvH/CLq60+NHzj115pvYv4j4v+9rzYdz60dm9AwY6Et2hQ0bILhvGHqOXJJrIKW4AxryRCgyZEKSFNikWJrL1bgIpPUyuIfKbe5cmKfaWmaExowYrYwBag4XYCUNdQT/ka6kZddlxexaV2iYM+Ds+g804astOzynbfr413WsmxTv4hT/UPiNv63zoJ/QGqZjqd+cmN+wnpbuIuC72gYM60W92AIAXKClKiycnKWvKWfQoWrQqaq28OPOi1RPqASVJCOirXOV6jYNyVNmDeF3hQSaRqU1HsS3WDSmJVG7JyvlZTUJJXtUbzhsq1rseaZ5wzYd0VH6iJ1Iw675jYjLIlkZqdppwQmlV2vXlDtvf+mI88J4MRt72PostOCvCEgrdRMOVNOez2kNPJNj5tUqZVrpcNY8zxVjTwon0oOdGaMOOoI0nAQFfVQ/nOt31wC8gLu/oUJgFzljoau+ZPLKh00ucsomq2o8DFdrQNWDBtXmTNt95Tw4pLZm1Yd820Vawp+15N5GfvuJlUYsPnfnDAuh8tKyJ21SmHxW641ZroutOOCFXcbKskg0e94ffUZbXXfEpI4xZST9vjPrbSfFwf3ubjupqYZHv2HylrtUljNvuGAAAAAElFTkSuQmCC">
+{{ end -}}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 3785abd..b9c4956 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,7 +2,7 @@
{{ if .Site.Params.Avatar }}
<div class="avatar">
<a href="{{ .Site.BaseURL }}">
- <img src="{{ .Site.Params.Avatar | absURL }}" alt="{{ .Site.Title }}" />
+ <img src="{{ .Site.Params.Avatar | relURL }}" alt="{{ .Site.Title }}" />
</a>
</div>
{{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index cdba2fc..2d9348e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -8,9 +8,7 @@
<title>{{ $title }} - {{ $siteTitle }}</title>
{{ end -}}
-{{ if isset .Site.Params "favicon" -}}
- <link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />
-{{ end -}}
+
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
@@ -22,14 +20,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
-<link rel="stylesheet" href="{{ "/css/normalize.min.css" | absURL }}" />
-<link rel="stylesheet" type="text/css" href="{{ "/css/style.css" | absURL }}" />
+<link rel="stylesheet" href="{{ "/css/normalize.min.css" | relURL }}" />
+<link rel="stylesheet" type="text/css" href="{{ "/css/style.css" | relURL }}" />
<link href="https://fonts.googleapis.com/css?family=Inter|Source+Serif+Pro" rel="stylesheet" type="text/css" />
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
{{- else if (isset .Site.Params "social") -}}
-<script src="{{ "/js/feather.min.js" | absURL }}"></script>
+<script src="{{ "/js/feather.min.js" | relURL }}"></script>
{{ end }}
{{ partial "favicon.html" . }} \ No newline at end of file
diff --git a/layouts/partials/list_preview.html b/layouts/partials/list_preview.html
index 2abb8e3..37eed05 100644
--- a/layouts/partials/list_preview.html
+++ b/layouts/partials/list_preview.html
@@ -1,5 +1,5 @@
<h2>
- <a href="{{ .RelPermalink | absURL }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a>
+ <a href="{{ .RelPermalink | relURL }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a>
</h2>
{{ if in (slice "single" "") .Layout }}
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 911d269..4fbf912 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -2,23 +2,23 @@
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{if eq $currentPage.Params.url .URL }}<b>{{end}}
- <a href="{{ .URL | absURL }}">{{ .Name }}</a>
+ <a href="{{ .URL | relURL }}">{{ .Name }}</a>
{{if eq $currentPage.Params.url .URL }}</b>{{end}}
{{ end }}
<span class="right">
{{ range .Site.Menus.main_right }}
{{if eq $currentPage.Params.url .URL }}<b>{{end}}
- <a href="{{ .URL | absURL }}">{{ .Name }}</a>
+ <a href="{{ .URL | relURL }}">{{ .Name }}</a>
{{if eq $currentPage.Params.url .URL }}</b>{{end}}
{{ end }}
{{- range $index, $key := .Site.Params.Social -}}
- <a href="{{ $key.url | absURL }}" title="{{ $key.name }}">
+ <a href="{{ $key.url | relURL }}" title="{{ $key.name }}">
<i data-feather="{{ $key.icon }}"></i>
</a>
{{- end -}}
{{if eq $currentPage.Params.url "/search/" }}<b>{{end}}
{{if and (not (isset .Site.Params "disableSearch")) (not (eq .Site.Params.disableSearch true)) }}
- <a href="{{ "/search" | absURL }}">search<svg aria-hidden="true" class="i-search" viewBox="0 0 32 32" width="10" height="10" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"><circle cx="14" cy="14" r="12"></circle><path d="M23 23l7 7"></path></svg></a>
+ <a href="{{ "/search" | relURL }}">search<svg aria-hidden="true" class="i-search" viewBox="0 0 32 32" width="10" height="10" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"><circle cx="14" cy="14" r="12"></circle><path d="M23 23l7 7"></path></svg></a>
{{end}}
{{if eq $currentPage.Params.url "/search/" }}</b>{{end}}
</span>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index b1e5866..f949d80 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -7,7 +7,7 @@
<ul>
<li>
{{ if eq $currentPage $menuPage }}<b>{{ end }}
- <a href="{{.URL | absURL }}">
+ <a href="{{.URL | relURL }}">
<span>{{ .Name }} {{ if .Children }}/{{ end }}</span>
</a>
{{ if eq $currentPage $menuPage }}</b>{{ end }}
@@ -18,7 +18,7 @@
<ul>
<li>
{{ if eq $currentPage $menuChildPage }}<b>{{ end }}
- <a href="{{ .URL | absURL }}">{{ .Name }}</a>
+ <a href="{{ .URL | relURL }}">{{ .Name }}</a>
{{ if eq $currentPage $menuChildPage }}</b>{{ end }}
</li>
</ul>
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index fe9fed5..2af3328 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -1,12 +1,12 @@
<div id="pagination">
{{ if .Paginator.HasPrev }}
-<a href="{{ .Paginator.Prev.URL | absURL }}"><</a>
+<a href="{{ .Paginator.Prev.URL | relURL }}"><</a>
{{ else }}
&lt;
{{ end }}
{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}
{{ if .Paginator.HasNext }}
- <a href="{{ .Paginator.Next.URL | absURL }}">></a>
+ <a href="{{ .Paginator.Next.URL | relURL }}">></a>
{{ else }}
&gt;
{{ end }}