removing HtmlLanguage as it causes confusions

This commit is contained in:
Hamid Reza Mohammadi 2023-06-23 08:11:12 +03:30
parent 893a918f44
commit f466b4c5c6
2 changed files with 2 additions and 10 deletions

View File

@ -5,7 +5,7 @@
}
<!DOCTYPE html>
<html lang="@Model.HtmlLanguage" dir="rtl">
<html lang="fa-IR" dir="rtl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

View File

@ -1,5 +1,4 @@
using Azure;
using GanjooRazor.Utils;
using GanjooRazor.Utils;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
@ -517,12 +516,6 @@ namespace GanjooRazor.Pages
/// </summary>
public List<GanjoorCenturyViewModel> PoetGroups { get; set; }
/// <summary>
/// html language
/// </summary>
public string HtmlLanguage { get; set; } = "fa-IR";
private void _prepareNextPre()
{
@ -726,7 +719,6 @@ namespace GanjooRazor.Pages
if (IsPoemPage)
{
HtmlLanguage = string.IsNullOrEmpty(GanjoorPage.Poem.Language) ? "fa-IR" : GanjoorPage.Poem.Language;
if (bool.Parse(Configuration["BannersEnabled"]))
{
var bannerQuery = await _httpClient.GetAsync($"{APIRoot.Url}/api/banners/random");