mirror of
				https://github.com/ItsDrike/itsdrike.com.git
				synced 2025-11-04 04:06:36 +00:00 
			
		
		
		
	Improve content details design
This commit is contained in:
		
							parent
							
								
									8b599058c6
								
							
						
					
					
						commit
						f4701e7fa6
					
				
					 2 changed files with 23 additions and 5 deletions
				
			
		| 
						 | 
					@ -1,11 +1,25 @@
 | 
				
			||||||
{{ if not .Date.IsZero }}
 | 
					{{ if not .Date.IsZero }}
 | 
				
			||||||
  <span class="pr-2" title='{{ .Date.Format "January 2 2006" }}'>
 | 
					  <span class="pr-2" title='{{ .Date.Format "January 2 2006" }}'>
 | 
				
			||||||
        <i class="far fa-calendar-alt pr-1>"></i>{{ .Date.Format "2006-01-02" }}
 | 
					    <i class="far fa-calendar-alt pr-1 content-detail"></i> {{ .Date.Format "2006-01-02" }}
 | 
				
			||||||
 | 
					  </span>
 | 
				
			||||||
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{{ if not .Parent.IsHome }}
 | 
				
			||||||
 | 
					  {{ if gt .ReadingTime 2 }}
 | 
				
			||||||
 | 
					    <span class="pr-2" title='Reading time'>
 | 
				
			||||||
 | 
					      <i class="far fa-clock pr-1 content-detail"></i> {{ .ReadingTime }} minutes
 | 
				
			||||||
 | 
					    </span>
 | 
				
			||||||
 | 
					  {{ end }}
 | 
				
			||||||
 | 
					  <span class="pr-2" title="Word count">
 | 
				
			||||||
 | 
					    <i class="far fa-file-alt pr-1 content-detail"></i> {{ .WordCount }} words
 | 
				
			||||||
  </span>
 | 
					  </span>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if .Params.tags }}
 | 
					{{ if .Params.tags }}
 | 
				
			||||||
    {{ range $1, $e := .Params.tags }}
 | 
					  <a href="{{ ref . " /tags" }}" class="no-color-change mr-1">
 | 
				
			||||||
        <a class="mr-1" href="/tags/{{ urlize . }}">#{{ . }}</a>
 | 
					    <i class="fas fa-tags small content-detail"></i>
 | 
				
			||||||
 | 
					  </a>
 | 
				
			||||||
 | 
					  {{ range $i, $e := .Params.tags }}
 | 
				
			||||||
 | 
					    <a href="/tags/{{ urlize . }}" class="mr-1">#{{ . }}</a>
 | 
				
			||||||
  {{ end }}
 | 
					  {{ end }}
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -128,3 +128,7 @@ h1, h2, h3, h4, h5, h6 {
 | 
				
			||||||
ul ul, ol ol {
 | 
					ul ul, ol ol {
 | 
				
			||||||
  padding-left: $spacer * 1.5;
 | 
					  padding-left: $spacer * 1.5;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.content-detail {
 | 
				
			||||||
 | 
					  text-indent: 2em;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue