Skip to content

Base theme changes

Daniel Cañizares Corrales edited this page Oct 5, 2020 · 5 revisions

Base theme: https://github.com/kakawait/hugo-tranquilpeak-theme

Code changes

Every code change to the theme (Folder ./themes/tranquilpeak/) must be tagged using comments:

  • // Begin TSOC modification

  • // EndTSOC modification

    . 
    .
    .
    
    // Begin TSOC modification
    Modified code...
    .
    .
    // End TSOC modification
    .
    .
    . 

Example: https://github.com/TheScienceOfCode/thescienceofcode.github.io/commit/d2c42396df8b968490d3e9794309a62b43888f50

Other changes

  • Install grunt-exec.

    cd .\themes\tranquilpeak
    npm install grunt-exec --save-dev
    
  • Repo files changed to always use dev version (that happens after using npm run start on the theme folder), instead of building locally the CI/CD script builds the theme and updates the static theme files after each push to master. You can see the script here.

Clone this wiki locally