Closed kaushalmodi closed 2 years ago
The issue stems from the fact that the broken link errors are not masked using the broken_links:t option when pre-processing the buffer. See https://github.com/kaushalmodi/ox-hugo/issues/447#issuecomment-862397524
Update: This workaround is not needed any more; fixed in https://github.com/kaushalmodi/ox-hugo/pull/596.
@Codeberg-AsGithubAlternative-buhtz
This is not a proper fix. Please undo the following workaround once this issue is fixed.
For now, I think that if you set this internal variable to nil, this issue can be bypassed. Put this in your emacs config:
(with-eval-after-load 'ox-hugo
(setq org-hugo--preprocess-buffer nil))
That is the reproducing org-file
:PROPERTIES:
:ID: 0ee70e23-8aec-44a6-abd1-8ed1935b58e8
:END:
#+title: SSH-key for Codeberg.org
+date: [2022-02-05 Sa 22:02]
#+filetags: Wiki
* Ziel
SSH-Key for Codeberg.org erstellen, um ohne Passwort [[roam:git]] nutzen zu können.
Hinweis: Jede Maschine sollte einen eigenen Key haben.
From the first view it looks like that the workaround with org-hug--preprocess-buffer
works. Instead of you I did exactly this, which IMHO is use-package
's equivalent of with-eval-after-load
.
(use-package ox-hugo
:config
(setq org-hugo-base-dir "~/tab-cloud/my.org-html")
(setq org-hugo--preprocess-buffer nil)
)
Everything is exported (over 100 files) and the last message is "Done!".
o you see that error when you export using ox-md or ox-html
I did not understand that comment. I do not know ox-md
or ox-html
and does not know if this is a function, variable, package, etc I am sorry but it is still not easy for me to dive through the emacs-universe. ;)
I do not know ox-md or ox-html
They are Org built-in exporters. But that's alright, given that that workaround worked, this issue is definitely in ox-hugo.
Unrelated:
I think you are missing a #
in the beginning of the line here on the date line:
:PROPERTIES:
:ID: 0ee70e23-8aec-44a6-abd1-8ed1935b58e8
:END:
#+title: SSH-key for Codeberg.org
+date: [2022-02-05 Sa 22:02]
Unrelated: I think you are missing a
#
in the beginning of the line here on the date line:
IMHO I do not. Some orgroam folks told me that this is editors decision if someone use #+
or +
. I saw both variants in a lot of tutorials and videos I wondered about that in the beginning.
But I am not sure about this. And I can not find my original question again.
I have personally never used or seen keywords begin with a plain +
.
See the Org manual: https://orgmode.org/manual/In_002dbuffer-Settings.html
I saw both variants in a lot of tutorials and videos I wondered about that in the beginning.
If you see this again, I think you should report that issue. I am actually surprised if the keywords starting with just "+" are even getting parsed for you.
@Codeberg-AsGithubAlternative-buhtz If you don't do subtree-based export (which I believe would be the case if you have only org-roam files), this issue is fixed for you indirectly by the nature of fixing https://github.com/kaushalmodi/ox-hugo/issues/589.
I'll leave this issue open until it truly gets fixed.
You can remove this workaround now.
Status
broken-links:t
setting when set using global keyword#+options:
- Fixed in https://github.com/kaushalmodi/ox-hugo/pull/588broken-links:t
setting when set using heading properties:EXPORT_OPTIONS:
-- ~TBD Gated by this possible bug in upstreamox-el
~ - Fixed in https://github.com/kaushalmodi/ox-hugo/pull/596.Discussed in https://github.com/kaushalmodi/ox-hugo/discussions/586