mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-11-02 09:57:53 -06:00 
			
		
		
		
	It didn't last very long. Speed isn't really a concern currently since my sites all generate in ~50ms (on my computer, at least).
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<div class="post">
 | 
						|
    <h2 class="post-title">
 | 
						|
        {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
 | 
						|
        <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
 | 
						|
        {{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
 | 
						|
    </h2>
 | 
						|
 | 
						|
    {{ partial "post-metadata.html" . }}
 | 
						|
 | 
						|
    {{ with .Resources.GetMatch "feature" }}
 | 
						|
    {{ if eq .MediaType.MainType "image" }}
 | 
						|
    <div class="post-media">
 | 
						|
        <img src="{{ .Permalink }}" alt="{{ .Title }}" />
 | 
						|
    </div>
 | 
						|
    {{ else if eq .MediaType.MainType "video" }}
 | 
						|
    <div class="post-media">
 | 
						|
        <video controls>
 | 
						|
            <source src="{{ .Permalink }}" alt="{{ .Title }}">
 | 
						|
        </video>
 | 
						|
    </div>
 | 
						|
    {{ end }}
 | 
						|
    {{ end }}
 | 
						|
 | 
						|
    <div class="post-description">
 | 
						|
        {{ if .Description }}
 | 
						|
        <p>
 | 
						|
            {{ .Description | markdownify }}
 | 
						|
        </p>
 | 
						|
        {{ else }}
 | 
						|
        {{ .Summary }}
 | 
						|
        {{ end }}
 | 
						|
    </div>
 | 
						|
 | 
						|
    <div class="readmore">
 | 
						|
        <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
 | 
						|
    </div>
 | 
						|
</div>
 |