{"id":18666246,"url":"https://github.com/marcionicolau/victor-hugo-netlify","last_synced_at":"2025-11-06T13:30:24.053Z","repository":{"id":147866669,"uuid":"129568048","full_name":"marcionicolau/victor-hugo-netlify","owner":"marcionicolau","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-15T01:47:23.000Z","size":3514,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T17:44:00.401Z","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/marcionicolau.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":"2018-04-15T01:46:19.000Z","updated_at":"2018-04-15T01:47:27.000Z","dependencies_parsed_at":"2023-05-27T18:15:21.605Z","dependency_job_id":null,"html_url":"https://github.com/marcionicolau/victor-hugo-netlify","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/marcionicolau%2Fvictor-hugo-netlify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcionicolau%2Fvictor-hugo-netlify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcionicolau%2Fvictor-hugo-netlify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcionicolau%2Fvictor-hugo-netlify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcionicolau","download_url":"https://codeload.github.com/marcionicolau/victor-hugo-netlify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239493677,"owners_count":19647995,"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-11-07T08:31:18.776Z","updated_at":"2025-11-06T13:30:24.008Z","avatar_url":"https://github.com/marcionicolau.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 [Gulp](https://gulpjs.com/) + [Webpack](https://webpack.js.org/) as your asset pipeline.\n\nVictor Hugo setup to use [PostCSS](http://postcss.org/) and [Babel](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### Prerequisites\n\nYou need to have the latest/LTS [node](https://nodejs.org/en/download/) and [npm](https://www.npmjs.com/get-npm) versions installed in order to use Victor Hugo.\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 it's tasks.\n\n### Development\n\nWhile developing your website, use:\n\n```bash\nnpm start\n```\n\nor\n\n```bash\ngulp server\n```\n\nThen visit http://localhost:3000/ *- or a new browser windows popped-up already -* to preview your new website. BrowserSync will automatically reload the CSS or refresh the whole page, when stylesheets or content changes.\n\n### 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#L7) or the included gulp file 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|  |--static           // Files in here ends up in the public folder\n|--src                 // Files that will pass through the asset pipeline\n|  |--css              // CSS files in the root of this folder will end up in /css/...\n|  |--js               // app.js will be compiled to /app.js with babel\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 ends 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/js/app.js` file is the entrypoint for webpack and will be built to `/dist/app.js`.\n\nYou can use **ES6** and use both relative imports or import libraries from npm.\n\nAny CSS file directly under the `src/css/` folder will get compiled with [PostCSS Next](http://cssnext.io/)\nto `/dist/css/{filename}.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 gulp 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\n## Enjoy!! 😸\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcionicolau%2Fvictor-hugo-netlify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcionicolau%2Fvictor-hugo-netlify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcionicolau%2Fvictor-hugo-netlify/lists"}