Add bootstrap and index.html
This commit is contained in:
		
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					/dist
 | 
				
			||||||
 | 
					/build
 | 
				
			||||||
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					update-bootstrap:
 | 
				
			||||||
 | 
						curl -L "https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css" -o assets/bootstrap.min.css
 | 
				
			||||||
 | 
						curl -L "https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.min.js" -o assets/bootstrap.min.js
 | 
				
			||||||
							
								
								
									
										7
									
								
								assets/bootstrap.min.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								assets/bootstrap.min.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										7
									
								
								assets/bootstrap.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								assets/bootstrap.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										13
									
								
								build.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								build.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# copy assets
 | 
				
			||||||
 | 
					cp -r assets/ dist/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					make_index() {
 | 
				
			||||||
 | 
							cp templates/index.tmpl.html build/index.html
 | 
				
			||||||
 | 
							sed -i 's/<title>/&Home/' build/index.html
 | 
				
			||||||
 | 
							sed -i '/<main>/r pages/index.md' build/index.html
 | 
				
			||||||
 | 
							cp build/index.html dist/
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					make_index
 | 
				
			||||||
							
								
								
									
										3
									
								
								pages/index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								pages/index.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					Welcome to my site!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					I am Balakrishnan Balasubramanian (a) balki. Nothing much here. Checkout the nav bar above for interesting stuff.
 | 
				
			||||||
							
								
								
									
										32
									
								
								templates/index.tmpl.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								templates/index.tmpl.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					<!doctype html>
 | 
				
			||||||
 | 
					<html lang="en">
 | 
				
			||||||
 | 
					  <head>
 | 
				
			||||||
 | 
					    <meta charset="utf-8">
 | 
				
			||||||
 | 
					    <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
				
			||||||
 | 
					    <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: ;">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <title></title>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
 | 
				
			||||||
 | 
					    <link rel="icon" href="data:;base64,iVBORw0KGgo=">
 | 
				
			||||||
 | 
					    <link href="assets/bootstrap.min.css" rel="stylesheet" >
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <script src="assets/bootstrap.min.js" defer></script>
 | 
				
			||||||
 | 
					  </head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  <body>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <nav>
 | 
				
			||||||
 | 
					      <ul>
 | 
				
			||||||
 | 
					        <li><a href="/">         Home     </a></li>
 | 
				
			||||||
 | 
					        <li><a href="/blog">     Blog     </a></li>
 | 
				
			||||||
 | 
					        <li><a href="/projects"> Projects </a></li>
 | 
				
			||||||
 | 
					        <li><a href="/source">   Source   </a></li>
 | 
				
			||||||
 | 
					      </ul>
 | 
				
			||||||
 | 
					    </nav>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <main>
 | 
				
			||||||
 | 
					    </main>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  </body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user