Skip to content

Commit c9edd08

Browse files
Merge pull request #4 from lukasz-a-krol/main
commented out the bit that displays reading time since it's inaccurat…
2 parents 4de5ba1 + 5107ced commit c9edd08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ <h3 class="mt-3 items-center justify-between text-3xl font-semibold leading-9 te
106106
<p class="mt-3 flex items-center justify-between">
107107
<span class="relative z-10 rounded-full border-2 border-solid border-green-200 bg-green-50 px-3 py-0.5 text-sm font-medium text-green-700">{{ len (where .RegularPagesRecursive ".Params.style" "eq" "module") }} {{ i18n "key.modules" }}</span>
108108
<span class="text-sm font-semibold text-gray-600">
109-
{{ $totalReadingTime := 0 }}
109+
<!-- {{ $totalReadingTime := 0 }}
110110
{{ range .RegularPagesRecursive }}
111111
{{ $totalReadingTime = add $totalReadingTime .ReadingTime }}
112112
{{ end }}
113-
{{ i18n "key.eta" }}: {{ printf "%d" $totalReadingTime }} {{ i18n "key.minutes" }}
113+
{{ i18n "key.eta" }}: {{ printf "%d" $totalReadingTime }} {{ i18n "key.minutes" }} -->
114114
</span>
115115
</p>
116116
<p class="mt-2 text-sm leading-6 text-gray-600">{{ .Page.Params.description }}</p>

layouts/learning-path/unique.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ <h3 class="text-3xl font-semibold leading-9 text-gray-900 group-hover:text-gray-
5959
<p class="mt-3 flex items-center justify-between">
6060
<span class="relative z-10 rounded-full border-2 border-solid border-green-200 bg-green-50 px-3 py-0.5 text-sm font-medium text-green-700">{{ len (where .RegularPagesRecursive ".Params.style" "eq" "module") }} {{ i18n "key.modules" }}</span>
6161
<span class="text-sm font-semibold text-gray-700">
62-
{{ $totalReadingTime := 0 }}
62+
<!-- {{ $totalReadingTime := 0 }}
6363
{{ range .RegularPagesRecursive }}
6464
{{ $totalReadingTime = add $totalReadingTime .ReadingTime }}
6565
{{ end }}
66-
{{ i18n "key.eta" }}: {{ printf "%d" $totalReadingTime }} {{ i18n "key.minutes" }}
66+
{{ i18n "key.eta" }}: {{ printf "%d" $totalReadingTime }} {{ i18n "key.minutes" }} -->
6767
</span>
6868
</p>
6969
<p class="mt-2 text-sm leading-6 text-gray-600">{{

0 commit comments

Comments
 (0)