Git Submodule

When I added git submodule to my git repository and change that submodule during development, I encountered problem. I want to record how I fix that here. 1 Why I need to add submodule? Because hugo requires submodule to reflect template. 1 2 3 4 hugo new site site cd site git init git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt I could update this site theme to “LoveIt” (See Hugo LoveIt Theme).

Change Hugo Theme to LoveIt

1 Motivation After using hugo-clarity theme, I change my mind to use the other theme. I like: Admonition in post Technical friendly view Dynamic table of content in right-side bar Comment function All above is supported by LoveIt theme. 2 (Not recommend) buckup and create new Gitlab repository Warning This work for backup gitlab repository might cause the problem that I suffered… Just doing start new repository (with new name and path at Gitlab) should be simple process.

Setup Hugo and Gitlab CI

This is the first post of this website :) I setup Hugo, adopt hugo-clarity theme and publish the site usign Gitlab pages via Gitlab CI. 1 Setup Hugo with hugo-clarity theme I selected hugo as I wanted to use static website generator that easily be supported by git and Gitlab-CI based workflow. I have used Mkdocs for the other websites and wanted to use alternative way. Hugo looks to have plenty of templates.