This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
forked from sauricat/hugo-theme-book
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [+] Add navigation bar * [F] Fix typo * [U] Update License * [F] Fix padding * [U] Update uniguide url * [F] Fix mobile display * [S] better navigation bar * [R] Revert "[S] better navigation bar" This reverts commit cbd9154. * [U] Update logo * [F] Fix padding * [U] Add toggle button for dark/light mode * [F] Fix dark mode toggle button * [U] optimize style selection logic (#1) * [U] optimize logic of confirming current site * [U] support different languages of Uniguide * [U] alter navbar style --------- Co-authored-by: sauricat <[email protected]> Co-authored-by: Elihuso Quigley <[email protected]> Co-authored-by: Linzh <[email protected]>
- Loading branch information
1 parent
d9ec6c0
commit dda7a25
Showing
6 changed files
with
137 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,28 @@ | |
<body dir="{{ default "ltr" .Site.Language.LanguageDirection }}"> | ||
<input type="checkbox" class="hidden toggle" id="menu-control" /> | ||
<input type="checkbox" class="hidden toggle" id="toc-control" /> | ||
<div class="navigation-bar"> | ||
<li><a class="placeholder"></a></li> | ||
<li><img src="https://oau.edu.kg/[email protected]"></li> | ||
<li><a class="title">Trans in Academia! </a></li> | ||
<li><a class="placeholder"> </a></li> | ||
|
||
<li><a href="https://oau.edu.kg" class="notcurrent">Events</a></li> | ||
|
||
{{ $libClass := "notcurrent" }} | ||
{{ $guideClass := "notcurrent" }} | ||
|
||
{{ if eq .Site.Title "Trans in Academia! 文章资料库" }} | ||
{{ $libClass = "current" }} | ||
{{ else if or (eq .Site.Title "Transgender University Guidance") (eq .Site.Title "跨性别选校手册") (eq .Site.Title "跨性別選校手冊") }} | ||
{{ $guideClass = "current" }} | ||
{{ end }} | ||
|
||
<li><a href="https://lib.oau.edu.kg" class="{{ $libClass }}">Library</a></li> | ||
<li><a href="https://uniguide.oau.edu.kg" class="{{ $guideClass }}">UniGuide</a></li> | ||
|
||
<button onclick="toggle()">👁</button> | ||
</div> | ||
<main class="container flex"> | ||
<aside class="book-menu"> | ||
<div class="book-menu-content"> | ||
|
@@ -81,3 +103,9 @@ | |
{{ define "toc" }} | ||
{{ partial "docs/toc" . }} | ||
{{ end }} | ||
|
||
<script> | ||
function toggle() { | ||
document.body.classList.toggle("dark-mode"); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters