mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 08:23:18 -03:00
update opengraph
This commit is contained in:
4
.env
4
.env
@@ -13,6 +13,8 @@ MAX_FETCH_JOBS=1000
|
||||
INSTANCE_NAME=Myrient
|
||||
# Enable the built-in emulator
|
||||
EMULATOR_ENABLED=true
|
||||
# Set the hostname
|
||||
HOSTNAME=myrient.mahou.one
|
||||
|
||||
# Run docker-compose.dev.yml for running locally
|
||||
# Database Configuration
|
||||
@@ -27,4 +29,4 @@ ELASTICSEARCH_URL=http://localhost:9200
|
||||
|
||||
#IGDB Connection Configuration - Not setting this will disable the new search page and metadata pull
|
||||
TWITCH_CLIENT_ID=
|
||||
TWITCH_CLIENT_SECRET=
|
||||
TWITCH_CLIENT_SECRET=
|
||||
|
||||
@@ -8,6 +8,7 @@ services:
|
||||
- BIND_ADDRESS=0.0.0.0
|
||||
- FORCE_FILE_REBUILD=0
|
||||
- DEBUG=0
|
||||
- HOSTNAME=myrient.mahou.one
|
||||
- NODE_ENV=production
|
||||
- MAX_JOB_QUEUE=1000
|
||||
- MAX_FETCH_JOBS=1000
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
<%
|
||||
let ogPages = {
|
||||
"results": "opengraphresults",
|
||||
"info": "opengraphinfo"
|
||||
}
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -6,7 +12,7 @@
|
||||
<body class="d-flex flex-column min-vh-100">
|
||||
<header>
|
||||
<%- include('../partials/header'); %>
|
||||
<%- page == 'results' ? include('../partials/opengraphresults') : include('../partials/opengraph') %>
|
||||
<%- ogPages[page] ? include(`../partials/${ogPages[page]}`) : include('../partials/opengraph') %>
|
||||
</header>
|
||||
|
||||
<%- include(page); %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<meta name="description" content="Myrient Search is your go to search engine for searching through publicly available video game collections with the intention of keeping them from becoming lost to time.">
|
||||
|
||||
<!-- Facebook Meta Tags -->
|
||||
<meta property="og:url" content="https://myrientsearch.org">
|
||||
<meta property="og:url" content="https://<%= process.env.HOSTNAME %>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="Myrient Search">
|
||||
<meta property="og:description" content="Myrient Search is your go to search engine for searching through publicly available video game collections with the intention of keeping them from becoming lost to time.">
|
||||
@@ -10,7 +10,7 @@
|
||||
<!-- Twitter Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:domain" content="myrientsearch.org">
|
||||
<meta property="twitter:url" content="https://myrientsearch.org">
|
||||
<meta property="twitter:url" content="https://<%= process.env.HOSTNAME %>">
|
||||
<meta name="twitter:title" content="Myrient Search">
|
||||
<meta name="twitter:description" content="Myrient Search is your go to search engine for searching through publicly available video game collections with the intention of keeping them from becoming lost to time.">
|
||||
<meta name="twitter:image" content="https://opengraph.b-cdn.net/production/images/74980e84-25fb-4bb7-af42-243168815200.png?token=9ZpCsjaOVazfMIoiRI_xu28uQkYfDOMdOoGEc4c0KVc&height=630&width=1200&expires=33265501698">
|
||||
|
||||
17
views/partials/opengraphinfo.ejs
Normal file
17
views/partials/opengraphinfo.ejs
Normal file
@@ -0,0 +1,17 @@
|
||||
<meta name="description" content="Myrient Search Info">
|
||||
|
||||
<!-- Facebook Meta Tags -->
|
||||
<meta property="og:url" content="https://<%= process.env.HOSTNAME %>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="<%= metadata.title || file.filename %>">
|
||||
<meta property="og:description" content="<%= metadata.description || "No description found." %>">
|
||||
<meta property="og:image" content="https://<%= process.env.HOSTNAME%>/<%=coverUrl%>">
|
||||
|
||||
|
||||
<!-- Twitter Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:domain" content="myrientsearch.org">
|
||||
<meta property="twitter:url" content="https://<%= process.env.HOSTNAME %>">
|
||||
<meta name="twitter:title" content="Myrient Search Results: <%= metadata.title || file.filename %>">
|
||||
<meta name="twitter:description" content="<%= metadata.description || "No description found." %>">
|
||||
<meta name="twitter:image" content="https://<%= process.env.HOSTNAME %>/<%=coverUrl%>">
|
||||
@@ -9,7 +9,7 @@ resultString = resultString.trim()
|
||||
<meta name="description" content="Myrient Search Results">
|
||||
|
||||
<!-- Facebook Meta Tags -->
|
||||
<meta property="og:url" content="https://myrientsearch.org">
|
||||
<meta property="og:url" content="https://<%= process.env.HOSTNAME %>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="Myrient Search Results: <%= query %>">
|
||||
<meta property="og:description" content="<%= resultString %>">
|
||||
@@ -17,6 +17,6 @@ resultString = resultString.trim()
|
||||
<!-- Twitter Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:domain" content="myrientsearch.org">
|
||||
<meta property="twitter:url" content="https://myrientsearch.org">
|
||||
<meta property="twitter:url" content="https://<%= process.env.HOSTNAME %>">
|
||||
<meta name="twitter:title" content="Myrient Search Results: <%= query %>">
|
||||
<meta name="twitter:description" content="<%= resultString %>">
|
||||
|
||||
Reference in New Issue
Block a user