Yangi tarix

GitHub blog o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z

tomonidan Oleg Pustovit5m2025/04/30
Read on Terminal Reader

Juda uzoq; O'qish

I'm setting up a lightweight technical blog using Hugo for static site generation, Caddy for local SSL, and GitHub Pages for free hosting. This guide goes through my choices, setup steps, common issues, and deployment.
featured image - GitHub blog o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z
Oleg Pustovit HackerNoon profile picture

O‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘.

Platformni seçib

O‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.


O‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.


  • CMS (e.g., WordPress, Content Hub, Joomla, o‘z): WordPress platformlar effektli, amma o‘z statik content blogni qilmadi.


  • Jekyll: Bu software o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.


  • Hugo o‘z go’da yazılmışdır, o‘z go template sintaxi (ko‘da ko‘da ko‘da ko‘da ko‘da yazırsan), o‘z Markdown’da o‘z page rendering (shadi Jekyll).


  • 11ty, Astro, Hexo, and other Node.js-based alternatics. It’s a matter of preference, but personally, I decided to minimize the use of Node.js tooling.When there are many powerful tools, the Node.js ecosystem is notorious for rapidly changing, which often led me to not being able to run the old projects that naturally had many old dependencies.

HUGO qo‘yadi

O'nun blogging platformda Hugo'ni seçdim. Sizga bilan dokumentasiyalarga o'z bilan software-related projektidim, mən Markdown and terminal-based text editor yolladi.

GitHub repository‘ni qaytaradi.

Bu vaxtdan əvvəl, GitHub Pages website y‘radi y‘radi y‘radi y‘radi y‘radi y‘radi y‘radi y‘radi y‘radi y‘radi.

hugo new site . --force


Bu, aktual repository directoryni fayllarni qaytarisni, bu da HUGO website'larni qaytarisni. Bundan sonra, o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘zhugo.tomlBu serverni o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.hugo server

Server o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z

WEB WEB WEB WEB WEB WEB WEB WEB WEB WEB WEBlocalhostO‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘zlocalhostBu, lokalhost instancini qilmadi qilmadi - bu ehtiyaclarda, reverse proxy o‘zingizdir.


Men bilancerlar və reverse proxies o‘z Nginx o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z populyar.CaddyO‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.CaddyBu o‘z o‘zCaddyfileO‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘zreverse_proxyO‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z

test-blog-domain.com {
	reverse_proxy localhost:1313
}

Caddy‘ni yukarıda qoysan o‘z webiyiz, o‘z internetiyiz.https://test-blog-domain.com(O‘z o‘z o‘z o‘z o‘zADNS rekordlartest-blog-domain.comO‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.

Bu tema o‘z

Hugo o‘z bir o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.themeParametrizhugo.tomlO‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘zcactusMen, o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.

Error: error building site: render: failed to render pages: render of "/" failed: "/home/user/projects/nexo-tech.github.io/themes/cactus/layouts/_default/baseof.html:3:3": execute of template failed: template: index.html:3:3: executing "index.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:47:16: no such template "_internal/google_analytics_async.html"
make: *** [Makefile:2: up] Error

O‘z bu problemni qilmadi, o‘z qilmadi.githubGoogga komuniyalar aktivdir, o‘z bu Google Analytics gabhadan o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.


U bilan bilan bilan qaytaradi, internet o‘z bilan qaytaradi:

CDN: GitHub Pages – CDN-da website qilmadi

GitHub Page o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘


Men o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘gh-pagesO‘z, o‘z o‘z o‘z o‘zactionsO‘z, o‘z o‘z o‘z, o‘z o‘z o‘z o‘z:


  • Shohei Ueda, HUGO-HUGO, HUGO-HUGO, A Simple Way to Set Up Hugo in a GitHub Actions Environment (HUGO-HUGO)
  • Shohei Ueda, bu aksiya static assets to the specified branch.


GitHub Actions workflow ko‘qni o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘zpublicMen o‘z o‘z o‘z o‘z o‘z o‘zgh-pagesU o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.Settings > Actions > GeneralO‘z.

name: Build and Deploy Hugo
on:
  push:
    branches:
      - main  
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repo
        uses: actions/checkout@v3
      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: 'latest'
          extended: true
      - name: Build site
        run: hugo --minify
      - name: Add CNAME file
        run: cp CNAME public/CNAME
      - name: Deploy to GitHub Pages
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./public
          publish_branch: gh-pages

GitHub CDN-i o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.


Hugo set-up and deployed, o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z o‘z.

Related resurslar

  • Repository bu web site
  • Hugo o‘z o‘z o‘z.
  • GitHub Page'larda DNS qilmadi
  • Kaktus tema HUGO
  • Google Analytics o‘z o‘z o‘z o‘z o‘z
  • Caddy reverse proxy o‘z o‘z o‘z o‘z


Trending Topics

blockchaincryptocurrencyhackernoon-top-storyprogrammingsoftware-developmenttechnologystartuphackernoon-booksBitcoinbooks