mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-31 06:08:33 +00:00 
			
		
		
		
	feat(11ty): add page layout
This commit is contained in:
		
							
								
								
									
										19
									
								
								11ty/_includes/layouts/index.njk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								11ty/_includes/layouts/index.njk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| {% extends 'layouts/base.njk' %} | ||||
|  | ||||
| {% block content %} | ||||
|   <main> | ||||
|     {{ content | safe }} | ||||
|     {% include 'components/table-of-content.njk' %} | ||||
|     <section> | ||||
|       <h2>Words</h2> | ||||
|       {% include 'components/defintions-list.njk' %} | ||||
|     </section> | ||||
|   </main> | ||||
|   <footer class="site-footer"> | ||||
|     <nav aria-label=""> | ||||
|       <ul class="navigation-list"> | ||||
|         <li><a href="/documentation/">Documentation | ||||
|       </ul> | ||||
|     </nav> | ||||
|   </footer> | ||||
| {% endblock %} | ||||
							
								
								
									
										14
									
								
								11ty/_includes/layouts/page.njk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								11ty/_includes/layouts/page.njk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| {% extends 'layouts/base.njk' %} | ||||
| {% set pageType = 'Page' %} | ||||
|  | ||||
| {% block content %} | ||||
|   <div class="small-left-grid"> | ||||
|     <div id="title"> | ||||
|       <a href="/">Self-Defined</a> | ||||
|       <p>A modern dictionary about us.<br>We define our words, but they don't define us.</p> | ||||
|     </div> | ||||
|     <main class="page"> | ||||
|       <h1 class="title__thicc" >{{ title }}</h1> | ||||
|       {{ content | safe }} | ||||
|     </main> | ||||
| {% endblock %} | ||||
		Reference in New Issue
	
	Block a user
	 Oscar
					Oscar