Skip to content

Latest commit

 

History

History
110 lines (71 loc) · 2.5 KB

session3.md

File metadata and controls

110 lines (71 loc) · 2.5 KB
theme transition highlightTheme logoImg slideNumber title
black
convex
monokai
./images/sigma_club.jpg
false
Hacktoberfest 2022

Session 3 - Hacking time

Hacktoberfest


fun projects to accomplish (static site)

  • personal website
  • Sigma Club website
  • Digital Museum Gallery
  • Event website

--

We will be working on building your personal website now

--

pre-requisites

  1. Download and setup Hugo for windows

--

Overview of tasks

--

Steps

  1. hugo new site <your website's name>

  2. cd <your website's name>/themes/

  3. Clone the raditian-free-hugo-theme

git clone https://github.com/radity/raditian-free-hugo-theme.git)

--

steps

  1. Replace the "config.toml" file in your project's root directory with /themes/raditian-free-hugo-theme/exampleSite/config.toml

  2. delete .git folder in
    /themes/raditian-free-hugo-theme/

  3. change baseURL in me/config.toml
    baseURL = "https://bvjsciencecentre.github.io/me/"`

  4. To start the server

hugo server -D

--

steps - Deployment

Refer this site- https://gohugo.io/hosting-and-deployment/hosting-on-github/

  1. Create a file in
    me/.github/workflows/gh-pages.yml
  2. copy the gh-pages.yml snippet.
  3. cd me/
    git init
  4. add the branch
    git branch -M main

--

  1. commit all the changes
    git commit -m "first commit"

  2. add the link of github repo to local repo
    git remote add origin https://github.com/bvjsciencecentre/me.git

  3. push all the changes to github git push -u origin main

  4. Go to Settings > GitHub Pages, and change the source branch to gh-pages


SESSION 3 - Hacking time ends

HACKATHON BEGINS

Please lookup the hackathon_task.md file