mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-31 01:53:30 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			45 lines
		
	
	
		
			888 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			888 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{ define "main" }}
 | |
| <div class="post-title">
 | |
|     <h1>
 | |
|         {{ .Title | markdownify }}
 | |
|         {{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
 | |
|     </h1>
 | |
| </div>
 | |
| 
 | |
| {{ partial "post-metadata.html" . }}
 | |
| 
 | |
| {{ if .Params.Toc }}
 | |
| <div id="table-of-contents">
 | |
|     <h2>{{ i18n "table_of_contents" }}</h2>
 | |
|     {{ .TableOfContents }}
 | |
| </div>
 | |
| {{ end }}
 | |
| 
 | |
| <hr>
 | |
| 
 | |
| {{ with .Resources.GetMatch "feature" }}
 | |
| <div class="post-media">
 | |
|     {{ partial "figure.html" . }}
 | |
| </div>
 | |
| {{ end }}
 | |
| 
 | |
| {{ .Content }}
 | |
| 
 | |
| {{ $related := .Site.RegularPages.Related . | first 5 }}
 | |
| {{ with $related }}
 | |
| <div class="see-also">
 | |
|     <h2>{{ i18n "see_also" }}</h2>
 | |
| 
 | |
|     <ul>
 | |
|         {{ range . }}
 | |
|         <li>
 | |
|             {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
 | |
|             <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
 | |
|         </li>
 | |
|         {{ end }}
 | |
|     </ul>
 | |
| </div>
 | |
| {{ end }}
 | |
| 
 | |
| {{ end }}
 |