Initial shit.
This commit is contained in:
		
						commit
						fbb4f25b77
					
				
					 7 changed files with 183 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								templates/base.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								templates/base.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
|     <head> | ||||
|         {% block head %} | ||||
|         <meta charset="utf-8" /> | ||||
|         <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
|         <title>{% block title %}Hazelnut{% endblock title %}</title> | ||||
|         <link rel="stylesheet" href="style.css" /> | ||||
|         <link rel="icon" href="favicon.png" /> | ||||
|         {% endblock head %} | ||||
|     </head> | ||||
|     <body> | ||||
|         {% include "header.html" %} | ||||
|         <div id="content"> | ||||
|             {% block content %} | ||||
|             {% endblock content %} | ||||
|         </div> | ||||
|         <div id="footer"> | ||||
|             {% block footer %} | ||||
|             {% endblock footer %} | ||||
|         </div> | ||||
|     </body> | ||||
| </html> | ||||
							
								
								
									
										9
									
								
								templates/header.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								templates/header.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| <header> | ||||
|     <nav> | ||||
|         {% for item in config.extra.menu %} | ||||
|         <a href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}"> | ||||
|             {{ item.name }} | ||||
|         </a> | ||||
|         {% endfor %} | ||||
|     </nav> | ||||
| </header> | ||||
							
								
								
									
										7
									
								
								templates/index.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								templates/index.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| {% extends "base.html" %} | ||||
| 
 | ||||
| {% block title %}Index - Hazelnut{% endblock title %} | ||||
| 
 | ||||
| {% block content %} | ||||
| {{ section.content | safe }} | ||||
| {% endblock content %} | ||||
							
								
								
									
										25
									
								
								templates/page.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								templates/page.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| {% extends "base.html" %} | ||||
| 
 | ||||
| {% block title %}{{ page.title }} - Hazelnut{% endblock title %} | ||||
| 
 | ||||
| {% block content %} | ||||
| <h1>Table of Contents</h1> | ||||
| <ul> | ||||
| {% for h1 in page.toc %} | ||||
|     <li> | ||||
|         <a href="{{h1.permalink | safe}}">{{ h1.title }}</a> | ||||
|         {% if h1.children %} | ||||
|             <ul> | ||||
|                 {% for h2 in h1.children %} | ||||
|                     <li> | ||||
|                         <a href="{{h2.permalink | safe}}">{{ h2.title }}</a> | ||||
|                     </li> | ||||
|                 {% endfor %} | ||||
|             </ul> | ||||
|         {% endif %} | ||||
|     </li> | ||||
| {% endfor %} | ||||
| </ul> | ||||
| 
 | ||||
| {{ page.content | safe }} | ||||
| {% endblock content %} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue