Skip to content

Commit

Permalink
Update nav buttons and add css
Browse files Browse the repository at this point in the history
  • Loading branch information
Yijun2 committed Feb 13, 2024
1 parent d2a6680 commit d8900da
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
remote_theme: pages-themes/[email protected]
plugins:
- jekyll-remote-theme # add this line to the plugins list if you already have one
name: Git internals
name: Git internals
show_downloads: true
11 changes: 8 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
<div id="header">
<nav>
<ul>
<li class="fork"><a href="{{ site.github.repository_url }}">View On GitHub</a></li>
<!-- {% if site.show_downloads %} -->
<li class="fork">
<a href="{{ site.github.repository_url }}">View On GitHub</a>
</li>
<li class="nav-btn">
<a href="https://bruswei.github.io/git-workshop-24/">Home</a>
</li>
{% if site.show_downloads %}
<li class="downloads"><a href="{{ site.github.zip_url }}">ZIP</a></li>
<li class="downloads"><a href="{{ site.github.tar_url }}">TAR</a></li>
<li class="title">DOWNLOADS</li>
<!-- {% endif %} -->
{% endif %}
</ul>
</nav>
</div><!-- end header -->
Expand Down
File renamed without changes.
30 changes: 29 additions & 1 deletion assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
---
---

@import "jekyll-theme-midnight";
@import "jekyll-theme-midnight";

#header nav ul {
display: flex;
justify-content: space-between;
padding: 0;
margin: 0;
list-style-type: none;
}

#header nav ul li.fork {
flex: 1;
text-align: left;
}

#header nav ul li.nav-btn {
flex: 1;
text-align: right;
}

/* Add any additional styling you need for the links here */
#header nav ul li a {
display: inline-block;
/* other styles like padding, margin, color, etc. */
}

#header nav {
background-color: #353535; /* This will remove any background color */
}
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
title: Git workshop Booster 2024
---

## About this Workshop
Expand Down

0 comments on commit d8900da

Please sign in to comment.