forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes of the dark mode + automatic equation numbering (alshediv…
…at#160) * Add an option for showing selected publications * Improve publication styles * Update README.md * Clearfix * Fix minor issues with dark mode * Add automatic equation numbering (alshedivat#158) * Fix a typo
- Loading branch information
1 parent
b36304a
commit 4f9cdb1
Showing
8 changed files
with
58 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ _site | |
.jekyll-metadata | ||
.DS_store | ||
.ruby-version | ||
Gemfile.lock | ||
.tweet-cache/ | ||
Gemfile.lock |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
title: blank # the website title (if blank, full name will be used instead) | ||
first_name: You | ||
middle_name: R. | ||
last_name: (Long Last) Name | ||
last_name: Name | ||
email: [email protected] | ||
description: > # the ">" symbol means to ignore newlines until "footer_text:" | ||
A simple, whitespace theme for academics. Based on [*folio](https://github.com/bogoli/-folio) design. | ||
|
@@ -26,16 +26,14 @@ navbar_fixed: true | |
footer_fixed: true | ||
|
||
# Dimensions | ||
max_width: 800px | ||
max_width: 800px | ||
|
||
# TODO: add layout settings (single page vs. multi-page) | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Open Graph | ||
# ----------------------------------------------------------------------------- | ||
# Display links to the page with a preview object on social media. | ||
# To achieve this, change serve_og_meta to true and then provide the URL of the | ||
# preview image as the value of og_image. | ||
serve_og_meta: false # Include Open Graph meta tags in the HTML head | ||
og_image: # The site-wide (default for all links) Open Graph preview image | ||
|
||
|
@@ -157,7 +155,7 @@ enable_google_analytics: false | |
enable_mansory: true | ||
enable_math: true | ||
enable_tooltips: false | ||
enable_darkmode: false | ||
enable_darkmode: true | ||
show_social_icons: false | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{% if site.enable_math %} | ||
<!-- MathJax --> | ||
<script type="text/javascript"> | ||
window.MathJax = { | ||
tex: { | ||
tags: 'ams' | ||
} | ||
}; | ||
</script> | ||
<script defer type="text/javascript" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@{{ site.mathjax.version }}/es5/tex-mml-chtml.js"></script> | ||
<script defer src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> | ||
{% endif %} |
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 |
---|---|---|
@@ -1,35 +1,34 @@ | ||
$(document).ready(function() { | ||
const mode_toggle = document.getElementById("light-toggle"); | ||
|
||
mode_toggle.addEventListener("click", function() { | ||
const temp = localStorage.getItem('theme'); | ||
const temp = localStorage.getItem("theme"); | ||
toggleTheme(temp); | ||
}); | ||
|
||
let toggleTheme = (theme) => { | ||
if (theme == "dark") { | ||
setTheme(null); | ||
setTheme("light"); | ||
} else { | ||
setTheme('dark'); | ||
setTheme("dark"); | ||
} | ||
} | ||
|
||
let setTheme = (theme) => { | ||
trans(); | ||
if (theme) { | ||
document.documentElement.setAttribute('data-theme', theme) | ||
document.documentElement.setAttribute("data-theme", theme) | ||
} | ||
else { | ||
document.documentElement.removeAttribute('data-theme'); | ||
document.documentElement.removeAttribute("data-theme"); | ||
} | ||
localStorage.setItem('theme', theme); | ||
localStorage.setItem("theme", theme); | ||
}; | ||
|
||
let trans = () => { | ||
document.documentElement.classList.add('transition'); | ||
document.documentElement.classList.add("transition"); | ||
window.setTimeout(() => { | ||
document.documentElement.classList.remove('transition') | ||
}, 1000) | ||
document.documentElement.classList.remove("transition") | ||
}, 500) | ||
} | ||
}); | ||
|
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