Site for my Call of Duty: Mobile clan. http://codm.ataraxy.tk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.2 KiB

  1. +++
  2. title = "How To Setup Meghna Hugo"
  3. date = "2019-3-06T21:49:20+02:00"
  4. description = "This is meta description for blog page"
  5. tags = ["golang", "programming", "theme", "hugo"]
  6. categories = ["starting"]
  7. author = "Themefisher"
  8. image = "images/blog/meghna.png"
  9. +++
  10. ## Install this template by following those simple steps:
  11. ### STEP-1 : Hugo installation
  12. Check this link below for install hugo on your computer.
  13. [hugo install documentation](https://gohugo.io/getting-started/installing/)
  14. ### STEP-2 : Create your project
  15. Hugo provides a `new` command to create a new website.
  16. ```
  17. hugo new site <new_project>
  18. ```
  19. ### STEP-3 : Install the theme
  20. Run this command
  21. ```
  22. hugo new site meghna-hugo
  23. ```
  24. and then go to the themes folder inside of meghna-hugo folder. You can also use this command ```cd meghna-hugo/themes``` for going to this folder.
  25. Then run the command
  26. ```
  27. git clone git@github.com:themefisher/meghna-hugo.git
  28. ```
  29. Alternatively, you can [download the theme as .zip](https://github.com/themefisher/meghna-hugo/archive/master.zip) file and extract it in the `themes` directory
  30. After that you need to go to the `meghna-hugo/exampleSite` folder and copy or cut all the elements, and now go back to the root folder and paste it here.
  31. open the command prompt again and run `cd ../` command for go back to the root folder.
  32. ### STEP-4 : Host locally
  33. Launching the website locally by using the following command:
  34. ```
  35. hugo serve
  36. ```
  37. Go to `http://localhost:1313`
  38. Or you can check this video documentation for installing this template:
  39. {{< youtube 3O3qvDoVp5g >}}
  40. ### STEP-5 : Basic configuration
  41. When building the website, you can set a theme by using `--theme` option. However, we suggest you modify the configuration file (`config.toml`) and set the theme as the default.
  42. ```toml
  43. # Change the default theme to be use when building the site with Hugo
  44. theme = "meghna-hugo"
  45. ```
  46. ### STEP-6 : Create your first content pages
  47. ```
  48. hugo new blog/post-name.md
  49. ```
  50. ### STEP-7 : Build the website
  51. When your site is ready to deploy, run the following command:
  52. ```
  53. hugo
  54. # You can also create a minified version by using this command:
  55. hugo--minify
  56. ```
  57. A `public` folder will be generated, containing all static content and assets for your website. It can now be deployed on any web server.