Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generoi/wp-gutenberg-hidetitle
https://github.com/generoi/wp-gutenberg-hidetitle
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/generoi/wp-gutenberg-hidetitle
- Owner: generoi
- Created: 2018-06-25T19:11:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T10:49:33.000Z (about 6 years ago)
- Last Synced: 2024-07-31T01:46:37.086Z (about 2 months ago)
- Language: PHP
- Size: 296 KB
- Stars: 4
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wp-gutenberg-hidetitle
> Add an option to the Gutenberg editor for hiding the post title.
## API
```php
{% if (not post.hide_title) %}
{{post.title}}
{% endif %}
```## Development
Install dependencies
composer install
npm installRun the tests
npm run test
Build assets
# Minified assets which are to be committed to git
npm run production# Watch for changes and re-compile while developing the plugin
npm run watch## Translations
During compilation a `languages/javascript.pot` containing the translatable strings from JavaScript will be created. This needs to be converted to PHP which is done automatically in the next step.
Rebuild POT files (after this, copy to each language as languages/wp-gutenberg-backgrounds-.po and translate it)
npm run lang:pot
Compile MO files (requires msgfmt which is available with brew install gettext && brew link gettext --force)
npm run lang:mo
Or run all of these with:
npm run lang