From 10d5b0c4d4ef1bd171e6606c9aa776c590638138 Mon Sep 17 00:00:00 2001 From: Maksim Lin Date: Fri, 7 Aug 2020 14:56:49 +1000 Subject: [PATCH] fix crash from print, improve docs --- README.md | 2 +- lib/src/generator.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9934066..5f94b4f 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ sort_by: lastModified **note:** `sortby` not yet implemented. -**DSG** injects your listings into a global _lists variable. For each file all of the files YAML front-matter properties are available along with the files: +**DSG** injects your listings into a global `_lists` variable. For each file all of the files YAML front-matter properties are available along with the files: * `filename`: the files name without extension. * `last_modified`: the files last modified date time stamp. diff --git a/lib/src/generator.dart b/lib/src/generator.dart index 48bd9ac..6b1f833 100644 --- a/lib/src/generator.dart +++ b/lib/src/generator.dart @@ -57,7 +57,7 @@ class Generator { final dataMap = _getDataMap(dataFiles); - _logger.info('Listings... ${listingsMap.keys}'); + _logger.info('Listings... ${listingsMap?.keys}'); _logger.info('Generating .html files...');