Support right-to-left languages

This commit is contained in:
Will Faught
2022-12-16 15:54:35 -08:00
parent 652343fc31
commit 6e026bddbd
3 changed files with 3 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ Search page:
- Minimal design - Minimal design
- RSS with full content - RSS with full content
- Responsive - Responsive
- Right-to-left languages
- SEO - SEO
- Safari and Firefox Reader View support - Safari and Firefox Reader View support
- Search - Search

View File

@@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html lang="{{ .Site.LanguageCode }}"> <html{{ if eq .Language.LanguageDirection "rtl" }} dir="rtl"{{ end }} lang="{{ .Site.LanguageCode }}">
{{ partial "paige-head.html" . }} {{ partial "paige-head.html" . }}
<body class="d-flex flex-column"> <body class="d-flex flex-column">
<div class="container flex-fill"> <div class="container flex-fill">

View File

@@ -1,5 +1,5 @@
<div class="container-fluid"> <div class="container-fluid">
<form action="{{ .Page.RelPermalink }}" method="get"> <form action="{{ .Page.RelPermalink }}" dir="auto" method="get">
<div class="justify-content-center mb-3 row"> <div class="justify-content-center mb-3 row">
<div class="col col-sm-8 col-md-7 col-lg-6 col-xl-5 col-xxl-4"> <div class="col col-sm-8 col-md-7 col-lg-6 col-xl-5 col-xxl-4">
<input aria-label="Query" class="form-control" id="query" name="q" type="search" placeholder="Query"> <input aria-label="Query" class="form-control" id="query" name="q" type="search" placeholder="Query">