{"id":49575217,"url":"https://github.com/rollecode/modern-html5-boilerplate","last_synced_at":"2026-05-03T16:11:04.817Z","repository":{"id":26223624,"uuid":"29670218","full_name":"rollecode/modern-html5-boilerplate","owner":"rollecode","description":"Starter setup for building static HTML/PHP sites. Useful for quick\u0026dirty landing pages.","archived":false,"fork":false,"pushed_at":"2023-08-31T07:52:01.000Z","size":2555,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-02T13:33:31.220Z","etag":null,"topics":["cache","front-end","landing-pages","onepagewebsite","php","php2html","static","static-pages"],"latest_commit_sha":null,"homepage":"","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rollecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"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":"2015-01-22T09:02:54.000Z","updated_at":"2023-11-16T13:57:10.000Z","dependencies_parsed_at":"2025-03-05T12:41:56.550Z","dependency_job_id":null,"html_url":"https://github.com/rollecode/modern-html5-boilerplate","commit_stats":null,"previous_names":["rollecode/modern-html5-boilerplate"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rollecode/modern-html5-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fmodern-html5-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fmodern-html5-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fmodern-html5-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fmodern-html5-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rollecode","download_url":"https://codeload.github.com/rollecode/modern-html5-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fmodern-html5-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cache","front-end","landing-pages","onepagewebsite","php","php2html","static","static-pages"],"created_at":"2026-05-03T16:11:04.064Z","updated_at":"2026-05-03T16:11:04.809Z","avatar_url":"https://github.com/rollecode.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modern HTML5 Boilerplate\n\nIn need of a simple landing pages or static websites? Then this extremely minimal Modern HTML5 Boilerplate might be just for you.\n\n## Features\n\n- Produces minified, static HTML files\n- Automatic JS/CSS minification, uglify, combine, compress and concat with [Gulp](http://gulpjs.com/)\n- Stylesheet language: [SCSS](http://sass-lang.com/) (libsass)\n- Flexible SCSS grid included: [Jeet Grid](http://jeet.gs/)\n- Responsive typography with viewport units\n- SCSS and PHP linting built-in\n\n![](https://rolle.design/mhb-2018.png \"Screenshot\")\n\n## Installation\n\n1. `git clone https://github.com/ronilaukkarinen/modern-html5-boilerplate yourprojectname`\n2. If you add your project to git, remember to remove `.git` folder with `rm -rf .git`\n3. `npm-check-updates -u` to update Node.JS modules (you need [npm-check-updates](https://www.npmjs.com/package/npm-check-updates) for this)\n4. `npm install` to install them\n5. Edit `package.json` and `gulpfile.js` and rename project name and author according to your new project\n6. `gulp` and start coding your static website (you might want to change meta tags and `_config.scss` variables first)\n\nStart with `src/sass/layout/_main.scss`.\n\n**Have fun!**\n\n## Alternative cache (with php)\n\nCurrently this produces static HTML pages via php2html, but you can disable gulp-php2html, gulp-htmlmin and enable semi-dynamic caching for your index.php, by adding this to dist/index.php:\n\n```` php\n\u003c?php\n// Settings\n$cache = false;\n$cache_lifetime_hours = 12;\n$minifyhtml = true;\n$cachefile = 'index.html';\n\n// Minify HTML -function\nfunction sanitize_output( $buffer ) {\n  $search = array(\n    '/\\\u003e[^\\S ]+/s',     // strip whitespaces after tags, except space\n    '/[^\\S ]+\\\u003c/s',     // strip whitespaces before tags, except space\n    '/(\\s)+/s',         // shorten multiple whitespace sequences\n  );\n\n  $replace = array(\n    '\u003e',\n    '\u003c',\n    '\\\\1',\n    '',\n  );\n\n  $buffer = preg_replace( $search, $replace, $buffer );\n  return $buffer;\n}\n\nob_start( 'sanitize_output' );\n\n// Start cache tricks\nif ( $cache === true ) :\n  $cachetime = 3600 * $cache_lifetime_hours;\n  if ( file_exists( $cachefile ) \u0026\u0026 time() - $cachetime \u003c filemtime( $cachefile ) ) {\n    echo '\u003c!-- Amazing hand crafted super cache by rolle, generated ' . date( 'H:i', filemtime( $cachefile ) ) . ' --\u003e';\n    include( sanitize_output( $cachefile ) );\n    exit;\n  }\n  ob_start();\nendif;\n\n// Content start\ninclude('../src/index.php');\n\n// End cache tricks\nif ( $cache === true ) :\n  $fp = fopen( $cachefile, 'w' );\n  fwrite( $fp, sanitize_output( ob_get_contents() ) );\n  fclose( $fp );\n  ob_end_flush();\nendif;\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollecode%2Fmodern-html5-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frollecode%2Fmodern-html5-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollecode%2Fmodern-html5-boilerplate/lists"}