diff options
author | Bradley Taunt <bt@btxx.org> | 2024-02-02 13:05:54 -0500 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-02-02 13:05:54 -0500 |
commit | 13cec3d0fc257d0e65c9a1c06bfc71648722a506 (patch) | |
tree | aaf959aa898357abe14c45016a9071ce4d0587c0 /content/2021-02-07.md |
Diffstat (limited to 'content/2021-02-07.md')
-rw-r--r-- | content/2021-02-07.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/content/2021-02-07.md b/content/2021-02-07.md new file mode 100644 index 0000000..01fe3da --- /dev/null +++ b/content/2021-02-07.md @@ -0,0 +1,23 @@ +# The Benefits of a Single File Blog + +Rendering your blog or website as a single file using PHPetite is pretty fantastic. It gives you the freedom to easily share, host or edit your site's content on almost any hosting provider. + +Since the entire blog's content is generated inline on `build`, you don't need to fiddle around with external `CSS` and `JS` files. There is also no need to worry about broken `img` sources since PHPetite converts all images into proper base64 strings. + +Using this website as an example: this blog weighs in at **~21KB**[^1]. + +That is incredibly tiny in terms of website size. Some sections on other web pages are larger than that! + +The portability of having a *single* `HTML` file as your blog is quite liberating. Though it should be noted, if your blog consists of high resolutions imagery or includes massive amounts of content, a single file might be a little impractical for you. + +## Hosting for Newcomers + +I suggest using [Netlify Drop](https://app.netlify.com/drop) if this is your first time setting up a hosting environment or you don't consider yourself too tech-savvy. Once you have your rendered `index.html` file, simply drag-and-drop the file into Netlify Drop - that's it! + +From there you can always setup a permanent subdomain or use your own custom domain. + +## Local Development + +Simply follow the instructions found on the [Generating This Blog](#generating-this-blog) page and you'll be running a local version of your site in seconds. + +[^1]: At this time of writing (Feb 2021) |