![]() ![]() You can sync multiple folders from Dropbox to your iPhone. For all of the buzz about various markdown clients (all overblown in my opinion), I think 1Writer is the best. What do you need to do on your phone? I’ll keep this simple and assume you won’t make any on the fly changes to your theme, config, and you won’t create pages, only posts. Within your site folder you will have the template for your site including all of the folders required for Hugo: archetypes, content, data, layouts, resources, static, themes, and the config.toml file. Within folder site-content you will have a sub-folder for each Hugo website. I use my laptop to create a folder in Dropbox called site-content. Using the 3 places above, here is what you do. There is nothing special for Hugo in using this approach. Other than a couple of key points, I don’t describe how to setup a web server. I also don’t describe any of the steps to configure your Hugo website. Your Dropbox and your webhost are going to be a bit different so I can’t describe exact commands with exact directories. I will present the details at a bit of a high level. Now that you understand the why and basics of the approach I’ll explain the details. Only you will sync the content you author to your own Dropbox account. So, no–the website will NOT be hosted on Dropbox. You wouldn’t get to have your own URL for the website. You wouldn’t want to do that anyway as you’d have to sync the generated Hugo site across the internet to Dropbox. Once upon a time you could get away with that, but Dropbox will block you now. Finally, I just need to be able to run Hugo on the web server to update the static website.īe sure that in no way are we hosting the generated, finished Hugo website on Dropbox. This is server-to-server across the fast commercial internet and has nothing to do with my iPhone’s connectivity. So, the Dropbox client is synchronizing from Dropbox’s servers to my web host’s server. Next, I need to get new posts from Dropbox to my web host’s server. There are quite a few and because a single blog post, possibly with a small size photo, is quite small the sync from my phone to my Dropbox doesn’t require much bandwidth at all. I use an iPhone app that syncs with Dropbox. ![]() Place 1 is on my phone–just local files in markdown along with local photos. You may be wondering where place 1 is–where I edit blog posts–and how those blog posts get to place 2–where I run Hugo to generate the site. This is no problem: the server is quite secure and only the I can enter the Hugo command via my iPhone because it is only one line so this works even if the connection is very slow. Therefore, I must run Hugo on my web host’s server. This means that the blog posts need to get to the web hosting service where I host my Hugo web site. What this means is that places number 2 and 3 need to be the same place. It makes sense to only synchronize the new post I’ve authored because it is comparatively tiny. I don’t want to have to synchronize stuff that has not changed. Though Hugo is terrifically fast and only updates/generates changes, the result is the ENTIRE site. Here is the key: I didn’t want to sync the generated web site resources each time I created a post. I wanted to be able to do this with mobile internet, which varies a lot in speed depending on where I was traveling. I wanted to be able to author blog posts while on the go, using my iPhone and including pictures I’d taken with the iPhone. There are a couple of considerations that influence these choices. You need a place on the internet where you host the static pages generated by Hugo.You need a place where you run Hugo to generate the static pages of your blog.You need a place where you enter and edit blog posts, including placing your images.To author a blog in Hugo, there are several things to decide about the mechanics, leaving out your choice of theme and other design decisions: ![]() You can skip around the Ghost site and go directly to Hugo with ( ) and ( ) -this one is just started so doesn’t have many posts yet. In the top menu, the links for “Florida Coast” and “New England Streams” take you to Hugo blogs. I’ll also point out that git is not used in this approach at all (though there is nothing wrong or especially challenging about git.) I have integrated 2 Hugo sites with a Ghost site of travelogues, but this approach has nothing to do with Ghost at all–I just linked the three sites into one with a navigation menu. I thought I would do a long overdo write-up of how I use Hugo with Dropbox and an iPhone to create blog posts and update my site. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |