mirror of
				https://github.com/ItsDrike/itsdrike.com.git
				synced 2025-11-04 04:06:36 +00:00 
			
		
		
		
	Use baseof for common base HTML
This commit is contained in:
		
							parent
							
								
									9f753226f6
								
							
						
					
					
						commit
						e6db609303
					
				
					 4 changed files with 19 additions and 16 deletions
				
			
		
							
								
								
									
										10
									
								
								layouts/_default/baseof.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								layouts/_default/baseof.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,10 @@
 | 
				
			||||||
 | 
					<!DOCTYPE HTML>
 | 
				
			||||||
 | 
					<html lang="en">
 | 
				
			||||||
 | 
					    <head>
 | 
				
			||||||
 | 
					        <meta charset="utf-8">
 | 
				
			||||||
 | 
					        <title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
 | 
				
			||||||
 | 
					    </head>
 | 
				
			||||||
 | 
					    <body>
 | 
				
			||||||
 | 
					        {{ block "main" . }}{{ end }}
 | 
				
			||||||
 | 
					    </body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,4 @@
 | 
				
			||||||
<html lang="en">
 | 
					{{ define "main" }}
 | 
				
			||||||
<head>
 | 
					 | 
				
			||||||
    <meta charset="UTF-8">
 | 
					 | 
				
			||||||
    <title>{{.Title}}</title>
 | 
					 | 
				
			||||||
</head>
 | 
					 | 
				
			||||||
<body>
 | 
					 | 
				
			||||||
    {{ partial "content.html" . }}
 | 
					    {{ partial "content.html" . }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!--Group posts by months-->
 | 
					    <!--Group posts by months-->
 | 
				
			||||||
| 
						 | 
					@ -20,5 +15,4 @@
 | 
				
			||||||
            {{ partial "list_item.html" . }}
 | 
					            {{ partial "list_item.html" . }}
 | 
				
			||||||
        {{ end }}
 | 
					        {{ end }}
 | 
				
			||||||
    {{ end }}
 | 
					    {{ end }}
 | 
				
			||||||
</body>
 | 
					{{ end }}
 | 
				
			||||||
</html>
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,3 @@
 | 
				
			||||||
<html lang="en">
 | 
					{{ define "main" }}
 | 
				
			||||||
<head>
 | 
					 | 
				
			||||||
    <meta charset="UTF-8">
 | 
					 | 
				
			||||||
    <title>{{.Title}}</title>
 | 
					 | 
				
			||||||
</head>
 | 
					 | 
				
			||||||
<body>
 | 
					 | 
				
			||||||
    {{ partial "content.html" . }}
 | 
					    {{ partial "content.html" . }}
 | 
				
			||||||
</body>
 | 
					{{ end }}
 | 
				
			||||||
</html>
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										5
									
								
								layouts/partials/title-item.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								layouts/partials/title-item.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					{{ .Title }} ::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{{ if .Parent }}{{ if not .Parent.IsHome }}
 | 
				
			||||||
 | 
					    {{ partial "title-item.html" .Parent }}
 | 
				
			||||||
 | 
					{{ end }}{{ end }}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue