From 6808d71ca5c255d30903735d9c84fe6d77020fb2 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Tue, 31 Dec 2024 13:26:07 -0500 Subject: [PATCH] Basic 11ty config and index page with base layout --- .eleventy.js | 10 +++++ docker/Dockerfile | 2 +- index.html | 7 --- justfile | 2 +- src/_includes/base.html | 30 +++++++++++++ src/index.html | 66 ----------------------------- src/index.md | 12 ++++++ src/{style/styles.css => style.css} | 0 8 files changed, 54 insertions(+), 75 deletions(-) create mode 100644 .eleventy.js delete mode 100644 index.html create mode 100644 src/_includes/base.html delete mode 100644 src/index.html create mode 100644 src/index.md rename src/{style/styles.css => style.css} (100%) diff --git a/.eleventy.js b/.eleventy.js new file mode 100644 index 0000000..c5f5740 --- /dev/null +++ b/.eleventy.js @@ -0,0 +1,10 @@ +module.exports = function (eleventyConfig) { + eleventyConfig.addPassthroughCopy("./src/style.css"); + + return { + dir: { + input: "src", + output: "public", + }, + }; +}; diff --git a/docker/Dockerfile b/docker/Dockerfile index ec08840..01a0788 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -5,6 +5,6 @@ WORKDIR /opt/app RUN npm init -y RUN npm install @11ty/eleventy -COPY ./src . +COPY . . CMD [ "npx", "@11ty/eleventy" ] diff --git a/index.html b/index.html deleted file mode 100644 index 0b46e67..0000000 --- a/index.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/justfile b/justfile index 7eec2fc..02c4ff4 100644 --- a/justfile +++ b/justfile @@ -10,4 +10,4 @@ build: # Run development server dev: build - docker run -p 1280:8080 11ty:latest npx @11ty/eleventy --serve + docker run -it -p 1280:8080 11ty:latest npx @11ty/eleventy --serve diff --git a/src/_includes/base.html b/src/_includes/base.html new file mode 100644 index 0000000..091dd5a --- /dev/null +++ b/src/_includes/base.html @@ -0,0 +1,30 @@ + + + + + {{ title }} + + + + + + + {{ content }} + + + + diff --git a/src/index.html b/src/index.html deleted file mode 100644 index ac02530..0000000 --- a/src/index.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Sravan Balaji - - - - - -
-
-
-

Welcome!

-

- Welcome to my personal website! This started out as a side project - to learn about web development and UI design, but it has since - expanded into a professional portfolio and blog (sort of). If you - are a fan of dark mode, try out the toggle button in the upper right - corner! - -

- - On this website, you can find information about my - educational and - professional career - as well as some of my - personal interests. If you are looking - to create your own website and are curious about how I created and - hosted this one, please see the - documentation - page. - -

- - This website is a constant work in progress and updates will be made - as I find time. You can follow development and make suggestions on - GitHub. -

-
-
-
- - - - diff --git a/src/index.md b/src/index.md new file mode 100644 index 0000000..ca899d7 --- /dev/null +++ b/src/index.md @@ -0,0 +1,12 @@ +--- +title: Sravan Balaji +layout: "base.html" +--- + +# Welcome! + +Welcome to my personal website! This started out as a side project to learn about web development and UI design, but it has since expanded into a professional portfolio and blog (sort of). If you are a fan of dark mode, try out the toggle button in the upper right corner! + +On this website, you can find information about my [educational](./portfolio.html#education) and [professional career](./portfolio.html#professional_experience as well as some of my [personal interests](./personal.html). If you are looking to create your own website and are curious about how I created and hosted this one, please see the [documentation](./documentation.html) page. + +This website is a constant work in progress and updates will be made as I find time. You can follow development and make suggestions on [GitHub](https://github.com/balajsra/sravanbalaji.com). diff --git a/src/style/styles.css b/src/style.css similarity index 100% rename from src/style/styles.css rename to src/style.css