{"id":13424709,"url":"https://github.com/pablomartinezalvarez/glayu","last_synced_at":"2025-03-15T18:35:49.791Z","repository":{"id":80885655,"uuid":"91890774","full_name":"pablomartinezalvarez/glayu","owner":"pablomartinezalvarez","description":"A static site generator for mid-sized sites.","archived":false,"fork":false,"pushed_at":"2017-08-25T13:33:35.000Z","size":46184,"stargazers_count":79,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-26T23:55:40.138Z","etag":null,"topics":["elixir","static-site-generator"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/pablomartinezalvarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-20T13:24:20.000Z","updated_at":"2024-05-08T04:35:11.000Z","dependencies_parsed_at":"2023-07-29T04:01:30.235Z","dependency_job_id":null,"html_url":"https://github.com/pablomartinezalvarez/glayu","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablomartinezalvarez%2Fglayu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablomartinezalvarez%2Fglayu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablomartinezalvarez%2Fglayu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablomartinezalvarez%2Fglayu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pablomartinezalvarez","download_url":"https://codeload.github.com/pablomartinezalvarez/glayu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775916,"owners_count":20346286,"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":["elixir","static-site-generator"],"created_at":"2024-07-31T00:00:58.174Z","updated_at":"2025-03-15T18:35:44.751Z","avatar_url":"https://github.com/pablomartinezalvarez.png","language":"Elixir","funding_links":[],"categories":["Elixir","Static Page Generation"],"sub_categories":[],"readme":"[![glayu](https://cdn.rawgit.com/pmartinezalvarez/glayu/a3626e17/glayu.svg)](http://www.glayu.com)\n\n\n[![Build Status](https://travis-ci.org/pmartinezalvarez/glayu.svg?branch=master)](https://travis-ci.org/pmartinezalvarez/glayu)\n\n## What is Glayu?\nGlayu is a static site generator for mid-sized sites that generate content frequently and have to deal with multiple categories, like magazines and newspapers.\n\nWhat makes Glayu different from other static site generators is the way it structures the source folder: when you publish an article using Glayu, the markdown file is placed inside a subfolder of the `source` directory following the permalink definition.\n\nWith the default permalink definition `categories/year/month/day/title`  your `source` and `public` directories will look like:\n\n![Workflow](http://d33wubrfki0l68.cloudfront.net/461058aadfeee3aaff45fe46765498c74f7c5edc/62dee/assets/images/overview/workflow.png)\n\nThe motivation of this `source` folder organization is to split the site content in smaller units that can be managed independently. Glayu takes advance of this folder organization to enable the concurrent and partial generation of the site. \n\nIn the previous example a complete build of the site will handle the `/source/_posts/world/2017/07/11` and `/source/_posts/us/2017/11`  folders concurrently. \n\nGlayu enables the partial generation of the site by using regular expressions, so if you will be interested in only generate the `world` articles you could use the `build` command like this:\n   \n```console\n$ glayu build _posts/world*\n```\n\n## Features\n\n* Partial site generation.\n* Well organized source folder.\n* Fast, thanks to [Elixir](https://elixir-lang.org/) and the [Erlang VM](http://www.erlang.org/).\n* Themes support.\n* Partials support.\n\n## Quick Start\n\nPre-requisites: [Erlang](http://www.erlang.org/downloads) installed on your machine.\n\nGet the latest [Glayu binary](https://github.com/pmartinezalvarez/glayu/raw/master/apps/glayu/glayu), grant execution permissions if needed, and add it to your `PATH`\n\nInit the site.\n\n```console\n$ glayu init glayu_site\n🐦 Your Glayu site has been created at ${PATH_TO_SITE}/glayu_site\n```\n\nCreate your first post.\n\n```console\n$ cd ./glayu_site\n$ glayu new \"My First Glayu Article\"\n🐦 Post created at ${PATH_TO_SITE}/glayu_site/source/_drafts/my-first-glayu-article.md\n```\n\nPublish your post.\n\n```console\n$ glayu publish my-first-glayu-article.md\n🐦 Draft published to ${PATH_TO_SITE}/glayu_site/source/_posts/software/static-sites/2017/07/11/my-first-glayu-article.md\n```\n\nBuild the site.\n\n```console\n$ glayu build\n✓ Site pages generated.\n└── 1 pages generated.\n✓ Category pages generated.\n└── 2 category pages generated.\n✓ Home page generated.\n✓ Site assets copied from theme folder to public folder.\n└── 20 files copied.\n🐦 Site Generated Successfully.\n```\nThe site pages are generated under `../glayu_site/public`\n\n## Documentation Site\n\nCheck the [docs](http://www.glayu.com/overview).\n\n## Themes\n\n[Glayu Times](https://github.com/pmartinezalvarez/glayu-times-theme)\n\n[Glayu Bootswatch](https://github.com/gnucifer/glayu-bootswatch) by [David Gustafsson](https://github.com/gnucifer)\n\n## Source Code Organization\n\nGlayu is an Elixir umbrella project including following applications:\n\nApplication | Description\n------------ | -------------\n`glayu` | `glayu` escript binary generation\n`glayu_core` | main Glayu logic\n`glayu_build` | `SiteTree` and site pages rendering logic\n`glayu_preview_server` | preview server\n\n## License\n\nThis project is available under the MIT license.\n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablomartinezalvarez%2Fglayu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpablomartinezalvarez%2Fglayu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablomartinezalvarez%2Fglayu/lists"}