various path fixes
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
				
			|||||||
baseURL = "https://quartz.jzhao.xyz/"
 | 
					#baseURL = "https://quartz.jzhao.xyz/"
 | 
				
			||||||
 | 
					baseURL = "https://jackyzha0.github.io/quartz/"
 | 
				
			||||||
languageCode = "en-us"
 | 
					languageCode = "en-us"
 | 
				
			||||||
googleAnalytics = "G-XYFD95KB4J"
 | 
					googleAnalytics = "G-XYFD95KB4J"
 | 
				
			||||||
pygmentsUseClasses = true
 | 
					pygmentsUseClasses = true
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
  const curPage = {{ strings.TrimRight "/" .Page.RelPermalink }}
 | 
					  const curPage = {{ strings.TrimRight "/" .Page.RelPermalink }}.replace({{strings.TrimRight "/" .Site.BaseURL }}, "")
 | 
				
			||||||
  const pathColors = {{$.Site.Data.graphConfig.paths}}
 | 
					  const pathColors = {{$.Site.Data.graphConfig.paths}}
 | 
				
			||||||
  let depth = {{$.Site.Data.graphConfig.depth}}
 | 
					  let depth = {{$.Site.Data.graphConfig.depth}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,10 +7,11 @@
 | 
				
			|||||||
    return template.content.firstChild
 | 
					    return template.content.firstChild
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  const pathRegex = /\.\.(\/\.\.)*/
 | 
				
			||||||
  document.addEventListener("DOMContentLoaded", () => {
 | 
					  document.addEventListener("DOMContentLoaded", () => {
 | 
				
			||||||
    [...document.getElementsByClassName("internal-link")]
 | 
					    [...document.getElementsByClassName("internal-link")]
 | 
				
			||||||
      .forEach(li => {
 | 
					      .forEach(li => {
 | 
				
			||||||
        const linkDest = content[li.dataset.src]
 | 
					        const linkDest = content[li.dataset.src.replace(pathRegex, '')]
 | 
				
			||||||
        if (linkDest) {
 | 
					        if (linkDest) {
 | 
				
			||||||
          const popoverElement = `<div class="popover">
 | 
					          const popoverElement = `<div class="popover">
 | 
				
			||||||
    <h3>${linkDest.title}</h3>
 | 
					    <h3>${linkDest.title}</h3>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user