Exporting all Joomla articles to Markdown

In the process of migrating my personal blog to a static site generator I migrated all of my contents to markdown files using a plug in I found online. Joomla to Grav

Transcript (English)

Hello YouTube, this is Cristian Herrera. This is just a quick video update and I want to say thank you to hugoaf—gracias, plug-in parabula. He seems to be Mexican; I checked his page, he has a web service company in Tijuana, so I thanked him in Spanish.

Why this plug-in: I have a personal blog I haven’t used for many years. I started it in the ’90s when I started using the internet. I wrote it in Perl with early dynamic page tech; you could output HTML from any language—even Bash; I made a college project with a Bash-generated web interface.

Now I’m going to try writing a simple static site generator in POSIX sh (maybe compile) and shell script. I’m rusty—I haven’t coded seriously for 10–15 years—so this will dust off old skills. My old site is messy (auto AdSense everywhere, not updated since last century), but it has content I want to export and translate to English.

Examples: “How unsecure is your wireless network” (how easy WEP/WPA were to hack), some political stuff, WordPress flaws, internet marketing, guides on what a server is, HTTP, caching, Unicode, “transparent Midnight Commander,” “Ubuntu—hate it or love it,” and more. I’ll translate everything to English and maybe make videos for some.

Demo: in Joomla admin you go to administrator/components/com_j2grav/. Export folder is empty; run the component. It names posts item.md and categories blog.md—fine by me. I enable tags, include the language tag (only one English article), and most importantly “markdownify” so articles become Markdown instead of HTML. Export is very quick.

Check the exported files: it preserves full paths (e.g., pages/cv, Linux/how-to-change-font-size-in-urxvt, transparent Midnight Commander). I prefer keeping full paths for organization even if some say flat URLs are better for SEO; I’ll reorganize and add 301s later.

I’ll reorganize, translate, maybe start a GitHub repo. If you have suggestions or want to help, leave a comment. That’s it for now—have a nice day!

comments powered by Disqus