feat: Add internationalization (i18n) support (#182)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e38eaa94d6
						
					
				
				
					commit
					25ba1159ad
				
			@@ -1,5 +1,5 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<html lang="{{ .Lang }}">
 | 
			
		||||
{{ partial "head.html" . }}
 | 
			
		||||
 | 
			
		||||
<body>
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
    <!-- Begin actual content -->
 | 
			
		||||
    {{partial "header.html" .}}
 | 
			
		||||
    <article>
 | 
			
		||||
        <h1>Tag: {{ .Title }}</h1>
 | 
			
		||||
        <h1>{{ i18n "tag" }}: {{ .Title }}</h1>
 | 
			
		||||
        {{with .Params.description}}
 | 
			
		||||
            <p>{{.}}</p>
 | 
			
		||||
        {{end}}
 | 
			
		||||
@@ -18,5 +18,4 @@
 | 
			
		||||
    {{partial "contact.html" .}}
 | 
			
		||||
</div>
 | 
			
		||||
</body>
 | 
			
		||||
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user