mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-31 05:25:47 +00:00
site: onion location (#1356)
This commit is contained in:
committed by
GitHub
parent
5a2dd7b4bc
commit
7a78dfd3e3
@@ -4,7 +4,14 @@ const markdownItReplaceLink = require('markdown-it-replace-link')
|
||||
const slugify = require("slugify")
|
||||
const uri = require('fast-uri')
|
||||
|
||||
const globalConfig = {
|
||||
onionLocation: "https://isdb4l77sjqoy2qq7ipum6x3at6hyn3jmxfx4zdhc72ufbmuq4ilwkqd.onion",
|
||||
siteLocation: "https://simplex.chat"
|
||||
}
|
||||
|
||||
module.exports = function (ty) {
|
||||
ty.addShortcode("cfg", (name) => globalConfig[name])
|
||||
|
||||
// Keeps the same directory structure.
|
||||
ty.addPassthroughCopy("src/assets/")
|
||||
ty.addPassthroughCopy("src/fonts")
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
layout: layouts/main.html
|
||||
title: "SimpleX blog: the latest news"
|
||||
description: "SimpleX Chat - a private and encrypted messenger without any user IDs (not even random ones)! Make a private connection via link / QR code to send messages and make calls."
|
||||
ogURL: "https://simplex.chat/blog"
|
||||
path: /blog
|
||||
templateEngineOverride: njk
|
||||
active_blog: true
|
||||
---
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
layout: layouts/main.html
|
||||
title: "SimpleX Chat - Contact"
|
||||
header: "You have been sent a link to connect on SimpleX Chat"
|
||||
ogURL: "https://simplex.chat/"
|
||||
templateEngineOverride: njk
|
||||
---
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
layout: layouts/main.html
|
||||
title: "SimpleX Chat: private and secure messenger without any user IDs (not even random)"
|
||||
description: "SimpleX Chat - a private and encrypted messenger without any user IDs (not even random ones)! Make a private connection via link / QR code to send messages and make calls."
|
||||
ogURL: "https://simplex.chat/"
|
||||
templateEngineOverride: njk
|
||||
active_home: true
|
||||
---
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
layout: layouts/main.html
|
||||
title: "SimpleX Chat - Invitation"
|
||||
header: "You have been sent a link to connect on SimpleX Chat"
|
||||
ogURL: "https://simplex.chat/"
|
||||
templateEngineOverride: njk
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user