mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-09 07:25:21 +02:00
Added ability to change favicon in config
This commit is contained in:
parent
16ba86fddb
commit
058103aa78
3 changed files with 11 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"favicon": "",
|
||||||
"title": "CodeX Docs",
|
"title": "CodeX Docs",
|
||||||
"description": "A block-styled editor with clean JSON output",
|
"description": "A block-styled editor with clean JSON output",
|
||||||
"menu": [
|
"menu": [
|
||||||
|
|
|
@ -7,7 +7,11 @@
|
||||||
<meta property="og:title" content="{{ page.title | striptags }}" />
|
<meta property="og:title" content="{{ page.title | striptags }}" />
|
||||||
<meta property="article:modified_time" content="{{ (page.body.time / 1000) | date("c") }}" />
|
<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" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
|
{% if config.favicon is empty %}
|
||||||
<link rel="icon" type="image/png" href="/favicon.png">
|
<link rel="icon" type="image/png" href="/favicon.png">
|
||||||
|
{% else %}
|
||||||
|
<link rel="icon" type="image/png" href="{{ config.favicon }}">
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<script>
|
<script>
|
||||||
window.config = {
|
window.config = {
|
||||||
|
|
|
@ -4,7 +4,11 @@
|
||||||
<title>{{ config.title }}</title>
|
<title>{{ config.title }}</title>
|
||||||
<link rel="stylesheet" href="/dist/main.css" />
|
<link rel="stylesheet" href="/dist/main.css" />
|
||||||
<link rel="preload" href="{{ config.landingFrameSrc }}" as="document">
|
<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 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:title" content="{{ config.title }}" />
|
||||||
<meta property="og:site_name" content="{{ config.title }}" />
|
<meta property="og:site_name" content="{{ config.title }}" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue