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.

installation.md 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. title: "How To Setup Meghna Hugo"
  3. date: 2018-09-12T14:51:12+06:00
  4. author: Mark Dinn
  5. image_webp: images/blog/meghna.webp
  6. image: images/blog/meghna.jpg
  7. description : "This is meta description"
  8. ---
  9. ## Install this template by following those simple steps:
  10. ### STEP-1 : Hugo installation
  11. Check this link below for install hugo on your computer.
  12. [hugo install documentation](https://gohugo.io/getting-started/installing/)
  13. ### STEP-2 : Create your project
  14. Hugo provides a `new` command to create a new website.
  15. ```
  16. hugo new site <new_project>
  17. ```
  18. ### STEP-3 : Install the theme
  19. Run this command
  20. ```
  21. hugo new site meghna-hugo
  22. ```
  23. 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.
  24. Then run the command
  25. ```
  26. git clone git@github.com:themefisher/meghna-hugo.git
  27. ```
  28. 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
  29. 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.
  30. open the command prompt again and run `cd ../` command for go back to the root folder.
  31. ### STEP-4 : Host locally
  32. Launching the website locally by using the following command:
  33. ```
  34. hugo serve
  35. ```
  36. Go to `http://localhost:1313`
  37. Or you can check this video documentation for installing this template:
  38. {{< youtube 3O3qvDoVp5g >}}
  39. ### STEP-5 : Basic configuration
  40. 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.
  41. ```toml
  42. # Change the default theme to be use when building the site with Hugo
  43. theme = "meghna-hugo"
  44. ```
  45. ### STEP-6 : Create your first content pages
  46. ```
  47. hugo new blog/post-name.md
  48. ```
  49. ### STEP-7 : Build the website
  50. When your site is ready to deploy, run the following command:
  51. ```
  52. hugo
  53. # You can also create a minified version by using this command:
  54. hugo--minify
  55. ```
  56. A `public` folder will be generated, containing all static content and assets for your website. It can now be deployed on any web server.