Add bootstrap and index.html

This commit is contained in:
Balakrishnan Balasubramanian 2023-03-16 00:08:25 -04:00
parent 246e543ddc
commit 6ec522997f
7 changed files with 68 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/dist
/build

4
Makefile Normal file
View 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

File diff suppressed because one or more lines are too long

7
assets/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

13
build.sh Executable file
View 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
View 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
View 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>