mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-17 17:57:04 +01:00
layouts: Use right-to-left text for Farsi
This commit is contained in:
parent
df1ec1df21
commit
b2ea655810
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Lang }}" {{ if eq .Lang "ar" }}dir="rtl"{{ end }}>
|
||||
<html lang="{{ .Lang }}" {{ if or (eq .Lang "ar") (eq .Lang "fa") }}dir="rtl"{{ end }}>
|
||||
|
||||
<head>
|
||||
{{ partial "head-meta.html" . }}
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
|
||||
{{ if eq .Lang "ar" }}
|
||||
{{ if or (eq .Lang "ar") (eq .Lang "fa") }}
|
||||
{{ "<!-- ar -->" | safeHTML }}
|
||||
<link href="{{ "css/style.rtl.css" | absURL }}" rel="stylesheet"{{ if not .Site.Params.disable_sri }} integrity="{{ .Site.Data.sri.styleltr}}" crossorigin="anonymous"{{ end }}>
|
||||
{{ else }}
|
||||
|
Loading…
Reference in New Issue
Block a user