Skip to content

Commit 664d965

Browse files
committed
fixes #79
1 parent 8861b07 commit 664d965

10 files changed

Lines changed: 60 additions & 569 deletions

File tree

_config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
# - code version (name) / repository
55
# - name convention based on https://en.wikipedia.org/wiki/Ubuntu_version_history#Release_history
66
code:
7-
version: 2020.10a
7+
version: 2020.10b
88
name: Breezy Badger
99
hosted: "https://github.com/"
1010
repository: "jaandrle/jaandrle.github.io"
1111
branch: "master"
1212

1313
# Main site settings
14-
# - language, (base)url
14+
# - (base)url
15+
# - language (see https://www.w3schools.com/tags/ref_language_codes.asp)
1516
url: https://jaandrle.github.io
1617
baseurl: ""
17-
locale: cs
18+
lang: cs
1819
sass:
1920
style: :compressed # You might prefer to minify using :compressed || :expanded
2021
defaults:

_data/running_vars/ui-text.yml

Lines changed: 0 additions & 512 deletions
This file was deleted.

_includes/i/atom_months.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{%- assign m = include.date | date: "%-m" -%}
2-
{{ include.date | date: "%-d" }}.
3-
{% case m -%}
2+
{{ include.date | date: "%-d" }}. {%
3+
case m -%}
44
{%- when '1' -%}ledna
55
{%- when '2' -%}února
66
{%- when '3' -%}března

_includes/i/atom_readingTime.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% assign words = include.content | number_of_words %}{%
22
if words < 275 %}
33
do minuty{%
4-
else %}{% assign time= words | divided_by: 135 %}
5-
cca {{ time }} minut{% if time < 5 %}y{% endif %}{%
4+
else %}{% assign time= words | divided_by: 135
5+
%} cca {{ time }} minut{% if time < 5 %}y{% endif %}{%
66
endif %}

_includes/i/atom_tags.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
{% for tag in include.tags %}
2-
{% if forloop.index0!=0 %}, {% endif %}
3-
<a href="/blog/tags.html#tag_anchor_{{ tag | downcase | replace:' ','-' }}">{{tag}}</a>
4-
{% endfor %}
1+
{% for tag in include.tags %}{% if forloop.index0!=0 %}, {% endif %}<a href="/blog/tags.html#tag_anchor_{{ tag | downcase | replace:' ','-' }}">{{tag}}</a>{% endfor %}

_includes/i/molecule_articleInfo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
pouziti: "include i/molecule_articleInfo.html content={String} date={Date} tags={String[]} [updated={Date}]"
33
{% endcomment
44
%}<div class="info">{%
5-
include icon.html icon="icon-clock" %} {% include i/atom_readingTime.html content=include.content %} |
6-
<b>Publikováno:</b> {% include i/atom_months.html date=include.date %}{%
5+
include icon.html icon="icon-clock" %} {% include i/atom_readingTime.html content=include.content %} | {% comment %}{% endcomment
6+
%}<b>Publikováno:</b> {% include i/atom_months.html date=include.date %}{%
77
if include.updated %} | <b>Aktualizováno:</b> {% include i/atom_months.html date=include.updated %}{% endif %}{%
88
if include.tags[0] %} | <b>Štítky:</b> {% include i/atom_tags.html tags=include.tags %}{% endif
99
%}</div>

_includes/i/molecule_meta.html

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1+
{% comment %}{% endcomment -%}
2+
{% assign description= page.excerpt | default: site.description | strip_html | strip_newlines -%}
3+
{% assign full_baseurl= site.baseurl | prepend: site.url -%}
4+
<!-- ❕ -->
15
<meta charset="utf-8" />
26
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
37
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
4-
<meta http-equiv='X-UA-Compatible' content='IE=edge'>{%
5-
if page.path == "blog/tags.html" %}
8+
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
9+
{%- if page.noindex %}
610
<meta name="robots" content="noindex">{%
7-
endif %}
8-
11+
endif %}
12+
<!-- © (Jekyll & GitHub Pages) -->
913
<meta name="author" content="{{ site.author.name }}" />
10-
<meta name="generator" content="Jekyll" /> <!-- Created with Jekyll & GitHub Pages -->
11-
{%
12-
if page.excerpt %}
13-
<meta name="description" content="{{ page.excerpt | strip_html | strip_newlines }}" />
14-
<meta property="og:description" content="{{ page.excerpt| strip_html | strip_newlines }}" />
15-
{%- else %}
16-
<meta name="description" content="{{ site.description }}">
17-
<meta property="og:description" content="{{ site.description }}" />
18-
{%- endif -%}
19-
{%
20-
if page.title %}
14+
<meta name="generator" content="Jekyll" />
15+
<!-- ℹ 🔗 📜 -->
16+
<link rel="canonical" href="{{ full_baseurl }}{{ page.url | replace:'index.html','' }}" />
17+
<meta property="og:url" content="{{ full_baseurl }}{{ page.url }}">
18+
<meta name="description" content="{{ description }}" />
19+
<meta property="og:description" content="{{ description }}" />
20+
<meta property="twitter:description" content="{{ description }}" />
21+
{% if page.title -%}
2122
<meta property="og:title" content="{{ page.title }}" />
2223
<meta property="twitter:title" content="{{ page.title }}" />
2324
{%- endif %}
24-
25-
<link rel="shortcut icon" href="/files/internal/favicon.ico">
26-
25+
<meta name="twitter:site" content="@{{ site.author.twitter }}">
2726
<!--[if lt IE 9]>
2827
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
2928
<![endif]-->
30-
31-
<link rel="canonical" href="{{ site.baseurl }}{{ page.url | replace:'index.html','' }}" />
32-
29+
<!-- 🎨 🔗 -->
30+
<link rel="shortcut icon" href="/files/internal/favicon.ico">
3331
<link href="https://fonts.googleapis.com/css2?family=Vollkorn:ital,wght@0,500;0,700;1,500;1,700&display=swap" rel="stylesheet">
3432
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/style.css?v={{ site.code.version }}" />
35-
{%
36-
for feed in site.pages %}{% if feed.layout=='feed' %}
33+
{%- for feed in site.pages %}{% if feed.layout=='feed' %}
3734
<link rel="alternate" type="application/rss+xml" title="{{ feed.subtitle }}" href="{{ feed.url }}" />{% endif %}{%
38-
endfor %}
35+
endfor %}
36+
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ '/sitemap.xml' | prepend: site.baseurl | prepend: site.url }}" />
37+
<!-- 💬 -->
38+
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.author.name }} (osobní stránky/blog)</title>

_layouts/default.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
33
<head>
44
{%
55
include i/molecule_meta.html %}
6-
7-
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.author.name }} (osobní stránky/blog)</title>
86
</head>
97
<body class="C__with_sidebar display__f">
108
<a href="#main" class="C__skipLink" role="button" aria-label="Scroll to content">Scroll to content</a>
@@ -32,7 +30,7 @@ <h1 class="C__sidebarInfo_name C__text_highlited"><a href="{{ site.baseurl }}/">
3230

3331
<div class="container flex__4">
3432
<div id="main" role="main" aria-label="Hlavní obsah">
35-
{{ content }}
33+
{{ content }}
3634
</div>
3735

3836
<footer class="C__targetHighlite textA__c" role="contentinfo" aria-labelledby="foot-heading" id="foot-section">

_layouts/post.html

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
---
22
layout: default
33
---
4-
<article class="post maxW__article margin__0_auto">
5-
<h1 class="C__text_highlited">{{ page.title }}</h1>
6-
{% include i/molecule_articleInfo.html content=content date=page.date updated=page.updated tags=page.tags %}
7-
<div class="entry">{{ page.excerpt }}<hr/>{%
8-
include show_toc.html show_toc=page.show_toc html=content
9-
%}{{ content | remove_first:page.excerpt }}
10-
</div>
11-
</article>
12-
<hr>
13-
<aside class="display__f flexF__rW justifyC__sB">
14-
{% include i/molecule_navigationRelated.html %}
15-
{% include i/atom_navigationHistory.html %}
16-
{% include i/atom_share.html %}
17-
{% include i/atom_comments.html %}
18-
{% include i/atom_navigationSource.html %}
19-
</aside>
4+
<article class="post maxW__article margin__0_auto">
5+
<h1 class="C__text_highlited">{{ page.title }}</h1>
6+
{% include i/molecule_articleInfo.html content=content date=page.date updated=page.updated tags=page.tags %}
7+
<div class="entry">{{ page.excerpt }}<hr/>{%
8+
include show_toc.html show_toc=page.show_toc html=content
9+
%}
10+
<!-- »»» Vlastni clanek — Zacatek ««« -->
11+
{{ content | remove_first:page.excerpt }}
12+
<!-- »»» Vlastni clanek — Konec ««« -->
13+
</div>
14+
</article>
15+
<hr>
16+
<aside class="display__f flexF__rW justifyC__sB">
17+
{% include i/molecule_navigationRelated.html %}
18+
{% include i/atom_navigationHistory.html %}
19+
{% include i/atom_share.html %}
20+
{% include i/atom_comments.html %}
21+
{% include i/atom_navigationSource.html %}
22+
</aside>

_sass/_part_base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ kbd {
137137
padding: .1rem .25rem .05rem .25rem;
138138
}
139139

140+
code {
141+
white-space: pre;
142+
}
143+
140144
// Fixes images in popup boxes from Google Translate
141145
.gmnoprint img {
142146
max-width: none;

0 commit comments

Comments
 (0)