Skip to content

Commit cf0a653

Browse files
authored
Dev 2020.11a (#87)
1 parent 8d4b034 commit cf0a653

File tree

69 files changed

+917
-595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+917
-595
lines changed

404.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: page
3+
title: 404 – Stránka nenalezena
4+
permalink: /404.html
5+
noindex: true
6+
scripts:
7+
- /files/internal/404.js
8+
---
9+
10+
<p class="textA__c">Je mi líto, ale požadovanou stránku jsem nenalezl.</p>
11+
<img class="maxW__50 margin__1_auto" src="{{ site.baseurl }}/files/internal/404.jpg" alt="Constructocat by https://github.com/jasoncostello"/>
12+
<p>Ujistěte se, že jste neudělali chybu v URL adrese. Je možné, že byla stránka přemístěna nebo odstraněna.</p>
13+
<p>Také můžete zkusit <a href="{{ site.baseurl }}" title="Přejít na úvodní stránku">přejít na domovskou stránku</a>, nebo vyhledávání:</p>
14+
{% include i/atom_formSearch.html %}

404.md

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

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,24 @@ My partials/data for simplify creating posts.
3535

3636
#### Include
3737
In general `{% include file ...options %}` with standarized options
38+
- `code`, `img` and similar tags supproted by Markdown (the idea is to extend these, but still at least particually be able see that in `.md`). So, example: `{% include image.html img='![alt](src)'`.
3839
- `href`, `src` for links/images/…
3940
- `title`, `alt` for links/images/…
4041
- `caption` for description (eg. `<figcaption>`)
4142
- `file`s
4243
- [`{% include code.html …`](./_includes/code.html)
43-
- [`{% include icon.html …`](./_includes/icon.html)
4444
- [`{% include image.html …`](./_includes/image.html)
45+
- [`{% include textBox.html …`](./_includes/textBox.html)
4546
- [`{% include reference.html …`](./_includes/reference.html)
4647
- [`{% include references_list.html …`](./_includes/references_list.html)
4748
- [`{% include kbd.html …`](./_includes/kbd.html)
49+
- [`{% include blockquote.html …`](./_includes/blockquote.html)
50+
- [`{% include q.html …`](./_includes/q.html)
51+
- [`{% include icon.html …`](./_includes/icon.html)
4852
- ([`{% include show_toc.html …`](./_includes/show_toc.html))
53+
- **Important note:** It isn't supported to neste `include` components
54+
- Instead of: `{% include textBox.html text="{% include kbd.html keys='Ctrl A' %}" %}`
55+
- Use workaround: `{% capture tmp_kbd %}{% include kbd.html keys='Ctrl A' %}{% endcapture %}{% include textBox.html text=tmp_kbd %}`
4956

5057
#### Data/Snippets
5158
- [`{{ site.data.abbr.* }}`](./_data/abbr.yml) for using abbreviation

_config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
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.10b
8-
name: Breezy Badger
7+
version: 2020.11a
8+
name: Dapper Drake LTS
99
hosted: "https://github.com/"
1010
repository: "jaandrle/jaandrle.github.io"
1111
branch: "master"
@@ -34,6 +34,7 @@ author:
3434
name: Jan Andrle
3535
3636
twitter: jaandrle
37+
twitter_id: 272926176
3738
avatar: https://avatars0.githubusercontent.com/u/8017233?s=460&v=4
3839

3940
# Posts
@@ -49,6 +50,7 @@ kramdown:
4950
# Plugins & Exclude from production (_site)
5051
plugins:
5152
- jekyll-redirect-from
53+
- jemoji
5254
exclude:
5355
- Gemfile
5456
- Gemfile.lock

_data/social/rss.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: "RSS (nondev)"
2-
title: "My atom/rss feed Regular posts"
2+
title: "My atom/rss feed Regular posts"
33
account: "nondev.xml"
44
href: "/feeds/"

_data/social/rss_dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: "RSS (dev)"
2-
title: "My atom/rss feed Dev posts"
2+
title: "My atom/rss feed Dev posts"
33
account: "dev.xml"
44
href: "/feeds/"

_includes/blockquote.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% comment %}
2+
Pouziti: `include blockquote.html blockquote={markdown} caption={markdown}`
3+
- `blockquote`: Markdown zápis pomocí `> …`
4+
- `caption`: popisek (jeden paragraf!), případně obsahující `<cite>` (doporučeno vč. linku viz *)
5+
*!:
6+
`<cite>` ve tvaru: `<cite>[kniha/…](link)</cite> od autora`
7+
{% endcomment
8+
%}{% assign new_line= "
9+
"
10+
%}{% assign caption= include.caption | markdownify | replace: "<p>", "<p>— " | prepend: "<figcaption>" | append: "</figcaption>"
11+
%}{% assign blockquote= include.blockquote | markdownify
12+
%}<figure class="C__figureText">{{ blockquote }}{{ caption }}{{ new_line }}</figure>

_includes/code.html

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,34 @@
44
- `code`: GitHub code started and ended with new line
55
- `caption`: popisek (jeden paragraf)
66
{% endcomment
7-
%}{% assign pre_code= include.code | split: "
8-
" %}{% assign lines= pre_code | size %}{% capture code %}{% for line in pre_code %}{% if forloop.index > 2 and forloop.index < lines %}{{line}}
9-
{% endif %}{% endfor %}{% endcapture %}{%
10-
capture post_code %}{%
11-
assign type= pre_code[1] | replace: "```", "" | replace: "JavaScript", "js" | replace: "JS", "js" | replace: "bash", "console" %}{%
12-
if type == "js" %}{%
13-
highlight js linenos %}{{code}}{% endhighlight %}{%
14-
else if type == "JSON" %}{%
15-
highlight json linenos %}{{code}}{% endhighlight %}{%
16-
else if type == "CSS" %}{%
17-
highlight css linenos %}{{code}}{% endhighlight %}{%
18-
else if type == "HTML" %}{%
19-
highlight html linenos %}{{code}}{% endhighlight %}{%
20-
else if type == "PHP" %}{%
21-
highlight php linenos %}{{code}}{% endhighlight %}{%
22-
else if type == "console" %}{%
23-
highlight console %}{{code}}{% endhighlight %}{%
24-
else %}{%
25-
highlight text %}{{code}}{% endhighlight %}{%
26-
endif %}{%
27-
endcapture %}{%
28-
assign caption= "" %}{% if include.caption %}{% capture caption %}
29-
<figcaption class="info">{{ include.caption | markdownify }}</figcaption>{%
30-
endcapture %}{% endif %}
7+
%}{% assign new_line= "
8+
"
9+
%}{% assign pre_code= include.code | split: new_line
10+
%}{% assign lines= pre_code | size
11+
%}{% comment %}V nasledujicim cyklus preskoci "```" casti{% endcomment
12+
%}{% capture code %}{% for line in pre_code %}{% if forloop.index > 2 and forloop.index < lines %}{{ line | append: new_line }}{% endif %}{% endfor %}{% endcapture
13+
%}{% capture post_code
14+
%}{% assign type= pre_code[1] | replace: "```", "" | replace: "JavaScript", "JS" | replace: "js", "JS" | replace: "bash", "console"
15+
%}{% if type == "JS"
16+
%}{% highlight js linenos %}{{code}}{% endhighlight
17+
%}{% elsif type == "PHP"
18+
%}{% highlight php linenos %}{{code}}{% endhighlight
19+
%}{% elsif type == "JSON"
20+
%}{% highlight json linenos %}{{code}}{% endhighlight
21+
%}{% elsif type == "CSS"
22+
%}{% highlight css linenos %}{{code}}{% endhighlight
23+
%}{% elsif type == "HTML"
24+
%}{% highlight html linenos %}{{code}}{% endhighlight
25+
%}{% elsif type == "console"
26+
%}{% highlight console %}{{code}}{% endhighlight
27+
%}{% else
28+
%}{% highlight text %}{{code}}{% endhighlight
29+
%}{% endif
30+
%}{% endcapture
31+
%}{% assign caption= ""
32+
%}{% if include.caption
33+
%}{% capture caption %}<figcaption class="info">{{ include.caption | markdownify }}</figcaption>{% endcapture
34+
%}{% assign caption= caption | prepend: new_line
35+
%}{% endif
36+
%}
3137
{{ post_code | replace: "</figure>", caption | append: "</figure>" }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h2 class="margin__0"><span class="C__visuallyHide">{{include.headline}} </span>{{include.icon}}</h2>

_includes/i/atom_comments.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
{% assign user_twitter= site.author.twitter %}{%
2-
assign post_url= page.url | prepend: site.url | url_encode %}{%
3-
assign link_params= ' target="_blank" rel="nofolow"' %}{%
4-
assign id_post= page.date | date: "%-Y%-m%-d%-H%-M%-S" -%}{%
5-
assign id= "jablog_" | append: id_post -%}
6-
<div class="info">
7-
<h5>Komentáře:</h5>
1+
{% assign user_twitter= site.author.twitter
2+
%}{% assign post_url= page.url | prepend: site.url | url_encode
3+
%}{% assign link_params= ' target="_blank" rel="nofolow"'
4+
%}{% assign id_post= page.date | date: "%-Y%-m%-d%-H%-M%-S"
5+
%}{% assign id= "jablog_" | append: id_post -%}
6+
<div class="C__asideInfo">
7+
{% include i/atom_asideHeadline.html headline="Komentáře" icon=":speech_balloon:" %}
88
<a href="https://twitter.com/search?q=(%23{{id}})(%40{{user_twitter}})&src=typed_query" {% comment %}{% endcomment
99
%}title="Tweety s tagem {{id}} (identifikující tento příspěvek) a se zmínkou @{{user_twitter}} (můj účet)"{% comment %}{% endcomment
1010
%}{{link_params}}>Reakce na Twitteru</a>
1111
<br>
1212
<a href="https://twitter.com/intent/tweet?hashtags={{id}}&url={{post_url}}&screen_name={{user_twitter}}" {% comment %}{% endcomment
1313
%}title="Vytvořit tweet s tagem {{id}} (identifikující tento příspěvek) a se zmínkou @{{user_twitter}} (můj účet)"{% comment %}{% endcomment
14-
%}{{link_params}}>Twítnout vlastní</a>
14+
%}{{link_params}}>Twítnout postřeh</a>
1515
</div>

0 commit comments

Comments
 (0)