mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	Correction of the reading time counter
This commit is contained in:
		@@ -2,6 +2,10 @@
 | 
				
			|||||||
{{- content | number_of_words | minus: 180 -}}
 | 
					{{- content | number_of_words | minus: 180 -}}
 | 
				
			||||||
{%- endcapture -%}
 | 
					{%- endcapture -%}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{%- if words contains '-' -%}
 | 
				
			||||||
 | 
					{{- '1 min read' | strip | normalize_whitespace | xml_escape -}}
 | 
				
			||||||
 | 
					{%- endif -%}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{%- unless words contains '-' -%}
 | 
					{%- unless words contains '-' -%}
 | 
				
			||||||
{{- words | plus: 150 | divided_by: 150 | append: ' min read' | xml_escape -}}
 | 
					{{- words | plus: 150 | divided_by: 150 | append: ' min read' | strip | normalize_whitespace | xml_escape -}}
 | 
				
			||||||
{%- endunless -%}
 | 
					{%- endunless -%}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user