diff --git a/README.ko.md b/README.ko.md index cb189ad..f6d00e6 100644 --- a/README.ko.md +++ b/README.ko.md @@ -3,7 +3,14 @@ [English](https://github.com/zzossig/hugo-theme-zzo/blob/master/README.md) | ν•œκ΅­μ–΄ -πŸ”₯πŸ”₯πŸ”₯πŸ€“μ΅œμ†Œλ‘œ 지원가λŠ₯ν•œ Hugo 버전이 0.60.0으둜 λ³€κ²½λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 이전 λ²„μ „κ³ΌλŠ” λ‹€λ₯΄κ²Œ μ•„μ˜ˆ λ§ˆν¬λ‹€μš΄ λ Œλ”λ§ 라이브러리 μžμ²΄κ°€ λ³€κ²½λ˜μ–΄(blackfridyμ—μ„œ goldmark둜), ν˜Ήμ—¬ 이전버전을 μ‚¬μš©ν•˜κ³  κ³„μ‹œλ‹€λ©΄, μ΅œμ‹  Hugo 버전을 μ„€μΉ˜ν•˜μ‹œλŠ”κ±Έ ꢌμž₯λ“œλ¦½λ‹ˆλ‹€.πŸ”₯πŸ”₯πŸ”₯ +πŸ”₯πŸ”₯πŸ”₯ +zzo theme을 μ—…λ°μ΄νŠΈν•œ ν›„ `config.toml` νŒŒμΌμ—μ„œ page λ³€μˆ˜λ₯Ό μ‚­μ œν•΄μ£Όμ„Έμš” +```diff +[outputs] + page = ["HTML", "SearchIndex"] +``` +검색 κ΄€λ ¨ 인덱슀 μƒμ„±μœ„μΉ˜λ₯Ό λ³€κ²½ν–ˆμŠ΅λ‹ˆλ‹€ +πŸ”₯πŸ”₯πŸ”₯ 클릭해 μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€. Zzo theme은 λ§Žμ€ κΈ°λŠ₯을 μ§€μ›ν•˜κ³ μžˆκ³  μžˆμŠ΅λ‹ˆλ‹€. 기술 λΈ”λ‘œκ·Έλ₯Ό μš΄μ˜ν•˜κΈ°μ— μ΅œμ ν™” λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€!(적어도 μ œμƒκ°μ—”...) Zzo theme을 μ΄μš©ν•  μ‹œ κ°€μž₯ 맀λ ₯적인 포인트 ν•œκ°€μ§€λŠ”, ν•œκΈ€λ‘œ 저와 μ†Œν†΅ν•  수 μžˆλ‹€λŠ” 점? μž…λ‹ˆλ‹€. diff --git a/README.md b/README.md index c0755a1..2d3318f 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,14 @@ English | [ν•œκ΅­μ–΄](https://github.com/zzossig/hugo-theme-zzo/blob/master/README.ko.md) -Minimum Hugo version changed to 0.65.0 to take advantage of new feature `.GetTerms`. -This new feature enable asian languages correctly displayed. - -```html - +πŸ”₯πŸ”₯πŸ”₯ +after update the zzo theme, delete the outputs.page variable in `config.toml`. +```diff +[outputs] + page = ["HTML", "SearchIndex"] ``` +I changed the place to make search index +πŸ”₯πŸ”₯πŸ”₯ Thank you for click me!. Zzo theme is a blog theme powered by Hugo with free(always), and many features. diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index 4ade7d9..d66c5b8 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -35,7 +35,6 @@ googleAnalytics = "" startLevel = 2 [outputs] - page = ["HTML", "SearchIndex"] home = ["HTML", "RSS", "SearchIndex"] section = ["HTML", "RSS", "SearchIndex"] taxonomyTerm = ["HTML", "RSS", "SearchIndex"] diff --git a/layouts/_default/single.searchindex.json b/layouts/_default/single.searchindex.json deleted file mode 100644 index 11e8280..0000000 --- a/layouts/_default/single.searchindex.json +++ /dev/null @@ -1,8 +0,0 @@ -{{ .Scratch.Delete "searchindex" }} -{{- $.Scratch.Add "searchindex" slice -}} -{{- range $index, $element := (where .Site.RegularPages "Kind" "page") -}} - {{ with $element.Plain }} - {{- $.Scratch.Add "searchindex" (dict "id" $index "title" $element.Title "uri" $element.Permalink "tags" $element.Params.tags "section" $element.Section "content" $element.Plain "description" $element.Description) -}} - {{ end }} -{{- end -}} -{{- $.Scratch.Get "searchindex" | jsonify -}} \ No newline at end of file diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html index e60a679..42751e4 100644 --- a/layouts/partials/head/scripts.html +++ b/layouts/partials/head/scripts.html @@ -550,6 +550,8 @@ // ========================== search ========================== + {{ $baseurl:= $.Site.BaseURL }} + var baseurl = JSON.parse({{ $baseurl | jsonify }}); {{ $permalink:= .Permalink }} var permalink = JSON.parse({{ $permalink | jsonify }}); var searchResults = null; @@ -564,10 +566,10 @@ var sectionType = JSON.parse({{ $sectionType | jsonify }}); var fuse = null; - + (function initFuse() { var xhr = new XMLHttpRequest(); - xhr.open('GET', permalink + "index.json"); + xhr.open('GET', baseurl + "/index.json"); xhr.setRequestHeader('Content-Type', 'application/json; charset=utf-8'); xhr.onload = function () { if (xhr.status === 200) {