Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/mero.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/readingtime.html')
-rw-r--r--layouts/partials/readingtime.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/readingtime.html b/layouts/partials/readingtime.html
new file mode 100644
index 0000000..132f979
--- /dev/null
+++ b/layouts/partials/readingtime.html
@@ -0,0 +1,7 @@
+{{ if lt .ReadingTime 1 }}
+< 1 min
+{{ else if eq .ReadingTime 1 }}
+1 min
+{{ else }}
+{{ .ReadingTime }} mins
+{{ end }} \ No newline at end of file