{"id":21340499,"url":"https://github.com/riyadhuddin/victor-hugo","last_synced_at":"2025-10-23T23:12:12.229Z","repository":{"id":42566685,"uuid":"436569796","full_name":"riyadhuddin/victor-hugo","owner":"riyadhuddin","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-06T21:11:56.000Z","size":16796,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T14:53:53.556Z","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/riyadhuddin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-09T10:13:51.000Z","updated_at":"2023-03-08T01:12:49.000Z","dependencies_parsed_at":"2025-01-22T15:41:12.590Z","dependency_job_id":null,"html_url":"https://github.com/riyadhuddin/victor-hugo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/riyadhuddin/victor-hugo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhuddin%2Fvictor-hugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhuddin%2Fvictor-hugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhuddin%2Fvictor-hugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhuddin%2Fvictor-hugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riyadhuddin","download_url":"https://codeload.github.com/riyadhuddin/victor-hugo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyadhuddin%2Fvictor-hugo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280706864,"owners_count":26376999,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-22T00:51:05.131Z","updated_at":"2025-10-23T23:12:12.212Z","avatar_url":"https://github.com/riyadhuddin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Victor Hugo\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%2Friyadhuddin%2Fvictor-hugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friyadhuddin%2Fvictor-hugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friyadhuddin%2Fvictor-hugo/lists"}