Sha256: 365386c042e9022219956e973112c6818e7ebf5b38188c87db5730ff7a433f17

Contents?: true

Size: 1.2 KB

Versions: 8

Compression:

Stored size: 1.2 KB

Contents

{% assign words = include.text | split: " " %}

<div class="bubble-container {{ include.side }}">
  <div class="talk-bubble {{ include.side }} tri-right {{ include.side }}-in border round">
    <div class="talktext">
      <div class="index">{{ include.index }}</div>
      {%- for raw in words %}
        {%- assign w = raw
          | replace: 'th', '<u>th</u>'
          | replace: 'Th', '<u>Th</u>'
          | replace: 'St', '<u>St</u>'
          | replace: 've', '<u>ve</u>'
          | replace: 'Ve', '<u>Ve</u>'
          | replace: 'dr', '<u>dr</u>'
          | replace: 'Dr', '<u>Dr</u>'
        %}
        {%- assign str = w | remove_first: '^' %}
        {%- if str == w %}
          {{ w }}
        {%- else -%}
          {%- assign word = str
             | remove_first: '.'
             | remove_first: ','
             | remove_first: '!'
             | remove_first: '?'
           %}
          {%- if word == str %}
            {%- include session/say.html word=word -%}
          {%- else %}
            {%- assign punct = str | slice: -1, 1 -%}
            {%- include session/say.html word=word punct=punct -%}
          {% endif -%}
        {% endif -%}
      {% endfor -%}
    </div>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
askclass-course-theme-0.14.0 _includes/session/bubble.html
askclass-course-theme-0.13.5 _includes/session/bubble.html
askclass-course-theme-0.13.4 _includes/session/bubble.html
askclass-course-theme-0.13.3 _includes/session/bubble.html
askclass-course-theme-0.13.2 _includes/session/bubble.html
askclass-course-theme-0.13.1 _includes/session/bubble.html
askclass-course-theme-0.13.0 _includes/session/bubble.html
askclass-course-theme-0.12.0 _includes/session/bubble.html