summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEbrahim Nejati <dearrude@tfwno.gf>2023-07-30 21:23:28 +0330
committerDrew DeVault <sir@cmpwn.com>2023-08-07 11:20:02 +0200
commit796f27cf031385627594b24fecd25c5f375697b0 (patch)
tree9033b1f5db3bfd73b75b858b782e01fa794166ad
parent51c8a2e1f2e72c09c0e3c7a3abe32b92d2944408 (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.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/in.html b/in.html
index e41ef54..4668dc6 100644
--- a/in.html
+++ b/in.html
@@ -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>