Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hugo-Obsidian File Indexing For Windows #18

Closed
quartztester opened this issue Oct 2, 2021 · 7 comments
Closed

Hugo-Obsidian File Indexing For Windows #18

quartztester opened this issue Oct 2, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@quartztester
Copy link

quartztester commented Oct 2, 2021

Windows "/" is messing with how files are structed on the site index. This is leading to the interactive graph being dysfunctional. Such as the loss of the "red dot" on which page the user is currently on as well as the connections not being accurate.

Attachment(.txt) 1. hugo-obsidian out put for "hugo-obsidian -input=content -output=data -index=true" on cloned site https://quartz.jzhao.xyz/
Image 2. Working graph on https://quartz.jzhao.xyz/
Image 3. Non-working graph with "hugo server"

Hugo-Obsidian output.txt
quartz jzhao xyz graph
local 'server hugo' graph

File comparisons (converted to TXT for YAML)

linkIndex(Windows).txt
linkIndex(Linux).txt

contentIndex(Windows).txt
contentIndex(Linux).txt

@quartztester quartztester changed the title Hugo-obsidian file indexing for Windows Hugo-Obsidian File Indexing For Windows Oct 2, 2021
@jackyzha0 jackyzha0 added the bug Something isn't working label Oct 14, 2021
@bur3ku
Copy link
Contributor

bur3ku commented Oct 23, 2021

do backlinks work for you?

@bur3ku
Copy link
Contributor

bur3ku commented Oct 23, 2021

this issue is fixed on windows when all the backslashes of the paths in linkIndex.yaml and contextIndex.yaml and switched to forwardslashes. I'll try to figure out how to do that and I'll make a pull request on https://github.com/jackyzha0/hugo-obsidian

@quartztester
Copy link
Author

Correct. The only issue is that all backslashes introduced with running the command on windows need to be switched to forward slashes.

I don't remember exactly if backlinks worked. In the meantime I have been using a VM to solve the issue.

@bur3ku
Copy link
Contributor

bur3ku commented Oct 23, 2021

looks like it's a one-line fix. I'm trying to figure out how to test it, hang on

@bur3ku
Copy link
Contributor

bur3ku commented Oct 24, 2021

submitted pr on hugo-obsidian: jackyzha0/hugo-obsidian#4

@jackyzha0
Copy link
Owner

Thanks for the PR @bur3ku! Will close this in the next patch

@jackyzha0
Copy link
Owner

Should be fixed now! Pull the latest changes and let me know if you run into this still.

gamberoillecito added a commit to gamberoillecito/QuantumEngPolitoNotes that referenced this issue Feb 4, 2024
Mara-Li referenced this issue in Mara-Li/owlly-lab Feb 12, 2024
* PUSH NOTE : Sara White.md

* PUSH ATTACHMENT : Sara-portrait.jpg

* PUSH ATTACHMENT : IMG_0758.jpeg

* PUSH ATTACHMENT : kris-thaler-pistol-rev3a.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants