Discover it: https://morikko.github.io/travel-blog/
This blog is about my trip to South America. I describe the places I discovered, the culture I met and the activities I did.
All the articles are attached to many beautiful pictures from South America.
Enjoy :)
The blog is based on Wordpress. During my road trip, the blog was online on a server. Thus, I was able to write my articles while traveling. When I came back home, I decided to switch it off as it cost me money. However, I downloaded a back up I put offline on my computer.
As now, I am no more contributing to this blog, the wordpress features are useless. Thus, I decided to switch it to a static website I could again present. I used this amazing extension called Simply Static.
- Install the extension
- Set the plugin settings (you might use a subdomain, here:
/travel-blog
) - Generate the static website
- If the zip download link didn't work, fetch the result directly from the plugin 'wp-content' folder
The plugin is mainly working well but a few glitches remain. The next changes have always to be done everywhere in the code.
When a category has more than 1 page, the first page is a redirection one pointing to the same page (infinite redirection). I had to copy the HTML source directly from the local server.
In the copied HTML:
- Replace "/20%" with "/"
- Replace "http://localhost/travel/" with "/travel-blog"
For an unknown reason, a %20 is added in each post URL. Nevertheless, %20 is a space in HTML format, so it is impossible to fetch the URL.
The solution is to change the %20 name with content.
- Rename the "%20" folders with "content" with
find . -type d -name "%20" -exec sh -c 'f="{}"; mv -- "$f" "${f%/%20}/content"' \;
- Replace "/%20/" with "/content/"
- Replace '/%20"' with '/"'
- Replace "/%20'" with "/'"
Probably a mistake when I put the back up offline locally.
- Replace the historical domain "http://travel.emasseran.org" with "/" (Example: the Home link)
For a library to be well fetched:
- Replace "/wp-includes/js/wp-emoji-release.min.js" with "//wp-includes/js/wp-emoji-release.min.js"
The API key is outdated and thus Google Maps is complaining but you can use the map. In order to fix the article links and image previews:
- Replace "https://travel.emasseran.org" with "/travel-blog"
I hope you will enjoy my blog as much as I loved my trip! :)