![]() If the GitHub repository is named blog-hugo, then the value of baseURL will be. For example, my GitHub username is ChristopherJHart.If the GitHub repository is named, then the value of baseURL will be. github.io, then the value of baseURL will be If the GitHub repository has any other name, then the value of baseURL will be baseURL: This should be set to the URL GitHub Pages will use to host your blog, which will depend on the name of the GitHub repository you created.You will most likely want to modify the following fields: Now we need to modify the config.toml file within the root of our blog site to personalize the site further. Note: The theme you choose may have additional instructions! Consult the documentation for the theme that you choose to see if any additional steps need to be taken to properly install your theme. Remote: Total 397 (delta 93), reused 86 (delta 86), pack-reused 277 Remote: Compressing objects: 100% (34/34), done. :~/GitHub/blog-hugo$ git submodule add themes/m10cĬloning into '/home/christopher/GitHub/blog-hugo/themes/m10c'. Since I am working with an Ubuntu 20.04 host, I will use snap to install Hugo to my Linux host as shown below. The steps needed to install Hugo vary from one operating system to another, so I recommend referencing Hugo’s installation documentation for more details. Then, we need to install Hugo on our Linux host. An example is shown below with the repository name field highlighted. For a person blog, name the repository blog works perfectly. Near the top of the form that appears, insert a valid name for the new repository. Left click on the “New repository” option from the dropdown menu that appears, as highlighted below. Once your GitHub account is created, log into your account here.įrom the GitHub homepage, left click on the plus sign in the upper right corner of the page, as highlighted below. If you do not have an existing GitHub account, you can create one for free here. Create GitHub Repositoryįirst, we need to create a repository on GitHub to house our blog. We will build our blog using an Ubuntu 20.04 host (although most instructions are feasible on any Linux operating system, including Windows Subsystem for Linux ). In this post, we will show how you can create your own blog for free using the above technologies. GitHub Pages - A GitHub service that hosts web content (such as HTML webpages) stored in a GitHub repository. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |