emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Migrating from HUGO to org-publish
@ 2020-05-08  4:19 Alejandro Alcalde
  2020-05-23  9:14 ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Alejandro Alcalde @ 2020-05-08  4:19 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]

Hello, I am looking to migrate from Hugo to org-publish, is there an easy
way? I’ve have found several guides to migrate from jekyll, like this one:
https://duncan.codes/posts/2019-09-03-migrating-from-jekyll-to-org/index.html
2
<https://duncan.codes/posts/2019-09-03-migrating-from-jekyll-to-org/index.html>

Unfortunately I do not know how to do it smoothly with my set up.

I have some posts written in plain org, that is no problem. But I also have
the majority of my blog posts written in markdown (With YAML header and
TOML header), since I once migrated from Jekyll to Hugo.

I though maybe pandoc could help me in the process, but when converting a
markdown file to org, I am loosing all TOML or YAML headers, so the
resulting org file have no #+ properties.

Any suggestions? I could write some python code that read YAML and TOML
headers and output, but I have lots of custom headers (
https://github.com/elbaulp/algui91-hugo/blob/master/content/post/create-deploy-telegram-bot.en.md)
like url that will cause 404 errors when migrating to org-publish

Thanks and Have a nice day.
*-- Alejandro Alcalde - elbauldelprogramador.com
<http://elbauldelprogramador.com/en>*

[-- Attachment #2: Type: text/html, Size: 2834 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Migrating from HUGO to org-publish
@ 2020-05-12 12:40 Alejandro Alcalde
  2020-12-10  6:42 ` Alejandro Alcalde
  0 siblings, 1 reply; 6+ messages in thread
From: Alejandro Alcalde @ 2020-05-12 12:40 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]

Hello, I am looking to migrate from Hugo to org-publish, is there an easy
way? I’ve have found several guides to migrate from jekyll, like this one:
https://duncan.codes/posts/2019-09-03-migrating-from-jekyll-to-org/index.html
2
<https://duncan.codes/posts/2019-09-03-migrating-from-jekyll-to-org/index.html>

Unfortunately I do not know how to do it smoothly with my set up.

I have some posts written in plain org, that is no problem. But I also have
the majority of my blog posts written in markdown (With YAML header and
TOML header), since I once migrated from Jekyll to Hugo.

I though maybe pandoc could help me in the process, but when converting a
markdown file to org, I am loosing all TOML or YAML headers, so the
resulting org file have no #+ properties.

Any suggestions? I could write some python code that read YAML and TOML
headers and output, but I have lots of custom headers (
https://github.com/elbaulp/algui91-hugo/blob/master/content/post/create-deploy-telegram-bot.en.md)
like url that will cause 404 errors when migrating to org-publish

Thanks and Have a nice day.


*-- Alejandro Alcalde - elbauldelprogramador.com
<http://elbauldelprogramador.com/en>*

[-- Attachment #2: Type: text/html, Size: 2881 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Migrating from HUGO to org-publish
  2020-05-08  4:19 Migrating from HUGO to org-publish Alejandro Alcalde
@ 2020-05-23  9:14 ` Bastien
  2020-05-23  9:32   ` Alejandro Alcalde
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2020-05-23  9:14 UTC (permalink / raw)
  To: Alejandro Alcalde; +Cc: emacs-orgmode

Hi Alejandro,

Alejandro Alcalde <algui91@gmail.com> writes:

> Hello, I am looking to migrate from Hugo to org-publish, is there an
> easy way? I’ve have found several guides to migrate from jekyll, like
> this one: https://duncan.codes/posts/
> 2019-09-03-migrating-from-jekyll-to-org/index.html 2

I don't have any useful suggestion here, but if you finally manage to
do the conversion, please consider explaining how you did it to other
users, they'll surely appreciate it.

Thanks!

-- 
 Bastien


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Migrating from HUGO to org-publish
  2020-05-23  9:14 ` Bastien
@ 2020-05-23  9:32   ` Alejandro Alcalde
  2020-05-26 23:58     ` James R Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Alejandro Alcalde @ 2020-05-23  9:32 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

Hello Bastien,
thanks for replying. I am considering this post:
http://duncan.codes/posts/2019-09-03-migrating-from-jekyll-to-org/index.html

But I still need to figure out how I will try to avoid loosing too much
traffic due to 404 caused by blog posts not pointing to the same url.

Will keep you posted.

Bests
*-- Alejandro Alcalde - elbauldelprogramador.com
<http://elbauldelprogramador.com/en>*


On Sat, May 23, 2020 at 11:15 AM Bastien <bzg@gnu.org> wrote:

> Hi Alejandro,
>
> Alejandro Alcalde <algui91@gmail.com> writes:
>
> > Hello, I am looking to migrate from Hugo to org-publish, is there an
> > easy way? I’ve have found several guides to migrate from jekyll, like
> > this one: https://duncan.codes/posts/
> > 2019-09-03-migrating-from-jekyll-to-org/index.html 2
>
> I don't have any useful suggestion here, but if you finally manage to
> do the conversion, please consider explaining how you did it to other
> users, they'll surely appreciate it.
>
> Thanks!
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 1976 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Migrating from HUGO to org-publish
  2020-05-23  9:32   ` Alejandro Alcalde
@ 2020-05-26 23:58     ` James R Miller
  0 siblings, 0 replies; 6+ messages in thread
From: James R Miller @ 2020-05-26 23:58 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

Alejandro,

Have you tried ox-hugo? There's an org exporter to Hugo. I use it and it works pretty much flawlessly. 

--
 James Miller
 james.ryland.miller@gmail.com


[-- Attachment #2: Type: text/html, Size: 469 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Migrating from HUGO to org-publish
  2020-05-12 12:40 Alejandro Alcalde
@ 2020-12-10  6:42 ` Alejandro Alcalde
  0 siblings, 0 replies; 6+ messages in thread
From: Alejandro Alcalde @ 2020-12-10  6:42 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

Hello, at the end I manage to migrate without losing all hugo content.

https://elbauldelprogramador.com/org-posts/migrating-from-hugo-to-org-mode.html


Alejandro Alcalde <algui91@gmail.com> schrieb am Di. 12. Mai 2020 um 14:40:

> Hello, I am looking to migrate from Hugo to org-publish, is there an easy
> way? I’ve have found several guides to migrate from jekyll, like this one:
> https://duncan.codes/posts/2019-09-03-migrating-from-jekyll-to-org/index.html
> 2
> <https://duncan.codes/posts/2019-09-03-migrating-from-jekyll-to-org/index.html>
>
> Unfortunately I do not know how to do it smoothly with my set up.
>
> I have some posts written in plain org, that is no problem. But I also
> have the majority of my blog posts written in markdown (With YAML header
> and TOML header), since I once migrated from Jekyll to Hugo.
>
> I though maybe pandoc could help me in the process, but when converting a
> markdown file to org, I am loosing all TOML or YAML headers, so the
> resulting org file have no #+ properties.
>
> Any suggestions? I could write some python code that read YAML and TOML
> headers and output, but I have lots of custom headers (
> https://github.com/elbaulp/algui91-hugo/blob/master/content/post/create-deploy-telegram-bot.en.md)
> like url that will cause 404 errors when migrating to org-publish
>
> Thanks and Have a nice day.
>
>
> *-- Alejandro Alcalde - elbauldelprogramador.com
> <http://elbauldelprogramador.com/en>*
>
-- 
*-- Alejandro Alcalde - elbauldelprogramador.com
<http://elbauldelprogramador.com/en>*

[-- Attachment #2: Type: text/html, Size: 4418 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-10  6:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-08  4:19 Migrating from HUGO to org-publish Alejandro Alcalde
2020-05-23  9:14 ` Bastien
2020-05-23  9:32   ` Alejandro Alcalde
2020-05-26 23:58     ` James R Miller
  -- strict thread matches above, loose matches on Subject: below --
2020-05-12 12:40 Alejandro Alcalde
2020-12-10  6:42 ` Alejandro Alcalde

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).