diff options
author | thingsym <thingsym@gmail.com> | 2020-05-24 10:52:13 +0300 |
---|---|---|
committer | thingsym <thingsym@gmail.com> | 2020-05-24 10:52:13 +0300 |
commit | 468520467376aa39cb0f600d1a4e27c2a5ed13bf (patch) | |
tree | ef50bdb6a1354dc750150330ea7dba4529dbd099 | |
parent | 75b25ee5edabdf73a8f392650e2f278f27904071 (diff) | |
parent | 74dad3577cc1dd33c4742cecf9c3030f3d44e667 (diff) |
Merge branch 'release-0.9.1'v0.9.1
-rw-r--r-- | README.md | 11 | ||||
-rwxr-xr-x | exampleSite/config.toml | 7 | ||||
-rw-r--r-- | exampleSite/content/getting-started/configuration.md | 4 | ||||
-rw-r--r-- | layouts/_default/list.algolia.json | 6 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 | ||||
-rw-r--r-- | package-lock.json | 2 | ||||
-rw-r--r-- | package.json | 14 |
7 files changed, 27 insertions, 19 deletions
@@ -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 @@ -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 8d0ad8e..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) @@ -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] 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/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 -}} 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 @@ <meta name="description" content="{{ .Site.Params.description }}"> {{- end }} {{ hugo.Generator }} -<link href="{{ .Site.BaseURL }}index.xml" rel="alternate" type="application/rss+xml"> +<link href="{{ .Site.BaseURL }}/index.xml" rel="alternate" type="application/rss+xml"> <link rel="canonical" href="{{ .Permalink }}"> <link rel="stylesheet" href="{{"css/theme.min.css" | absURL}}"> <script src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script> 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 bc079c9..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", @@ -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": { |