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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/scss/custom.scss1
-rw-r--r--assets/scss/style.scss2
-rw-r--r--exampleSite/content/post/rich-content/index.md8
-rw-r--r--layouts/_default/archives.html2
-rw-r--r--layouts/partials/article-list/compact.html2
-rw-r--r--layouts/partials/article-list/default.html2
-rw-r--r--layouts/partials/article-list/tile.html2
-rw-r--r--layouts/partials/article/components/details.html6
-rw-r--r--layouts/partials/article/components/tags.html2
-rw-r--r--layouts/partials/sidebar/left.html2
-rw-r--r--layouts/partials/widget/tag-cloud.html2
11 files changed, 13 insertions, 18 deletions
diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss
new file mode 100644
index 0000000..61fa80f
--- /dev/null
+++ b/assets/scss/custom.scss
@@ -0,0 +1 @@
+/* Place your custom SCSS in HUGO_SITE_FOLDER/assets/scss/custom.scss */ \ No newline at end of file
diff --git a/assets/scss/style.scss b/assets/scss/style.scss
index bcbd41d..3e4b56a 100644
--- a/assets/scss/style.scss
+++ b/assets/scss/style.scss
@@ -25,6 +25,8 @@
@import "partials/layout/404.scss";
@import "partials/layout/search.scss";
+@import "custom.scss";
+
a {
text-decoration: none;
color: var(--accent-color);
diff --git a/exampleSite/content/post/rich-content/index.md b/exampleSite/content/post/rich-content/index.md
index 5ff41d7..407c539 100644
--- a/exampleSite/content/post/rich-content/index.md
+++ b/exampleSite/content/post/rich-content/index.md
@@ -13,14 +13,6 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
<!--more-->
---
-## Instagram Simple Shortcode
-
-{{< instagram_simple BGvuInzyFAe hidecaption >}}
-
-<br>
-
----
-
## YouTube Privacy Enhanced Shortcode
{{< youtube ZJthWmvUzzc >}}
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html
index 0304832..d2326ee 100644
--- a/layouts/_default/archives.html
+++ b/layouts/_default/archives.html
@@ -19,7 +19,7 @@
{{ range $filtered.GroupByDate "2006" }}
{{ $id := lower (replace .Key " " "-") }}
<div class="archives-group" id="{{ $id }}">
- <h2 class="archives-date section-title"><a href="{{ $.Permalink }}#{{ $id }}">{{ .Key }}</a></h2>
+ <h2 class="archives-date section-title"><a href="{{ $.RelPermalink }}#{{ $id }}">{{ .Key }}</a></h2>
<div class="article-list--compact">
{{ range .Pages }}
{{ partial "article-list/compact" . }}
diff --git a/layouts/partials/article-list/compact.html b/layouts/partials/article-list/compact.html
index ddef710..cedef2a 100644
--- a/layouts/partials/article-list/compact.html
+++ b/layouts/partials/article-list/compact.html
@@ -1,5 +1,5 @@
<article>
- <a href="{{ .Permalink }}">
+ <a href="{{ .RelPermalink }}">
<div class="article-details">
<h2 class="article-title">
{{- .Title -}}
diff --git a/layouts/partials/article-list/default.html b/layouts/partials/article-list/default.html
index 106d8d6..aeb5bb1 100644
--- a/layouts/partials/article-list/default.html
+++ b/layouts/partials/article-list/default.html
@@ -2,7 +2,7 @@
<article class="{{ if $image.exists }}has-image{{ end }}">
{{ if $image.exists }}
<div class="article-image">
- <a href="{{ .Permalink }}">
+ <a href="{{ .RelPermalink }}">
{{ if $image.resource }}
{{- $thumbnail := $image.resource.Fill "800x250" -}}
{{- $thumbnailRetina := $image.resource.Fill "1600x500" -}}
diff --git a/layouts/partials/article-list/tile.html b/layouts/partials/article-list/tile.html
index 0edf2e5..f76f596 100644
--- a/layouts/partials/article-list/tile.html
+++ b/layouts/partials/article-list/tile.html
@@ -1,6 +1,6 @@
{{ $image := partialCached "helper/image" (dict "Context" .context "Type" .Type) .context.RelPermalink .Type }}
<article class="{{ if $image.exists }}has-image{{ end }}">
- <a href="{{ .context.Permalink }}">
+ <a href="{{ .context.RelPermalink }}">
{{ if $image.exists }}
<div class="article-image">
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html
index 32d7f37..7650704 100644
--- a/layouts/partials/article/components/details.html
+++ b/layouts/partials/article/components/details.html
@@ -7,7 +7,7 @@
{{ if and $image.exists $image.resource }}
{{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}}
{{- $20x := $imageRaw.Fill "20x20 smart" -}}
- <a href="{{ .Permalink }}"
+ <a href="{{ .RelPermalink }}"
class="color-tag"
data-image="{{ $20x.RelPermalink }}"
data-key="{{ $context.Slug }}"
@@ -15,14 +15,14 @@
{{ .LinkTitle }}
</a>
{{ else }}
- <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
+ <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
{{ end }}
</header>
{{ end }}
<h2 class="article-title">
- <a href="{{ .Permalink }}">
+ <a href="{{ .RelPermalink }}">
{{- .Title -}}
</a>
</h2>
diff --git a/layouts/partials/article/components/tags.html b/layouts/partials/article/components/tags.html
index 3eab790..aae38b4 100644
--- a/layouts/partials/article/components/tags.html
+++ b/layouts/partials/article/components/tags.html
@@ -1,7 +1,7 @@
{{ if .Params.Tags }}
<section class="article-tags">
{{ range (.GetTerms "tags") }}
- <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
+ <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
</section>
{{ end }} \ No newline at end of file
diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html
index f1ab355..7ae24a4 100644
--- a/layouts/partials/sidebar/left.html
+++ b/layouts/partials/sidebar/left.html
@@ -31,7 +31,7 @@
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
<li {{ if $active }} class='current' {{ end }}>
- <a href='{{ .URL | absLangURL }}'>
+ <a href='{{ .URL | relURL }}'>
{{ if .Pre }}
{{ partial "helper/icon" .Pre }}
{{ end }}
diff --git a/layouts/partials/widget/tag-cloud.html b/layouts/partials/widget/tag-cloud.html
index 8f201a5..39e7c9a 100644
--- a/layouts/partials/widget/tag-cloud.html
+++ b/layouts/partials/widget/tag-cloud.html
@@ -6,7 +6,7 @@
<div class="tagCloud-tags">
{{ range first .Site.Params.widgets.tagCloud.limit .Site.Taxonomies.tags.ByCount }}
- <a href="{{ .Page.Permalink }}" class="font_size_{{ .Count }}">
+ <a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
{{ .Page.Title }}
</a>
{{ end }}