~sircmpwn/openring

796f27cf031385627594b24fecd25c5f375697b0 — Ebrahim Nejati 4 months ago 51c8a2e
Add BIDI support

* add dir=auto to title and articles

This enables languages like Persian, Arabic and Hebrew to have proper
direction by "dir" attribute:
          https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
1 files changed, 2 insertions(+), 2 deletions(-)

M in.html
M in.html => in.html +2 -2
@@ 4,10 4,10 @@
  <section class="articles">
    {{range .Articles}}
    <div class="article">
      <h4 class="title">
      <h4 class="title" dir="auto">
        <a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
      </h4>
      <p class="summary">{{.Summary}}</p>
      <p class="summary" dir="auto">{{.Summary}}</p>
      <small class="source">
        via <a href="{{.SourceLink}}">{{.SourceTitle}}</a>
      </small>