Index.html Code Explanation:
-
Document Structure and Type Declaration:
- The document begins with a DOCTYPE declaration, indicating that it's an HTML5 document.
- The HTML structure consists of elements like
<html>
,<head>
, and<body>
.
-
Head Section:
- The
<head>
section includes metadata and links to external resources. - It sets the document title, character set, and viewport settings.
- Additionally, internal CSS styles for page layout and design are defined within the
<style>
tags.
- The
-
Body Content:
- The
<body>
section contains the visible content of the webpage. - It starts with a
<header>
displaying the title "Quantitative Trading and Analysis Portfolio". - The main content is organized within
<section>
elements, each comprising an<h2>
heading and<p>
paragraph for text content.
- The
-
Footer:
- The footer section provides contact information, including email and LinkedIn profile links.
-
Styling:
- CSS styles within the
<style>
tags define the visual presentation of the content, including fonts, colors, and layout.
- CSS styles within the
GitHub Pages Deployment with Jekyll:
-
Workflow Setup:
- A GitHub Actions workflow named
jekyll-gh-pages.yml
is configured within the repository's.github/workflows
directory. - This workflow automates the build and deployment process of the Jekyll site to GitHub Pages.
- A GitHub Actions workflow named
-
Workflow Triggers:
- The workflow triggers on pushes to the default branch (main) and can also be manually triggered from the GitHub Actions tab.
-
Workflow Structure:
- The workflow comprises two jobs:
build
anddeploy
, each executing specific tasks. - The
build
job runs on an Ubuntu environment, responsible for generating the Jekyll site. - Following the
build
job, thedeploy
job deploys the built site to GitHub Pages.
- The workflow comprises two jobs:
-
Permissions and Concurrency:
- Permissions are set to allow the workflow to read repository contents and write to GitHub Pages.
- Concurrency settings ensure only one concurrent deployment, avoiding potential conflicts.
-
YAML Code Explanation:
- YAML code within the workflow file (
jekyll-gh-pages.yml
) defines the workflow's structure, including event triggers, permissions, concurrency settings, jobs, and steps. - Each step in the workflow executes specific actions, such as checking out the repository, building the Jekyll site, and deploying to GitHub Pages.
- YAML code within the workflow file (
To visit the site: https://yllvar.github.io/j4nt4n/