Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
IT Security NachrichtenUS sanctions Tren de Aragua gang members in ATM hacks crackdown(02.10.2026 um 17:20 Uhr)
•
IT Security NachrichtenBarracuda bringt KI-Governance und Datenschutz für Unternehmen zusammen(02.10.2026 um 17:38 Uhr)
••
IT Security NachrichtenGitHub-Code: 543.699 gültige Zugangsdaten - it-daily(02.10.2026 um 17:02 Uhr)
•••
IT Security NachrichteniPhone Duo: Apple bestätigt spezielle austauschbare Display-Schicht(02.10.2026 um 17:33 Uhr)
•
IT Security DownloadsSecurity Starts with Hardware(02.10.2026 um 17:38 Uhr)
•
IT NachrichtenGalaxy S25 Ultra One UI 9 Updates: US Unlocked Models(02.10.2026 um 17:25 Uhr)
••
IT Security NachrichtenUS sanctions Tren de Aragua gang members in ATM hacks crackdown(02.10.2026 um 17:20 Uhr)
•
IT Security NachrichtenBarracuda bringt KI-Governance und Datenschutz für Unternehmen zusammen(02.10.2026 um 17:38 Uhr)
••
IT Security NachrichtenGitHub-Code: 543.699 gültige Zugangsdaten - it-daily(02.10.2026 um 17:02 Uhr)
•••
IT Security NachrichteniPhone Duo: Apple bestätigt spezielle austauschbare Display-Schicht(02.10.2026 um 17:33 Uhr)
•
IT Security DownloadsSecurity Starts with Hardware(02.10.2026 um 17:38 Uhr)
•
IT NachrichtenGalaxy S25 Ultra One UI 9 Updates: US Unlocked Models(02.10.2026 um 17:25 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

Create a Site

I will start at the very "beginning" and go through the official quickstart guide. My goal is to achieve the same results so I can start blogging ASAP but I…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

I will start at the very "beginning" and go through the official quickstart guide. My goal is to achieve the same results so I can start blogging ASAP but I will be doing it a bit differently than how it is outlined in the guide. I will explain my decisions along the way. So let's create the Hugo site.



The quickstart docs suggest creating a new site skeleton and initializing git in the created site's root.




$ hugo new site quickstart
$ cd quickstart
$ git init






In my opinion, this is not as good as having a separate folder that will contain the site. Modern blogs have pretty complex folder structures and require additional folders that store CI configs, helper scripts, and other stuff that is part of the blog project but not part of the blog's site.





  1. I start by creating an empty repo first.


    $ git init blog
    $ cd blog




  2. Then add an empty initial commit.


    $ git commit --allow-empty -m 'empty initial commit'



    Why? It is just better convention in case you want to rewrite history from the beginning. 123



    Yes, in most cases you can do git rebase -i --root, but this won't work if you need to split the initial commit into separate ones.




  3. Now we are ready to create a site skeleton.


    $ hugo new site site
    $ hugo add site
    $ git commit -m 'hugo new site site'




  4. Set up .gitingore for site



    If you didn't know, GitHub stores common .gitignore files at https://github.com/github/gitignore. It is a good practice to set it up right away to avoid accidentally adding junk to the repo.


    $ curl -o site/.gitignore https://raw.githubusercontent.com/github/gitignore/refs/heads/main/community/Golang/Hugo.gitignore
    $ git add site/.gitignore



    I also add the link to the source and license at the top.


    diff --git a/site/.gitignore b/site/.gitignore
    index 86c95ef..b1f826c 100644
    --- a/site/.gitignore
    +++ b/site/.gitignore
    @@ -1,6 +1,3 @@
    +# Copied from: https://github.com/github/gitignore/blob/main/community/Golang/Hugo.gitignore
    +# License: CC0 1.0 Universal
    +
    # Generated files by hugo
    /public/
    /resources/_gen/



    Commit changes.


    $ git add -u
    $ git commit -m 'add .gitignore for site'




  5. Create an empty GitHub repository



    Call it blog




  6. Push the code


    $ git remote add origin [email protected]:imomaliev/blog.git
    $ git push -u origin HEAD











  1. https://www.garfieldtech.com/blog/git-empty-commit ↩





  2. https://stackoverflow.com/a/14630424/3627387 ↩





  3. https://stackoverflow.com/a/23000315/3627387 ↩




🔍 CTI & Forensik

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar · Exploit-Belege
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Create a Site

Thematisch verwandte Begriffe: Create, Site · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag