Daily Shaarli

All links of one day in a single page.

December 15, 2022

Note: GIT Basis

…or create a new repository on the command line

echo "# hugo_cv" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/yebana/hugo_cv.git
git push -u origin main

…or push an existing repository from the command line

git remote add origin https://github.com/yebana/hugo_cv.git
git branch -M main
git push -u origin main

...or bind http server to a different IP address, the port (1313) doesn´t change

hugo server --bind 192.168.1.88 --baseURL http://192.168.1.88
Note: Hugo basis

CREAR SITIO

hugo new site MySite
cd MySite
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke themes/ananke
echo "theme = 'ananke'" >> config.toml
hugo server

AÑADIR CONTENIDO

hugo new posts/my-first-post.md

PUBLICAR SITIO

hugo //PUBLICA SITIO ESTÁTICO RESULTADO AL DIRECTORIO PUBLIC
─$ tree -d -L 3
└── MySite
    ├── archetypes
    ├── content
    ├── data
    ├── layouts
    ├── public
    │   ├── assets
    │   ├── categories
    │   ├── page
    │   └── tags
    ├── resources
    │   └── _gen
    ├── static
    └── themes
        └── hugo-PaperMod