Skip to content

Commit

Permalink
Jekyll WORKS
Browse files Browse the repository at this point in the history
  • Loading branch information
RexMortem committed Dec 20, 2024
1 parent 9e365e0 commit 3ba5caa
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
5 changes: 4 additions & 1 deletion Pages/Boids.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
---

<!DOCTYPE html>

<html lang="en">
Expand All @@ -8,10 +11,10 @@
<!-- CDNs -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="/SimulationLabs/Scripts/LoadHeader.js" defer></script>
</head>

<body>
{% include HeaderBar.html %}
<div id="headerBar"></div>

<!-- Page content -->
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Simulation Labs

Init
Init

# Developing

```sh
bundle exec jekyll serve
```
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ github_username: https://github.com/RexMortem
# Build settings
theme: minima
plugins:
- jekyll-feed
- jekyll-feed

# Exclude from processing.
# The following items will not be processed, by default.
Expand Down
10 changes: 2 additions & 8 deletions Scripts/LoadHeader.js → _includes/HeaderBar.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// this is a hacky way to do it, but I cba to do build/deploy stuff atm

const navCode = `
<nav class="navbar navbar-expand-lg navbar-light bg-light headerStyle">
<div class="container-fluid">
<a class="navbar-brand" href="/SimulationLabs">Simulation Labs </a>
<a class="navbar-brand" href="/SimulationLabs/">Simulation Labs </a>
<!-- This collapsible element is needed for the items to align from the left -->
<div class="collapse navbar-collapse" id="navbarMainContent">
<ul class="navbar-nav">
Expand All @@ -25,7 +22,4 @@
</ul>
</div>
</div>
</nav>
`

document.getElementById("headerBar").insertAdjacentElement("afterbegin", navCode);
</nav>
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
---

<!DOCTYPE html>

<html lang="en">
Expand All @@ -9,13 +12,12 @@
<!-- CDNs -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="/SimulationLabs/Scripts/LoadHeader.js" defer></script>
</head>

<body>
<div id="headerBar"></div>

{% include HeaderBar.html %}
<!-- Page content -->
<p> Testing testing123 </p>

</body>
</html>
6 changes: 0 additions & 6 deletions index.markdown

This file was deleted.

0 comments on commit 3ba5caa

Please sign in to comment.