20 lines
820 B
Plaintext
20 lines
820 B
Plaintext
@using Microsoft.AspNetCore.Mvc.Localization
|
|
@using Microsoft.AspNetCore.Http
|
|
@using Microsoft.ApplicationInsights.AspNetCore.Extensions
|
|
@inject IViewLocalizer Localizer
|
|
@{
|
|
var host = Context.Request.Host.Host;
|
|
if (Context.Request.Host.Port.HasValue)
|
|
{
|
|
host += $":{Context.Request.Host.Port}";
|
|
}
|
|
|
|
var baseDomain = $"{Context.Request.Scheme}://{host}/";
|
|
var imageUrl = baseDomain + Url.Content("images/gehgassi_Meta.jpg");
|
|
}
|
|
<meta property="og:image" content="@imageUrl">
|
|
<meta property="og:title" content="@Localizer["OpenMeta_Title"].Value">
|
|
<meta property="og:description" content="@Localizer["OpenMeta_Desc"].Value">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:url" content="@Context.Request.GetUri().ToString()">
|
|
<meta property="og:site_name" content="gehgassi"> |