site: onion location (#1356)

This commit is contained in:
Evgeny Poberezkin
2022-11-12 12:04:23 +00:00
committed by GitHub
parent 5a2dd7b4bc
commit 7a78dfd3e3
7 changed files with 20 additions and 9 deletions
+4 -3
View File
@@ -7,13 +7,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SimpleX blog: {{ title }}</title>
<meta name="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="onion-location" content="{% cfg 'onionLocation' %}{{ permalink }}" />
<meta property="og:url" content="{% cfg 'siteLocation' %}{{ permalink }}" />
<meta property="og:type" content="article" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:url" content="{{ permalink }}" />
{% if image %}
<meta property="og:image" content="https://simplex.chat/blog/{{ image }}" />
<meta property="og:image" content="{% cfg 'siteLocation' %}/blog/{{ image }}" />
{% else %}
<meta property="og:image" content="https://simplex.chat/img/share_simplex.png" />
<meta property="og:image" content="{% cfg 'siteLocation' %}/img/share_simplex.png" />
{% endif %}
<meta name="twitter:card" content="summary" />
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicon.ico" />
+8 -2
View File
@@ -7,12 +7,18 @@
<title>{{ title }}</title>
<meta name="description" content="{{ description }}"/>
<meta name="Content-Type" content="text/html;charset=utf-8"/>
{% if path %}
<meta http-equiv="onion-location" content="{% cfg 'onionLocation' %}{{ path }}" />
<meta property="og:url" content="{% cfg 'siteLocation' %}{{ path }}" />
{% else %}
<meta http-equiv="onion-location" content="{% cfg 'onionLocation' %}/" />
<meta property="og:url" content="{% cfg 'siteLocation' %}/" />
{% endif %}
<meta property="og:type" content="website"/>
<meta property="og:title" content="{{ title }}"/>
<meta property="og:description" content="{{ description }}"/>
<meta property="og:image" content="https://simplex.chat/img/share_simplex.png"/>
<meta property="og:image" content="{% cfg 'siteLocation' %}/img/share_simplex.png"/>
<meta name="twitter:card" content="summary"/>
<meta property="og:url" content="{{ ogURL }}" />
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicon.ico"/>
<link rel="stylesheet" href="/css/swiper-bundle.min.css">