Skip to content

Commit fb93d33

Browse files
committed
website update: 2025-07-19 00:44:02
1 parent 2c747c5 commit fb93d33

File tree

6 files changed

+142
-13
lines changed

6 files changed

+142
-13
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ node_modules/
4949
# Academic-specific ignores
5050
# Uncomment if you don't want to track these
5151
# assets/pdfs/
52-
# assets/images/personal/
52+
# assets/images/personal/
53+
.obsidian/workspace*.json

_layouts/default.html

100644100755
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,29 @@
1515
<link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg">
1616
<link rel="alternate icon" href="/assets/images/favicon.ico">
1717

18+
<!-- MathJax for LaTeX rendering -->
19+
<script>
20+
MathJax = {
21+
tex: {
22+
inlineMath: [['$', '$'], ['\\(', '\\)']],
23+
displayMath: [['$$', '$$'], ['\\[', '\\]']],
24+
processEscapes: true,
25+
processEnvironments: true,
26+
packages: {'[+]': ['ams', 'newcommand', 'configmacros']}
27+
},
28+
options: {
29+
ignoreHtmlClass: 'tex2jax_ignore',
30+
processHtmlClass: 'tex2jax_process'
31+
},
32+
svg: {
33+
fontCache: 'global'
34+
}
35+
};
36+
</script>
37+
<script type="text/javascript" id="MathJax-script" async
38+
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
39+
</script>
40+
1841
<!-- Academic structured data -->
1942
{% if page.layout == 'publication' or page.collection == 'publications' %}
2043
<script type="application/ld+json">

assets/css/main.scss

100644100755
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,40 @@ tbody tr:nth-child(even) {
505505
}
506506
}
507507

508+
// MathJax styling
509+
.MathJax {
510+
font-size: 1em !important;
511+
}
512+
513+
mjx-container[jax="SVG"] > svg {
514+
max-width: 100%;
515+
height: auto;
516+
}
517+
518+
// Ensure math expressions use Computer Modern when possible
519+
mjx-container[jax="SVG"] {
520+
font-family: 'Computer Modern Serif', 'Times New Roman', serif;
521+
}
522+
523+
// Inline math styling
524+
mjx-container[display="false"] {
525+
margin: 0 0.1em;
526+
}
527+
528+
// Display math styling
529+
mjx-container[display="true"] {
530+
margin: 1em auto;
531+
display: block;
532+
text-align: center;
533+
}
534+
535+
// Math in abstracts and content
536+
.abstract mjx-container,
537+
.publication-item mjx-container,
538+
.card mjx-container {
539+
color: inherit;
540+
}
541+
508542
// Print Styles
509543
@media print {
510544
body {
@@ -530,4 +564,10 @@ tbody tr:nth-child(even) {
530564
.cv-section {
531565
page-break-inside: avoid;
532566
}
567+
568+
// Ensure math renders properly in print
569+
mjx-container[jax="SVG"] > svg {
570+
max-width: 100% !important;
571+
height: auto !important;
572+
}
533573
}

update-design.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ TEMP_DIR=$(mktemp -d)
4545
cd "$TEMP_DIR"
4646

4747
# Download latest template
48-
if ! curl -L "https://github.com/mechanicpanic/academic-website/archive/main.zip" -o template.zip; then
48+
if ! curl -L "https://github.com/mechanicpanic/academic-website/archive/master.zip" -o template.zip; then
4949
echo -e "${RED}❌ Failed to download template${NC}"
5050
exit 1
5151
fi
@@ -56,7 +56,7 @@ if ! unzip -q template.zip; then
5656
exit 1
5757
fi
5858

59-
cd academic-website-main
59+
cd academic-website-master
6060

6161
# Go back to original directory
6262
cd "$OLDPWD"
@@ -68,7 +68,7 @@ DESIGN_FILES=(
6868
"_layouts"
6969
"_includes"
7070
"_sass"
71-
"assets/css"
71+
"assets/css/main.scss"
7272
".github/workflows"
7373
"update-design.sh"
7474
)
@@ -78,16 +78,20 @@ echo -e "${BLUE}💾 Creating backup...${NC}"
7878
mkdir -p .design-backup
7979
for file in "${DESIGN_FILES[@]}"; do
8080
if [ -e "$file" ]; then
81-
cp -r "$file" ".design-backup/" 2>/dev/null || true
81+
# Create parent directory in backup if needed
82+
mkdir -p ".design-backup/$(dirname "$file")" 2>/dev/null || true
83+
cp -r "$file" ".design-backup/$(dirname "$file")/" 2>/dev/null || true
8284
fi
8385
done
8486

8587
# Update design files
8688
for file in "${DESIGN_FILES[@]}"; do
87-
if [ -e "$TEMP_DIR/academic-website-main/$file" ]; then
89+
if [ -e "$TEMP_DIR/academic-website-master/$file" ]; then
8890
echo " Updating $file"
91+
# Create parent directory if needed
92+
mkdir -p "$(dirname "$file")" 2>/dev/null || true
8993
rm -rf "$file" 2>/dev/null || true
90-
cp -r "$TEMP_DIR/academic-website-main/$file" "$file"
94+
cp -r "$TEMP_DIR/academic-website-master/$file" "$file"
9195
fi
9296
done
9397

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"commitMessage": "website update: {{date}}",
3+
"autoCommitMessage": "website update: {{date}}",
4+
"commitMessageScript": "",
5+
"commitDateFormat": "YYYY-MM-DD HH:mm:ss",
6+
"autoSaveInterval": 0,
7+
"autoPushInterval": 0,
8+
"autoPullInterval": 0,
9+
"autoPullOnBoot": false,
10+
"disablePush": false,
11+
"pullBeforePush": true,
12+
"disablePopups": false,
13+
"showErrorNotices": true,
14+
"disablePopupsForNoChanges": false,
15+
"listChangedFilesInMessageBody": false,
16+
"showStatusBar": true,
17+
"updateSubmodules": false,
18+
"syncMethod": "merge",
19+
"customMessageOnAutoBackup": false,
20+
"autoBackupAfterFileChange": false,
21+
"treeStructure": false,
22+
"refreshSourceControl": true,
23+
"basePath": "",
24+
"differentIntervalCommitAndPush": false,
25+
"changedFilesInStatusBar": false,
26+
"showedMobileNotice": true,
27+
"refreshSourceControlTimer": 7000,
28+
"showBranchStatusBar": true,
29+
"setLastSaveToLastCommit": false,
30+
"submoduleRecurseCheckout": false,
31+
"gitDir": "",
32+
"showFileMenu": true,
33+
"authorInHistoryView": "hide",
34+
"dateInHistoryView": false,
35+
"diffStyle": "split",
36+
"lineAuthor": {
37+
"show": false,
38+
"followMovement": "inactive",
39+
"authorDisplay": "initials",
40+
"showCommitHash": false,
41+
"dateTimeFormatOptions": "date",
42+
"dateTimeFormatCustomString": "YYYY-MM-DD HH:mm",
43+
"dateTimeTimezone": "viewer-local",
44+
"coloringMaxAge": "1y",
45+
"colorNew": {
46+
"r": 255,
47+
"g": 150,
48+
"b": 150
49+
},
50+
"colorOld": {
51+
"r": 120,
52+
"g": 160,
53+
"b": 255
54+
},
55+
"textColorCss": "var(--text-muted)",
56+
"ignoreWhitespace": false,
57+
"gutterSpacingFallbackLength": 5,
58+
"lastShownAuthorDisplay": "initials",
59+
"lastShownDateTimeFormatOptions": "date"
60+
}
61+
}

vault/_pages/contact.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ I welcome inquiries from students, researchers, collaborators, and industry prof
1111
## Primary Contact
1212

1313
**Email:** {{ site.email }}
14-
**Office:** Extranef 134
14+
**Office:** Extranef 134
1515
**Mailing Address:**
16-
Department des Sciences Actuarielles
17-
Université de Lausanne
18-
Bâtiment Extranef
19-
Quartier Dorigny,
20-
1015 Lausanne,
16+
Department des Sciences Actuarielles
17+
Université de Lausanne
18+
Bâtiment Extranef
19+
Quartier Dorigny,
20+
1015 Lausanne,
2121
Switzerland
2222

2323
## Academic Profiles

0 commit comments

Comments
 (0)