File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 27
27
// Function to load the YAML file
28
28
async function loadAuthorData ( ) {
29
29
try {
30
- const response = await fetch ( '../.. /authors.yml' ) ;
30
+ const response = await fetch ( '/authors.yml' ) ;
31
31
const yamlText = await response . text ( ) ;
32
32
window . authorData = jsyaml . load ( yamlText ) ;
33
33
initializeAuthors ( ) ;
Original file line number Diff line number Diff line change 10
10
video . playsInline = true ;
11
11
video . loop = false ;
12
12
video . playbackRate = 1.0 ;
13
+
14
+ // Get base URL from an existing resource we know works
15
+ const baseUrl = logoImg . src . substring ( 0 , logoImg . src . lastIndexOf ( '/assets/' ) ) ;
16
+
13
17
const source = document . createElement ( "source" ) ;
14
- source . src = "../.. /assets/logo_movie.mp4";
18
+ source . src = baseUrl + " /assets/logo_movie.mp4";
15
19
source . type = "video/mp4" ;
16
20
video . appendChild ( source ) ;
17
21
Original file line number Diff line number Diff line change 3
3
< div class ="mini-title-content ">
4
4
< div class ="mini-title-logo-wrapper ">
5
5
< a href ="https://research.arcadiascience.com/ ">
6
- < img src ="../../assets/logo_white.png " alt ="Logo ">
6
+ < img class =" logo-white " src ="" alt ="Logo ">
7
7
</ a >
8
8
</ div >
9
9
< p > </ p >
21
21
const navbar = document . querySelector ( '#quarto-header' ) ;
22
22
let prevRatio = { appear : 1 , disappear : 1 } ;
23
23
24
+ // Get base URL from an existing resource we know works (navbar logo)
25
+ const navbarLogo = document . querySelector ( '.navbar-logo' ) ;
26
+ if ( navbarLogo ) {
27
+ const baseUrl = navbarLogo . src . substring ( 0 , navbarLogo . src . lastIndexOf ( '/assets/' ) ) ;
28
+ const logoPath = baseUrl + '/assets/logo_white.png' ;
29
+ template . content . querySelector ( '.logo-white' ) . src = logoPath ;
30
+ }
31
+
24
32
if ( template && titleBanner && abstract && navbar ) {
25
33
// Add the mini title to the document body
26
34
const miniTitleContent = document . importNode ( template . content , true ) ;
You can’t perform that action at this time.
0 commit comments