Skip to content

Commit

Permalink
fixed header
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelpadilla committed Nov 24, 2023
1 parent 97fcf5c commit 5d40a24
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
11 changes: 9 additions & 2 deletions Files/python/header.html β†’ Files/python/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@
<link href='/Source/style.css' rel='stylesheet'>

<!-- Navigation Bar Inclusion Function -->
<script>
<!-- <script>
$(function () {
$("#navigation-bar").load("/Source/navigation-bar.html");
});
</script>
</script> -->

<nav>
<a class="nav-first" href="/">Marcel Padilla πŸŽ“</a>
<a href="/#Publications">Publications πŸ“œ</a>
<a href="/#Teaching">Teaching πŸ“–</a>
<a href="/#AboutMe">About Me πŸ“Œ</a>
</nav>

</head>
2 changes: 1 addition & 1 deletion Files/python/update_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def replace_header(source_file, target_file, title_name):

index_dir = cwd

header_file = os.path.join(script_dir, "header.html")
header_file = os.path.join(script_dir, "head.html")
index_file = os.path.join(index_dir, "index.html")
custom_title = "Marcel Padilla" # Replace with your desired title

Expand Down
13 changes: 10 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@
<link href='/Source/style.css' rel='stylesheet'>

<!-- Navigation Bar Inclusion Function -->
<script>
<!-- <script>
$(function () {
$("#navigation-bar").load("/Source/navigation-bar.html");
});
</script>
</script> -->

<nav>
<a class="nav-first" href="/">Marcel Padilla πŸŽ“</a>
<a href="/#Publications">Publications πŸ“œ</a>
<a href="/#Teaching">Teaching πŸ“–</a>
<a href="/#AboutMe">About Me πŸ“Œ</a>
</nav>

<title>Marcel Padilla</title>
<title>Marcel Padilla</title>

</head>

Expand Down

0 comments on commit 5d40a24

Please sign in to comment.