From 164c756f1ba18700917f2fe8241fbc7fd208c341 Mon Sep 17 00:00:00 2001 From: thingsym Date: Sun, 24 May 2020 16:36:19 +0900 Subject: fix: remove line break --- layouts/_default/list.algolia.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.algolia.json b/layouts/_default/list.algolia.json index af966ec..d4dda5d 100644 --- a/layouts/_default/list.algolia.json +++ b/layouts/_default/list.algolia.json @@ -8,15 +8,15 @@ {{- if or (and ($page.IsDescendant $section) (and (not $page.Draft) (not $page.Params.private))) $section.IsHome -}} {{ if $page.File }} {{- .Scratch.SetInMap $page.File.Path "objectID" $page.File.UniqueID -}} - {{ end }} + {{- end -}} {{- .Scratch.SetInMap "temp" "date" $page.Date.UTC.Unix -}} {{ if ne ( $page.PublishDate.Format "2006-01-02" ) "0001-01-01" }} {{- .Scratch.SetInMap "temp" "publishdate" $page.PublishDate -}} - {{ end }} + {{- end -}} {{ if ne ( $page.Lastmod.Format "2006-01-02" ) "0001-01-01" }} {{- .Scratch.SetInMap "temp" "lastmod" $page.Lastmod -}} - {{ end }} + {{- end -}} {{- .Scratch.SetInMap "temp" "content" ($page.Plain | truncate 2000) -}} {{- .Scratch.SetInMap "temp" "title" $page.Title -}} {{- .Scratch.SetInMap "temp" "permalink" $page.Permalink -}} -- cgit v1.2.3 From 5ddaee19267e27a2ba47b9a39c829de3d4505e6a Mon Sep 17 00:00:00 2001 From: thingsym Date: Sun, 24 May 2020 16:38:51 +0900 Subject: fix: fix url --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index cd6e578..a3e22e1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -12,7 +12,7 @@ {{- end }} {{ hugo.Generator }} - + -- cgit v1.2.3 From 3279bff28c0d054ece7c4d9cc33f7ae1d3854d17 Mon Sep 17 00:00:00 2001 From: thingsym Date: Sun, 24 May 2020 16:39:36 +0900 Subject: fix: fix config.toml --- exampleSite/config.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8d0ad8e..df23fd9 100755 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -90,11 +90,14 @@ enableMissingTranslationPlaceholders = false endLevel = 4 ordered = false +[outputs] + home = ["HTML", "RSS", "Algolia"] + # Algolia Search configure section [outputFormats.Algolia] baseName = "algolia" - isPlainText = true mediaType = "application/json" + isPlainText = true notAlternative = true [params.algolia] -- cgit v1.2.3 From 0e475f3a2304ff2114948bf424357440eb0470a1 Mon Sep 17 00:00:00 2001 From: thingsym Date: Sun, 24 May 2020 16:40:33 +0900 Subject: fix: fix package.json --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index bc079c9..23e9353 100644 --- a/package.json +++ b/package.json @@ -43,16 +43,16 @@ "webpack-stream": "^5.2.1" }, "stylelint": { - "rules": { - "no-descending-specificity": null, - "no-duplicate-selectors": null, - "block-no-empty": null - }, "extends": [ "stylelint-config-recommended", "stylelint-scss", "stylelint-config-recommended-scss" - ] + ], + "rules": { + "no-descending-specificity": null, + "no-duplicate-selectors": null, + "block-no-empty": null + } }, "eslintConfig": { "env": { -- cgit v1.2.3 From 3457737685f5ffc8afbf993fcbc16c73c0bb20ad Mon Sep 17 00:00:00 2001 From: thingsym Date: Sun, 24 May 2020 16:40:51 +0900 Subject: docs: fix README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7df6bda..c047356 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ For an example of `config.toml`, [config.toml](https://github.com/thingsym/hugo- ### Directory layout ``` +tree . + . ├── archetypes │   └── default.md @@ -82,6 +84,7 @@ For an example of `config.toml`, [config.toml](https://github.com/thingsym/hugo- │   │   └── summary.html │   ├── _default │   │   ├── baseof.html +│   │   ├── list.algolia.json │   │   ├── list.html │   │   └── single.html │   ├── index.html @@ -120,13 +123,10 @@ For an example of `config.toml`, [config.toml](https://github.com/thingsym/hugo- │       └── panel.html │       └── search.html ├── LICENSE.md -├── node_modules -│   └── .. ├── package.json ├── package-lock.json ├── README.md ├── resources -│   └── .. ├── src │   ├── js │   │   ├── jquery.backtothetop -- cgit v1.2.3 From 74dad3577cc1dd33c4742cecf9c3030f3d44e667 Mon Sep 17 00:00:00 2001 From: thingsym Date: Sun, 24 May 2020 16:51:10 +0900 Subject: Version 0.9.1 --- README.md | 5 +++++ exampleSite/config.toml | 2 +- exampleSite/content/getting-started/configuration.md | 4 ++-- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c047356..c11db4b 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,11 @@ Small patches and bug reports can be submitted a issue tracker in Github. Forkin ## Changelog +* Version 0.9.1 - 2020.05.24 + * fix config.toml + * fix url in rss meta link + * remove line break in algolia.json + * Version 0.9.0 - 2020.04.01 * fix lint config * update Sample Document diff --git a/exampleSite/config.toml b/exampleSite/config.toml index df23fd9..1f6f057 100755 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -17,7 +17,7 @@ enableMissingTranslationPlaceholders = false # Source Code repository section description = "put your description" github_repository = "https://github.com/thingsym/hugo-theme-techdoc" - version = "0.9.0" + version = "0.9.1" # Documentation repository section # documentation repository (set edit link to documentation repository) diff --git a/exampleSite/content/getting-started/configuration.md b/exampleSite/content/getting-started/configuration.md index 5962ec0..724d989 100644 --- a/exampleSite/content/getting-started/configuration.md +++ b/exampleSite/content/getting-started/configuration.md @@ -15,7 +15,7 @@ For an example of `config.toml`, see [config.toml](https://github.com/thingsym/h # Source Code repository section description = "put your description" github_repository = "https://github.com/thingsym/hugo-theme-techdoc" - version = "0.9.0" + version = "0.9.1" # Documentation repository section # documentation repository (set edit link to documentation repository) @@ -80,7 +80,7 @@ default: `https://github.com/thingsym/hugo-theme-techdoc` The version of souce code -default: `0.9.0` +default: `0.9.1` #### `github_doc_repository` diff --git a/package-lock.json b/package-lock.json index fc63669..55b0b86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "hugo-theme-techdoc", - "version": "0.9.0", + "version": "0.9.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 23e9353..f0b44af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-theme-techdoc", - "version": "0.9.0", + "version": "0.9.1", "description": "The Techdoc is a Hugo Theme for technical documentation.", "main": "gulpfile.js", "author": "Thingsym", -- cgit v1.2.3