| 
									
										
										
										
											2025-01-27 10:45:54 +00:00
										 |  |  | {{- $postTarget := printf "/sites/%v/posts" .site.ID -}} | 
					
						
							| 
									
										
										
										
											2025-01-31 22:42:32 +00:00
										 |  |  | {{- if (ne .post.ID 0) -}} | 
					
						
							| 
									
										
										
										
											2025-01-27 10:45:54 +00:00
										 |  |  |     {{- $postTarget = printf "/sites/%v/posts/%v" .site.ID .post.ID -}} | 
					
						
							|  |  |  | {{- end -}} | 
					
						
							|  |  |  | <form method="post" action="{{$postTarget}}" class="post-form"> | 
					
						
							|  |  |  |     <input name="title" placeholder="Title" value="{{.post.Title}}"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <textarea name="body">{{.post.Body}}</textarea> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <div class="bottom-bar"> | 
					
						
							|  |  |  |         <input type="submit" value="Post"> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </form> |