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

github.com/leonhe/hugo_eiio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuanfei He <lhe868@gmail.com>2020-04-19 09:22:00 +0300
committerYuanfei He <lhe868@gmail.com>2020-04-19 09:22:00 +0300
commit3921f96b905b9081bc44e1e02b05ecab0ed3d8f0 (patch)
tree48506725e465c7cbc5c131c72428e551c438542a
parent23a16b3f8888d752243b7f4eb870032b5aa31ac9 (diff)
:bug: fixed #6 #7develop
-rw-r--r--README.md4
-rw-r--r--layouts/_default/list.html3
-rw-r--r--layouts/_default/single.html8
-rw-r--r--layouts/index.html3
-rw-r--r--layouts/partials/post/tag/link.html8
-rw-r--r--layouts/partials/post/tag/list.html3
-rw-r--r--theme.toml8
7 files changed, 26 insertions, 11 deletions
diff --git a/README.md b/README.md
index 56f0676..d256c58 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,10 @@ PaginatePath="page"
pygmentsuseclasses = true
disqusShortname = "user id"
googleAnalytics='google analytics code'
+
+preserveTaxonomyNames = false
+disablePathToLower = true
+hasCJKLanguage = true
[taxonomies]
category = "categories"
tag = "tags"
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2abae17..48536e6 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -6,7 +6,6 @@
<hr/>
{{ range .Data.Pages.GroupByDate "2006" }}
<h3>{{ .Key }}</h3>
- <div itemscorpe itemtype="http://schema.org/ItemList" itemListElement>
<ul>
{{ range .Pages }}
<li>{{.Date.Format "Mon, Jan 2, 2006" }}&nbsp;<a itemListElement itemtype="http://schema.org/ListItem" href="{{.Permalink}}">
@@ -15,7 +14,7 @@
<meta itemprop="url" content="{{.Permalink}}"/>
</li>
{{ end }}
- </ul></div>
+ </ul>
{{ end }}
<hr/>
{{ partial "addthis" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e3b8ce4..aec7e8a 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -17,7 +17,13 @@
<p class="categories">
<ion-icon name="folder"></ion-icon>
{{ range . }}
- <a class="btn btn-default btn-xs text-capitalize" href="/categories/{{ . | urlize }}"> {{ . }}</a>
+{{ $namec := . }}
+{{ $special_word := dict "#" "%23" }}
+{{ range $elem_key,$elem_val := $special_word }}
+{{ $namec = replace $namec $elem_key $elem_val }}
+{{ end }}
+
+ <a class="btn btn-default btn-xs text-capitalize" href="/categories/{{ $namec }}/"> {{ . }}</a>
{{ end }}
</p>
{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 1806ffe..ccbe88a 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -8,7 +8,6 @@
<a target="_blank" href="https://twitter.com/{{ .Site.Params.twitter }}"><ion-icon name="logo-twitter"></ion-icon></a>
<a target="_blank" href="mailto:{{ .Site.Params.email }}"><ion-icon name="ios-mail"></ion-icon></a>
-
<a target="_blank" href="https://github.com/{{ .Site.Params.github }}"><ion-icon name="logo-github"></ion-icon></a>
<a target="_blank" class="rss" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}"><ion-icon name="logo-rss"></ion-icon></a>
@@ -17,7 +16,7 @@
{{ range $key, $value := .Site.Taxonomies }}
{{ if eq $key "categories" }}
<p class="categories"><ion-icon name="folder"></ion-icon>
- {{ range first 10 $value.ByCount }}<a class="btn btn-default btn-xs text-capitalize" href="/{{ $key }}/{{ .Name | urlize }}">{{ .Name }}</a>&nbsp;{{ end }}
+ {{ range first 10 $value.ByCount }}<a class="btn btn-default btn-xs text-capitalize" href="/{{ $key }}/{{ replace .Name "#" "%23" }}/">{{ .Name }}</a>&nbsp;{{ end }}
</p>
{{ end }}
{{ end }}
diff --git a/layouts/partials/post/tag/link.html b/layouts/partials/post/tag/link.html
index 8289271..a813287 100644
--- a/layouts/partials/post/tag/link.html
+++ b/layouts/partials/post/tag/link.html
@@ -1 +1,7 @@
-<a itemprop="keywords" class="label label-danger" href="/tags/{{ . | urlize }}">{{ . }}</a>
+ {{ $formatName := . }}
+{{ $special_word := dict "#" "%23" }}
+{{ range $elem_key,$elem_val := $special_word }}
+{{ $formatName = replace $formatName $elem_key $elem_val }}
+{{ end }}
+
+<a itemprop="keywords" class="label label-danger" href="/tags/{{ $formatName }}/">{{ . }}</a>
diff --git a/layouts/partials/post/tag/list.html b/layouts/partials/post/tag/list.html
index 7614a56..a98d12a 100644
--- a/layouts/partials/post/tag/list.html
+++ b/layouts/partials/post/tag/list.html
@@ -1,4 +1,5 @@
{{ with .Params.tags }}
-<p><ion-icon name="pricetag"></ion-icon> {{ delimit (apply (apply (sort .) "partial" "post/tag/link" ".") "chomp" ".") " " }}</p>
+
+<p><ion-icon name="pricetag"></ion-icon> {{ delimit (apply (apply (sort .) "partial" "post/tag/link" ".") "chomp" ".") " " }}</p>
{{ end }}
diff --git a/theme.toml b/theme.toml
index 57a6068..ad33630 100644
--- a/theme.toml
+++ b/theme.toml
@@ -5,17 +5,17 @@ name = "eiio"
license = "MIT"
licenselink = "https://github.com/leonhe/hugo_eiio/master/LICENSE.md"
description = "personal blog&project theme"
-homepage = "https://hii8.com/"
-tags = ["blog"]
+homepage = "https://heyuanfei.com/"
+tags = ["blog","Minimal","Clean","Simple","Bootstrap","Personal","Mobile"]
features = ["blog", "project"]
min_version = 0.17
[author]
name = "Leon He"
- homepage = "https://hii8.com"
+ homepage = "https://heyuanfei.com"
# If porting an existing theme
[original]
name = "hugo_eiio"
- homepage = "https://hii8.com"
+ homepage = "https://heyuanfei.com"
repo = "https://github.com/leonhe/hugo_eiio"