Git submodule3/15/2023 ![]() Initialized empty Git repository in /home/sntshk/repos/myblog/.git/ Visit for quickstart guide and full documentation. Start the built-in live server via "hugo server". Download a theme into the same-named folder.Ĭreate your own with the "hugo new theme " command.Ģ. Just a few more steps and you 're ready to go:ġ. Install HugoĮasiest method for me to install hugo is to use go get command.Ĭongratulations! Your new Hugo site is created in /home/sntshk/repos/myblog. Consult your OS’s package manager or if you using Windows, consult getting started guide at Hugo’s site. If you are following this tutorial with me, you need to install Hugo on your system. I keep theme as a separate module because want to reduce overhead when updating to the new theme version, which will be deleting and adding a whole new version of theme repo. Setting Up the Repo Structureįor this example I will we demonstrating this concept with my blogging engine Hugo and the submodule which is a theme for Hugo. While you read this post, take a moment to connect with me on LinkedIn. Suppose you are working with softwareA which depends on libraryA, instead of copy-pasting the libraryA over and over again when a new version of the library is released what we can do is use submodule to make this process DRY and elegant. Instead of being tightly coupled, it is loosely coupled and is easy to maintain. One git repository can be added to another as a submodule and maintained separately. Git Submodules are the concept related to modularity.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |