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.
		
		
		
		
		
			
		
			
				
					
					
						
							51 lines
						
					
					
						
							3.0 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							51 lines
						
					
					
						
							3.0 KiB
						
					
					
				| {{ define "main" }} | |
| <section class="about"> | |
| <section class="h-feed"> | |
|   <section class="latest_note"><h2>Latest note</h2> | |
|   {{ range (first 1 (where .Site.RegularPages "Type" "=" "note")) }} | |
|   <article class="index-note h-entry entry"> | |
|     <section class="author" style="display:none;"> | |
|       <a rel="author" class="p-author h-card" rel="me" href="https://jon.kelbie.scot">{{ .Site.Params.Author }}<img src="/images/profile1.jpg"/></a> | |
|     </section> | |
|     <section class="e-content">{{ .Content }} | |
|   </section> | |
|   <section class="info"> | |
|     {{ if eq .Type "article" }} | |
|     <span class="blogs_span">{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}</span><span class="info-date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span><br/> | |
|     <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="reading-time">{{ .ReadingTime }}-minute read</span><br/> | |
|     <span class="tags_span">{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}</span> | |
|     {{ else }} | |
|     <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/> | |
|     {{ end }} | |
|   </section> | |
| </article> {{ end }} | |
| </section> | |
|     <section class="latest_articles"><h2>Latest articles</h2> | |
|     {{ range (first 3 (where .Site.RegularPages "Type" "=" "article")) }} | |
|     <article class="index-article h-entry entry"><a class="u-url" href="{{ .Permalink }}" title="{{ .Title }}"> | |
|       {{ range first 1 .Page.Params.image }} <img class="banner" src="{{ replace . "images" "images/300" }}"/>{{ end }}<span class="p-name entry-title">{{ .Title }}</span> | |
|     <section class="e-content">{{ .Description }}</section> | |
|     </a></article>{{ end }}</section> | |
|     <section class="latest_photos"><h2>Latest photos</h2> | |
|       {{ range (first 3 (where .Site.RegularPages "Type" "=" "photo")) }} | |
|       <article class="index-photo h-entry entry"><a class="u-url" href="{{ .Permalink }}"> | |
|       <section class="e-content"> | |
|         {{ if eq .Type "photo"}} | |
|           <section class="photos"> | |
|         {{ $summary := .Content }} | |
|           {{ range first 1 .Page.Params.Photo }} | |
|             {{ if isset . "value" }} | |
|             <img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{$summary}}" alt="{{ .alt }}"/> | |
|             {{ else }} | |
|             <img class="u-photo thumb" src="{{ replace . "800." "300."}}" title="{{$summary}}" alt="Alt not yet added, will fix!"/> | |
|             {{ end }} | |
|           {{end}} | |
|           </section> | |
|           {{end}} | |
|       </section> | |
|       </a></article>{{ end }}</section> | |
| <a href="https://brid.gy/publish/mastodon"></a> | |
|     </section> | |
| </section> | |
| 
 | |
| {{ end }}
 |