diff options
author | Ebrahim Nejati <dearrude@tfwno.gf> | 2023-07-30 21:23:28 +0330 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2023-08-07 11:20:02 +0200 |
commit | 796f27cf031385627594b24fecd25c5f375697b0 (patch) | |
tree | 9033b1f5db3bfd73b75b858b782e01fa794166ad | |
parent | 51c8a2e1f2e72c09c0e3c7a3abe32b92d2944408 (diff) |
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
-rw-r--r-- | in.html | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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> |