{"id":17832412,"url":"https://github.com/paulohrpinheiro/gerablog","last_synced_at":"2025-03-19T10:30:53.845Z","repository":{"id":56874022,"uuid":"77411877","full_name":"paulohrpinheiro/gerablog","owner":"paulohrpinheiro","description":"Blog Generator - my own static site generator","archived":false,"fork":false,"pushed_at":"2024-01-16T09:40:36.000Z","size":497,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T06:11:30.846Z","etag":null,"topics":["ruby","rubygem","static-site-generator"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/paulohrpinheiro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-26T23:26:13.000Z","updated_at":"2025-02-21T20:21:06.000Z","dependencies_parsed_at":"2022-08-20T22:30:33.633Z","dependency_job_id":null,"html_url":"https://github.com/paulohrpinheiro/gerablog","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Fgerablog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Fgerablog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Fgerablog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Fgerablog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulohrpinheiro","download_url":"https://codeload.github.com/paulohrpinheiro/gerablog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244407770,"owners_count":20447846,"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":["ruby","rubygem","static-site-generator"],"created_at":"2024-10-27T19:56:48.734Z","updated_at":"2025-03-19T10:30:53.590Z","avatar_url":"https://github.com/paulohrpinheiro.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeraBlog\n\n[![Gem Version](https://badge.fury.io/rb/gerablog.svg)](https://badge.fury.io/rb/gerablog)\n[![Code Climate](https://codeclimate.com/github/paulohrpinheiro/gerablog/badges/gpa.svg)](https://codeclimate.com/github/paulohrpinheiro/gerablog)\n[![Test Coverage](https://codeclimate.com/github/paulohrpinheiro/gerablog/badges/coverage.svg)](https://codeclimate.com/github/paulohrpinheiro/gerablog)\n[![Issue Count](https://codeclimate.com/github/paulohrpinheiro/gerablog/badges/issue_count.svg)](https://codeclimate.com/github/paulohrpinheiro/gerablog)\n![travis-CI](https://api.travis-ci.org/paulohrpinheiro/gerablog.svg?branch=master)\n\n*Blog Generator - my own static site generator*\n\nWrite in *Markdown*, publish in *HTML*.\n\n![I'm GeraBlog](gerablog.png)\n*Image created by https://robohash.org/*\n\n## Rules\n\n* The texts must be written in markdown.\n* The first line of file will be the post title `#` mark.\n* The second line is a blank line.\n* The third line will be the description of text, with `##` mark. Will be in meta description of generated html.\n* The filename **MUST** begin with a date: `2016-12-31-this-is-a-post.md`.\n* The texts must be in a subdirectory of `texts`. Each subdirectory will be assigned a *category*.\n* Change the layout by changing files in `templates` dir, which uses [Tenjin](http://www.kuwata-lab.com/tenjin/rbtenjin-users-guide.html) as template system.\n* `JS` and` CSS` files put in `assets/{css, js}`.\n* The images used in the posts should be placed in a `images` subdirectory, within the category directory:` texts/ruby/images/pinkpanter.jpg`. In the post, put the reference as `![Pink Panter](images/pinkpanter.jpg)`.\n* Images used in posts **MUST** be placed in the same level`CATEGORY/images`.\n* By default, *GeraBlog* uses [prism](http://prismjs.com/) to highlight the syntax of the codes. The language indicated will be the category in which the text is. For example, the file `ruby/2016-12-31-ruby-rocks.md` if it has some source code, it will be marked as *lang-ruby*.\n\n## Sample text:\n\n    # This is the title\n\n    ## This is the description\n\n    Here the text.\n\n    Show-me the code:\n\n        puts 'Hello world!'\n\n## Install\n\n    gem install gerablog\n\n## Hacking\n\n* clone the repo;\n* `bundle install`;\n* make changes (with tests!)\n* run all the tests (`rake`) and fix anything that appears wrong\n* run `rubocop` and fix all *offenses*!\n* send me a PR.\n\n## Using\n\nThe executable `gerablog` has this options:\n\n### `-h` or `--help`\n\nYes, we have a `--help` option:\n\n    ➤ gerablog --help\n    Usage: optparse [options]\n        -h, --help                       Display this screen\n        -n, --new FILENAME               Create a new project.\n        -g, --generate FILENAME          Generate the static blog.\n\n###  `-n` or `--new`\n\nCreate a new project:\n\n    ➤ gerablog --new /tmp/test\n\nHow the project looks like?\n\n    ➤ tree /tmp/test\n    /tmp/test\n    ├── assets\n    │   └── assets\n    │       ├── css\n    │       │   ├── gerablog.css\n    │       │   └── prism.css\n    │       └── js\n    │           └── prism.js\n    ├── gerablog.conf\n    ├── output\n    ├── templates\n    │   └── templates\n    │       ├── categories.rbhtml\n    │       ├── category.rbhtml\n    │       ├── feed.rbxml\n    │       ├── footer.rbhtml\n    │       ├── header.rbhtml\n    │       ├── index.rbhtml\n    │       └── post.rbhtml\n    └── texts\n\nIf `--root` is not informed, root will be `./`.\n\n### `-g` or `--generate`\n\n### Deploy\n\nFor my [blog](https://paulohrpinheiro.xyz):\n\n    ➤ gerablog --generate ~/Dropbox/projetos/paulohrpinheiro.xyz/blog/gerablog.conf\n    ruby\n    diversos\n    programadorbipolar\n    javascript\n    c\n    perl\n    rust\n    python\n\nCopy `output` directory to your server :)\n\n## History\n\nThis project started with a script I made to generate my site https://paulohrpinheiro.xyz.\n\nThe script is in this gist:\n\nhttps://gist.github.com/paulohrpinheiro/20130e06355fc5bffe5865ce903dce63\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulohrpinheiro%2Fgerablog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulohrpinheiro%2Fgerablog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulohrpinheiro%2Fgerablog/lists"}