Orchid Writers Blocks

official

Orchid Writers Blocks


A collection of Template Tags and Components that help you get past the writer's block and make building your site a dream.

About Orchid Writers' Blocks

This plugin adds a collection of useful tags and functions for Pebble to make writing content simpler. See what's included below:

Tags

Alert

Wrap content in a callout or bootstrap-style alert.

{% alert 'warning' %}
    This is your final warning!
{% endalert %}

Github Gist

Embed a Github Gist.

{% gist 'gistId' %}

Instagram

Embed a photo from Instagram.

{% instagram 'username' 'postId' %}

Tabs

Embed a Twitter post, collection, or timeline.

{% tabs %}
    {% tab1 'One' %}Tab Content One{% endtab1 %}
    {% tab2 'Two' %}Tab Content Two{% endtab2 %}
{% endtabs %}

Twitter

Embed a Twitter post, collection, or timeline.

{% twitter 'username' %}
or
{% twitter 'username' 'tweetId' %}

Youtube

Embed a Youtube video.

{% youtube 'videoId' %}

Functions

Encode Spaces

Converts spaces to HTML-encoded non-breaking spaces to preserve spacing.

{{ encodeSpaces('text to encode') }}

Newline to BR

Converts newlines to BR tags to force HTML line breaks.

{{ nl2br('text to encode') }}

Pluralize

Attempts to convert a word to its English plural form.

{{ pluralize('word', 2) }}

Include with:
dependencies {
    orchidRuntime 'io.github.javaeden.orchid:OrchidWritersBlocks:0.13.0'
}