{"id":13678728,"url":"https://github.com/blkdevcon/gohugo-deploy","last_synced_at":"2025-04-29T15:32:54.651Z","repository":{"id":41937467,"uuid":"471790804","full_name":"blkdevcon/gohugo-deploy","owner":"blkdevcon","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-19T19:16:59.000Z","size":12876,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-02T13:24:33.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blkdevcon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-19T19:16:07.000Z","updated_at":"2022-06-20T18:44:57.000Z","dependencies_parsed_at":"2022-09-13T04:41:55.430Z","dependency_job_id":null,"html_url":"https://github.com/blkdevcon/gohugo-deploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blkdevcon%2Fgohugo-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blkdevcon%2Fgohugo-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blkdevcon%2Fgohugo-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blkdevcon%2Fgohugo-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blkdevcon","download_url":"https://codeload.github.com/blkdevcon/gohugo-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224179057,"owners_count":17268996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T13:00:57.550Z","updated_at":"2024-11-11T21:31:16.421Z","avatar_url":"https://github.com/blkdevcon.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Victor Hugo\n\n⚠️ **Deprecation Notice** 🏳\n\nWe are focusing our resources on building new templates that help you build a better web, because of that we're deprecating this template. We care about the community so we propose if anyone wants to maintain or take stewardship over the project please contact us at [devexperience@netlify.com](mailto:devexperience@netlify.com). If you want to share anything with the team about this template, you can also fill out [this form](https://template-feedback.netlify.app/).\n\nAs an alternative to this repository, we're recommending to take a look at [Hyas](https://github.com/h-enk/hyas) as a project to make use of. It is focused on latest practices with Hugo and is already completely Netlify deploy ready.\n\n---\n\n**A Hugo boilerplate for creating truly epic websites**\n\nThis is a boilerplate for using [Hugo](https://gohugo.io/) as a static site generator and [Webpack 5](https://webpack.js.org/) as your asset pipeline.\n\nVictor Hugo setup to use [PostCSS v8](http://postcss.org/) and [Babel v7](https://babeljs.io/) for CSS and JavaScript compiling/transpiling.\n\nThis project is released under the [MIT license](LICENSE). Please make sure you understand its implications and guarantees.\n\n## Usage\n\n### :exclamation: Prerequisites\n\nThis template has been tested to work with [Node.js](https://nodejs.org/en/download/) v16 and [npm](https://www.npmjs.com/get-npm) v6.\n\nNext step, clone this repository and run:\n\n```bash\nnpm install\n```\n\nThis will take some time and will install all packages necessary to run Victor Hugo and its tasks.\n\n### :construction_worker: Development\n\nWhile developing your website, use:\n\n```bash\nnpm start\n```\n\nor for developing your website with `hugo server --buildDrafts --buildFuture`, use:\n\n```bash\nnpm run preview\n```\n\nThen visit http://localhost:3000/ _- or a new browser windows popped-up already -_ to preview your new website. Webpack Dev Server will automatically reload the CSS or refresh the whole page, when stylesheets or content changes.\n\n### :package: Static build\n\nTo build a static version of the website inside the `/dist` folder, run:\n\n```bash\nnpm run build\n```\n\nTo get a preview of posts or articles not yet published, run:\n\n```bash\nnpm run build:preview\n```\n\nSee [package.json](package.json#L8) for all tasks.\n\n## Structure\n\n```\n|--site                // Everything in here will be built with hugo\n|  |--content          // Pages and collections - ask if you need extra pages\n|  |--data             // YAML data files with any data for use in examples\n|  |--layouts          // This is where all templates go\n|  |  |--partials      // This is where includes live\n|  |  |--index.html    // The index page\n|  |--resources        // This is where all assets go\n|  |--static           // Files in here ends up in the public folder\n|--src                 // Files that will pass through the asset pipeline\n|  |--css              // Webpack will bundle imported css separately\n|  |--index.js         // index.js is the webpack entry for your css \u0026 js assets\n```\n\n## Basic Concepts\n\nYou can read more about Hugo's template language in their documentation here:\n\nhttps://gohugo.io/templates/overview/\n\nThe most useful page there is the one about the available functions:\n\nhttps://gohugo.io/templates/functions/\n\nFor assets that are completely static and don't need to go through the asset pipeline,\nuse the `site/static` folder. Images, font-files, etc, all go there.\n\nFiles in the static folder end up in the web root. So a file called `site/static/favicon.ico`\nwill end up being available as `/favicon.ico` and so on...\n\nThe `src/index.js` file is the entrypoint for webpack and will be built to `/dist/main.js`\n\nYou can use **ES6** and use both relative imports or import libraries from npm.\n\nAny CSS file imported into the `index.js` will be run through Webpack, compiled with [PostCSS Next](http://cssnext.io/), and\nminified to `/dist/[name].[hash:5].css`. Import statements will be resolved as part of the build.\n\n## Environment variables\n\nTo separate the development and production _- aka build -_ stages, all tasks run with a node environment variable named either `development` or `production`.\n\nYou can access the environment variable inside the theme files with `getenv \"NODE_ENV\"`. See the following example for a conditional statement:\n\n    {{ if eq (getenv \"NODE_ENV\") \"development\" }}You're in development!{{ end }}\n\nAll tasks starting with _build_ set the environment variable to `production` - the other will set it to `development`.\n\n## Deploying to Netlify\n\n- Push your clone to your own GitHub repository.\n- [Create a new site on Netlify](https://app.netlify.com/start) and link the repository.\n\nNow Netlify will build and deploy your site whenever you push to git.\n\nYou can also click this button:\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/victor-hugo)\n\n## Enjoy!! 😸\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblkdevcon%2Fgohugo-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblkdevcon%2Fgohugo-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblkdevcon%2Fgohugo-deploy/lists"}