Fix social and schema
This commit is contained in:
parent
13613a593f
commit
9bba1d2c70
|
@ -39,7 +39,7 @@ function addCopyButtons(clipboard) {
|
|||
// wrapper.appendChild(preElement);
|
||||
|
||||
var preParent = preElement.parentNode;
|
||||
if (preParent.classList.contains('highlight') && preElement.children[0].dataset.lang != 'plaintext') {
|
||||
if (preParent.classList.contains('codehilite') && preElement.children[0].dataset.lang != 'plaintext') {
|
||||
preParent.parentNode.insertBefore(button, preParent);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
{% include "components/single.j2" %}
|
||||
{% endif %}
|
||||
</main>
|
||||
{% include "components/social.j2" %}
|
||||
{% include "components/sidebar.j2" %}
|
||||
{% include "components/footer.j2" %}
|
||||
{% include "components/script.j2" %}
|
||||
|
|
|
@ -5,5 +5,7 @@
|
|||
<meta name="title" content="{{ title }}" />
|
||||
<meta name="description" content="{{ description }}" />
|
||||
<link href="/css/style.css" rel="stylesheet">
|
||||
{% if config.custom_css %}<link href="/css/{{ config.custom_css }}" rel="stylesheet">{% endif %}
|
||||
{% if config.custom_css %}
|
||||
<link href="/css/{{ config.custom_css }}" rel="stylesheet">
|
||||
{% endif %}
|
||||
</head>
|
|
@ -4,9 +4,9 @@
|
|||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "{{ title }}",
|
||||
"url": "{{ url }}",
|
||||
"url": "{{ config.base_url }}",
|
||||
"description": "{{ description }}",
|
||||
"thumbnailUrl": "{{ logo_url }}",
|
||||
"thumbnailUrl": "{{ config.base_url + "/logo.svg" }}",
|
||||
}
|
||||
</script>
|
||||
{% else %}
|
||||
|
@ -24,22 +24,21 @@
|
|||
"name": {{ title }},
|
||||
"headline": {{ title }},
|
||||
"inLanguage": {{ language }},
|
||||
"wordCount": {{ wordcount }},
|
||||
"description": {{ description }},
|
||||
"description": {{ description | striptags }},
|
||||
"datePublished": {{ date_published }},
|
||||
"dateModified": {{ date_modified }},
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": {{ config.languages[language].author }},
|
||||
"url": {{ config.baseURL + "/" + language + "/about-author" }}
|
||||
"url": {{ config.base_url + "/" + language + "/about-author" }}
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{{ config.languages[language].title }}",
|
||||
"url": {{ config.baseUrl }},
|
||||
"url": {{ config.base_url }},
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": {{ logo_url }}
|
||||
"url": {{ config.base_url + "/logo.svg" }}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{% for include in includes %}
|
||||
{% for include in config['includes'] %}
|
||||
<script defer src="/js/{{ include }}"></script>
|
||||
{% endfor %}
|
|
@ -1,20 +1,20 @@
|
|||
<div class="social-icons">
|
||||
{{ if .Site.Params.youtube }}
|
||||
<a href="https://youtube.com/{{ .Site.Params.Youtube }}">
|
||||
<img src="data:image/svg+xml;base64,{{ readFile "/static/images/youtube.svg" | base64Encode }}"
|
||||
alt="{{ .Site.Title }}" width="100" />
|
||||
{% if config.languages[language].youtube %}
|
||||
<a href="https://youtube.com/{{ config.languages[language].youtube }}">
|
||||
<img src="/images/youtube.svg"
|
||||
alt="{{ config.languages[language].title }}" width="100" />
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.github }}
|
||||
<a href="https://github.com/{{ .Site.Params.Github }}">
|
||||
<img src="data:image/svg+xml;base64,{{ readFile "/static/images/github.svg" | base64Encode }}"
|
||||
alt="{{ .Site.Title }}" width="100" />
|
||||
{% endif %}
|
||||
{% if config.languages[language].github %}
|
||||
<a href="https://github.com/{{ config.languages[language].github }}">
|
||||
<img src="/images/github.svg"
|
||||
alt="{{ config.languages[language].title }}" width="100" />
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.telegram }}
|
||||
<a href="https://t.me/{{ .Site.Params.Telegram }}">
|
||||
<img src="data:image/svg+xml;base64,{{ readFile "/static/images/telegram.svg" | base64Encode }}"
|
||||
alt="{{ .Site.Title }}" width="100" />
|
||||
{% endif %}
|
||||
{% if config.languages[language].telegram %}
|
||||
<a href="https://t.me/{{ config.languages[language].telegram }}">
|
||||
<img src="/images/telegram.svg"
|
||||
alt="{{ config.languages[language].title }}" width="100" />
|
||||
</a>
|
||||
{{ end }}
|
||||
{% endif %}
|
||||
</div>
|
Loading…
Reference in New Issue