You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							568 B
						
					
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							568 B
						
					
					
				| {{- if .Site.Params.goatCounter }}
 | |
| <span id="{{ .File.UniqueID }}" title="{{ i18n "post.pageViews" }}">{{ i18n "post.unknownViews" }}</span>
 | |
| <script>
 | |
|     let url =
 | |
|         "https://{{ .Site.Params.goatCounter }}/counter/" +
 | |
|         encodeURIComponent({{ .RelPermalink }}.replace(/(\/)?$/, "")) +
 | |
|         ".json";
 | |
| 
 | |
|     fetch(url)
 | |
|         .then(res => res.json())
 | |
|         .then(data => data.count)
 | |
|         .then(count => {
 | |
|             document.getElementById("{{ .File.UniqueID }}").innerText = count + " " + {{ i18n "post.pageViews" }};
 | |
|         });
 | |
| </script>
 | |
| {{- end}}
 | |
| 
 |