diff options
author | thingsym <thingsym@gmail.com> | 2019-04-27 12:16:27 +0300 |
---|---|---|
committer | thingsym <thingsym@gmail.com> | 2019-04-27 12:16:27 +0300 |
commit | a734a82e61f4e88145569630da5cb9bdedb56777 (patch) | |
tree | e7288d3f239a8683085c8e7cca9cb9656b334338 | |
parent | 750b7461ae6ec9ed6dadaa5069b257486eac2298 (diff) | |
parent | 2a526d7a77dbe965455d860188e9ffa73fd0bea0 (diff) |
Merge branch 'release-0.2.2'v0.2.2
-rw-r--r-- | README.md | 24 | ||||
-rwxr-xr-x | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | exampleSite/content/_index.md | 5 | ||||
-rw-r--r-- | exampleSite/content/getting-started/_index.md | 3 | ||||
-rw-r--r-- | exampleSite/content/getting-started/configuration.md | 4 | ||||
-rw-r--r-- | gulpfile.js | 9 | ||||
-rw-r--r-- | layouts/partials/last-updated.html | 8 | ||||
-rw-r--r-- | package.json | 2 |
8 files changed, 44 insertions, 15 deletions
@@ -42,6 +42,12 @@ hugo server -t hugo-theme-techdoc Browse site on http://localhost:1313 +## Deploy Site to public_html directory + +``` +hugo -d public_html +``` + ## Development environment ``` @@ -50,6 +56,16 @@ yarn install gulp watch ``` +## Preview exampleSite + +``` +cd /path/to/dir/themes/hugo-theme-techdoc/exampleSite + +hugo server --themesDir ../.. +``` + +Browse site on http://localhost:1313 + ## Contribution ### Patches and Bug Fixes @@ -64,18 +80,20 @@ Small patches and bug reports can be submitted a issue tracker in Github. Forkin ## Changelog -* Version 0.2.1 +* Version 0.2.2 - 2019.04.27 + * fix Lastmod's and PublishDate's initial value of 0001-01-01 +* Version 0.2.1 - 2018.12.07 * fix scss lint errors * change lint from scss-lint to stylelint * add published date * change the font color of powered by * fix link on powered by -* Version 0.2.0 +* Version 0.2.0 - 2018.11.21 * add screenshot images * add exampleSite * fix sub-menu for responsive * improve menu and pagination -* Version 0.1.0 +* Version 0.1.0 - 2018.03.04 * initial release ## License diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 08ac1e9..2d345cd 100755 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -20,7 +20,7 @@ enableMissingTranslationPlaceholders = false # Souce Code repository section description = "put your description" github_repository = "https://github.com/thingsym/hugo-theme-techdoc" - version = "0.2.1" + version = "0.2.2" # Documentation repository section # documentation repository (set edit link to documentation repository) @@ -29,7 +29,7 @@ enableMissingTranslationPlaceholders = false # Analytic section google_analytics_id = "" # Your Google Analytics tracking id tag_manager_container_id = "" # Your Google Tag Manager container id - google_site_verification = "" # Your Google Site Verification + google_site_verification = "" # Your Google Site Verification for Search Console # Theme settings section dateformat = "" # default "2 Jan 2006" diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 62cb545..15c7f5e 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,6 +1,7 @@ --- -date: 2017-10-17T15:26:15Z -lastmod: 2018-12-05T15:26:15Z +date: 2017-10-19T15:26:15Z +lastmod: 2018-12-08T15:26:15Z +publishdate: 2018-11-23T15:26:15Z --- # Hugo Techdoc Theme diff --git a/exampleSite/content/getting-started/_index.md b/exampleSite/content/getting-started/_index.md index aa6c10d..3af5a2b 100644 --- a/exampleSite/content/getting-started/_index.md +++ b/exampleSite/content/getting-started/_index.md @@ -1,7 +1,8 @@ --- title: "Getting Started" date: 2017-10-17T15:26:15Z -lastmod: 2018-12-05T15:26:15Z +lastmod: 2018-12-08T15:26:15Z +publishdate: 2018-11-23T15:26:15Z draft: false weight: 9 --- diff --git a/exampleSite/content/getting-started/configuration.md b/exampleSite/content/getting-started/configuration.md index e39b503..09331ea 100644 --- a/exampleSite/content/getting-started/configuration.md +++ b/exampleSite/content/getting-started/configuration.md @@ -14,7 +14,7 @@ For an example of `config.toml`, see [config.toml](https://github.com/thingsym/h # Souce Code repository section description = "put your description" github_repository = "https://github.com/thingsym/hugo-theme-techdoc" - version = "0.2.1" + version = "0.2.2" # Documentation repository section # documentation repository (set edit link to documentation repository) @@ -47,7 +47,7 @@ default: `https://github.com/thingsym/hugo-theme-techdoc` The version of souce code -default: `0.2.1` +default: `0.2.2` #### `github_doc_repository` diff --git a/gulpfile.js b/gulpfile.js index 72b2012..eb294fd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -47,7 +47,10 @@ gulp.task('lint:sass', function() { } }, reporters: [ - { formatter: 'string', console: true } + { + formatter: 'string', + console: true + } ] })); }); @@ -62,7 +65,7 @@ gulp.task('sass:style', function() { })) .pipe($.sass({ outputStyle: 'expanded' - }).on( 'error', $.sass.logError ) ) + }).on( 'error', $.sass.logError )) .pipe($.autoprefixer({ browsers: ['last 2 versions'], cascade: false @@ -75,7 +78,7 @@ gulp.task('sass:style', function() { gulp.task('javascript', function() { return gulp.src(src_paths.script) - .pipe($.uglify().on('error', $.util.log)) + .pipe($.uglify().on( 'error', $.util.log )) .pipe($.rename({ suffix: '.min' })) .pipe(gulp.dest(dest_paths.script)); }); diff --git a/layouts/partials/last-updated.html b/layouts/partials/last-updated.html index 014c980..4fff863 100644 --- a/layouts/partials/last-updated.html +++ b/layouts/partials/last-updated.html @@ -1 +1,7 @@ -Last updated on {{ $.Lastmod.Format ( $.Site.Params.dateformat | default "2 Jan 2006") }} / Published on {{ $.PublishDate.Format ( $.Site.Params.dateformat | default "2 Jan 2006") -}} +{{ if ne ( .Lastmod.Format "2006-01-02" ) "0001-01-01" }} +Last updated on {{ .Lastmod.Format ( $.Site.Params.dateformat | default "2 Jan 2006") }} +{{ end }} +{{ if ne ( .PublishDate.Format "2006-01-02" ) "0001-01-01" }} +<br> +Published on {{ .PublishDate.Format ( $.Site.Params.dateformat | default "2 Jan 2006") -}} +{{ end }} diff --git a/package.json b/package.json index 864e30a..464f148 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-theme-techdoc", - "version": "0.2.1", + "version": "0.2.2", "description": "The Techdoc is a Hugo Theme for technical documentation.", "main": "gulpfile.js", "author": "Thingsym", |