Compare commits
No commits in common. "9bba1d2c706d03120930c961c1b4a76535877d54" and "5be1e9acaad8fd84f01e5f7a969033d5c449430d" have entirely different histories.
9bba1d2c70
...
5be1e9acaa
|
@ -39,7 +39,7 @@ function addCopyButtons(clipboard) {
|
|||
// wrapper.appendChild(preElement);
|
||||
|
||||
var preParent = preElement.parentNode;
|
||||
if (preParent.classList.contains('codehilite') && preElement.children[0].dataset.lang != 'plaintext') {
|
||||
if (preParent.classList.contains('highlight') && preElement.children[0].dataset.lang != 'plaintext') {
|
||||
preParent.parentNode.insertBefore(button, preParent);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,12 +1,3 @@
|
|||
{% set title = config.languages[language].title %}
|
||||
{% set description = config.languages[language].description %}
|
||||
{% if section %}
|
||||
{% set title = translate(section, language) | capitalize %}
|
||||
{% set description = title %}
|
||||
{% elif not home %}
|
||||
{% set title = post.title %}
|
||||
{% set description = post.description %}
|
||||
{% endif %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ language }}">
|
||||
{% include "components/head.j2" %}
|
||||
|
@ -22,7 +13,6 @@
|
|||
{% include "components/single.j2" %}
|
||||
{% endif %}
|
||||
</main>
|
||||
{% include "components/social.j2" %}
|
||||
{% include "components/sidebar.j2" %}
|
||||
{% include "components/footer.j2" %}
|
||||
{% include "components/script.j2" %}
|
||||
|
|
|
@ -16,4 +16,4 @@
|
|||
{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
|
@ -1,11 +1,18 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% set title = config.languages[language].title %}
|
||||
{% set description = config.languages[language].description %}
|
||||
{% if section %}
|
||||
{% set title = (translate(section, language) | capitalize) + " | " + title %}
|
||||
{% set description = title %}
|
||||
{% elif not home %}
|
||||
{% set title = post.title + " | " + title %}
|
||||
{% set description = post.description %}
|
||||
{% endif %}
|
||||
<title>{{ title }}</title>
|
||||
<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 %}
|
||||
</head>
|
||||
{% if config.custom_css %}<link href="/css/{{ config.custom_css }}" rel="stylesheet">{% endif %}
|
||||
</head>
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{% for section, urls in posts[language].items() %}
|
||||
{% if section != "/" %}
|
||||
{% for url, post in urls.items() %}
|
||||
{% include "components/post_summary.j2" %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% for url, post in urls.items() %}
|
||||
{% include "components/post_summary.j2" %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
|
@ -4,9 +4,9 @@
|
|||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "{{ title }}",
|
||||
"url": "{{ config.base_url }}",
|
||||
"url": "{{ url }}",
|
||||
"description": "{{ description }}",
|
||||
"thumbnailUrl": "{{ config.base_url + "/logo.svg" }}",
|
||||
"thumbnailUrl": "{{ logo_url }}",
|
||||
}
|
||||
</script>
|
||||
{% else %}
|
||||
|
@ -14,31 +14,29 @@
|
|||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": {{ config.schema.type }},
|
||||
{% if section %}
|
||||
"articleSection": {{ translate(section, language) }},
|
||||
{% endif %}
|
||||
|
||||
{# "articleSection": {{ translate(section, language) }}, #}
|
||||
{% if config.schema.type == 'TechArticle' %}
|
||||
"proficiencyLevel": "Beginner",
|
||||
{% endif %}
|
||||
"name": {{ title }},
|
||||
"headline": {{ title }},
|
||||
"inLanguage": {{ language }},
|
||||
"description": {{ description | striptags }},
|
||||
"wordCount": {{ wordcount }},
|
||||
"description": {{ description }},
|
||||
"datePublished": {{ date_published }},
|
||||
"dateModified": {{ date_modified }},
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": {{ config.languages[language].author }},
|
||||
"url": {{ config.base_url + "/" + language + "/about-author" }}
|
||||
"url": {{ config.baseURL + "/" + language + "/about-author" }}
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{{ config.languages[language].title }}",
|
||||
"url": {{ config.base_url }},
|
||||
"url": {{ config.baseUrl }},
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": {{ config.base_url + "/logo.svg" }}
|
||||
"url": {{ logo_url }}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{% for include in config['includes'] %}
|
||||
{% for include in includes %}
|
||||
<script defer src="/js/{{ include }}"></script>
|
||||
{% endfor %}
|
|
@ -1,11 +1,9 @@
|
|||
<div class="sidebar">
|
||||
<section>
|
||||
{% for section, urls in posts[language].items() %}
|
||||
{% if section != "/" %}
|
||||
<p>
|
||||
<a href="/{{ language}}/{{ section }}">{{ translate(section, language) }} ({{ urls | length }})</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
<p>
|
||||
<a href="/{{ language}}/{{ section }}">{{ translate(section, language) }} ({{ urls | length }})</a>
|
||||
</p>
|
||||
{% endfor %}
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
<div class="social-icons">
|
||||
{% 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" />
|
||||
{{ 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" />
|
||||
</a>
|
||||
{% 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" />
|
||||
{{ 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" />
|
||||
</a>
|
||||
{% 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" />
|
||||
{{ 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" />
|
||||
</a>
|
||||
{% endif %}
|
||||
{{ end }}
|
||||
</div>
|
Loading…
Reference in New Issue