1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-08 06:55:26 +02:00

Added ability to change favicon in config

This commit is contained in:
slaveeks 2022-06-10 16:11:09 +03:00
parent 16ba86fddb
commit 058103aa78
3 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{
"favicon": "",
"title": "CodeX Docs",
"description": "A block-styled editor with clean JSON output",
"menu": [

View file

@ -7,7 +7,11 @@
<meta property="og:title" content="{{ page.title | striptags }}" />
<meta property="article:modified_time" content="{{ (page.body.time / 1000) | date("c") }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="icon" type="image/png" href="/favicon.png">
{% if config.favicon is empty %}
<link rel="icon" type="image/png" href="/favicon.png">
{% else %}
<link rel="icon" type="image/png" href="{{ config.favicon }}">
{% endif %}
</head>
<script>
window.config = {

View file

@ -4,7 +4,11 @@
<title>{{ config.title }}</title>
<link rel="stylesheet" href="/dist/main.css" />
<link rel="preload" href="{{ config.landingFrameSrc }}" as="document">
<link rel="icon" type="image/png" href="/favicon.png?v=2">
{% if config.favicon is empty %}
<link rel="icon" type="image/png" href="/favicon.png">
{% else %}
<link rel="icon" type="image/png" href="{{ config.favicon }}">
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta property="og:title" content="{{ config.title }}" />
<meta property="og:site_name" content="{{ config.title }}" />