Skip to content

Commit d9a2ad2

Browse files
authored
2020.11c (#128)
1 parent fd8f0bb commit d9a2ad2

File tree

15 files changed

+80
-54
lines changed

15 files changed

+80
-54
lines changed

_config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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.11b
7+
version: 2020.11c
88
name: Dapper Drake LTS
99
hosted: "https://github.com/"
1010
repository: "jaandrle/jaandrle.github.io"
@@ -33,8 +33,6 @@ welcome_text: Vítejte na osobních stránkách Jana Andrle.
3333
author:
3434
name: Jan Andrle
3535
36-
twitter: jaandrle
37-
twitter_id: 272926176
3836
avatar: https://avatars0.githubusercontent.com/u/8017233?s=460&v=4
3937

4038
# Posts
@@ -56,4 +54,4 @@ exclude:
5654
- Gemfile.lock
5755
- LICENSE
5856
- README.md
59-
- CNAME
57+
- CNAME

_data/social/account_mastodon.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: "Mastodon"
22
title: "My mastodon account"
33
account: "@jaandrle"
4-
href: "https://fosstodon.org/"
4+
instance: "@fosstodon.org"
5+
href: "https://fosstodon.org/"

_includes/i/atom_comments.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
{% assign user_twitter= site.author.twitter
1+
{% assign user_mastodon= site.data.social.account_mastodon
22
%}{% assign post_url= page.url | prepend: site.url | url_encode
33
%}{% 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
64
%}{{_S}}<div class="C__asideInfo">
75
{{_S}} {% include i/atom_asideHeadline.html headline="Komentáře" icon=":speech_balloon:" %}
8-
{{_S}} <a href="https://twitter.com/search?q=(%23{{id}})(%40{{user_twitter}})&src=typed_query" {% comment %}{% endcomment
9-
%}title="Tweety s tagem {{id}} (identifikující tento příspěvek) a se zmínkou @{{user_twitter}} (můj účet)"{% comment %}{% endcomment
10-
%}{{link_params}}>Reakce na Twitteru</a>
6+
{%- if page.toot %}
7+
{{_S}} <a href="{{user_mastodon.href}}{{user_mastodon.account}}/{{page.toot}}" {% comment %}{% endcomment
8+
%}title="Diskutovat lze na Mastodonu"{% comment %}{% endcomment
9+
%}{{link_params}}>viz Mastodon</a>
1110
{{_S}} <br>
12-
{{_S}} <a href="https://twitter.com/intent/tweet?hashtags={{id}}&url={{post_url}}&screen_name={{user_twitter}}" {% comment %}{% endcomment
13-
%}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 postřeh</a>
15-
{{_S}}</div>
11+
{%- endif %}
12+
{{_S}} <a href="https://discu.eu/?q={{post_url}}&submit_title={{page.title}}" {% comment %}{% endcomment
13+
%}title="Diskuze nalezené pomocí discu.eu"{% comment %}{% endcomment
14+
%}{{link_params}}>discu.eu</a>
15+
{{_S}}</div>

_includes/i/atom_share.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
{% assign user_twitter= site.author.twitter
2+
%}{% assign _um= site.data.social.account_mastodon
3+
%}{% capture user_mastodon %}{{_um.account}}{{_um.instance}}{% endcapture
24
%}{% assign post_url= page.url | prepend: site.url | url_encode
35
%}{% assign post_title= page.title | url_encode
46
%}{% assign link_params= 'target="_blank" rel="nofolow" '
57
%}{{_S}}<div class="C__asideInfo">
68
{{_S}} {% include i/atom_asideHeadline.html headline="Sdílet" icon=":link:" %}
9+
{{_S}} <a onclick="mastodonShare(event)" href="" data-href="/share?text={{post_title}}%0A[{{user_mastodon}}]&url={{post_url}}" {% comment %}{% endcomment
10+
%}{{link_params}}title="Sdílet na Mastodonu">Mastodon</a>
11+
{{_S}} <br>
712
{{_S}} <a href="https://twitter.com/intent/tweet?text={{post_title}}&url={{post_url}}&via={{user_twitter}}&related={{user_twitter}}" {% comment %}{% endcomment
813
%}{{link_params}}title="Sdílet na Twitteru">Twitter</a>
914
{{_S}} <br>
1015
{{_S}} <a href="https://facebook.com/sharer.php?u={{post_url}}" {% comment %}{% endcomment
1116
%}{{link_params}}title="Sdílet na Facebooku">Facebook</a>
12-
{{_S}}</div>
17+
{{_S}}</div>

_includes/i/molecule_meta.html

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,30 @@
1111
{%- if page.noindex %}
1212
{{_S}}<meta name="robots" content="noindex">{%
1313
endif %}
14+
{{_S}}<!-- 💬 -->
15+
{{_S}}<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.author.name }} (osobní stránky/blog)</title>
16+
{{_S}}<!-- 🏃 -->
17+
{{_S}}{% include i/atom_criticalCSS.html %}
18+
{{_S}}<!--[if lt IE 9]>
19+
{{_S}} <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
20+
{{_S}}<![endif]-->
21+
{{_S}}<link rel="preload" as="font" href="/files/internal/fonts/iAWriterDuospace-Regular.woff2" type="font/woff2" crossorigin="anonymous">
22+
{{_S}}<link rel="preload" as="font" href="/files/internal/fonts/iAWriterDuospace-Italic.woff2" type="font/woff2" crossorigin="anonymous">
23+
{{_S}}<link rel="preload" as="font" href="/files/internal/fonts/iAWriterDuospace-Bold.woff2" type="font/woff2" crossorigin="anonymous">
24+
{{_S}}<link rel="preload" as="font" href="/files/internal/fonts/iAWriterDuospace-BoldItalic.woff2" type="font/woff2" crossorigin="anonymous">
25+
{{_S}}<link rel="stylesheet" type="text/css" media="all" href="{{ '/files/internal/fonts/fonts.css' | relative_url | append: files_version }}" />
26+
{{_S}}<link rel="stylesheet" type="text/css" media="all" href="{{ '/main.css' | relative_url | append: files_version }}" />
27+
{{_S}}<link rel="stylesheet" type="text/css" media="print" href="{{ '/print.css' | relative_url | append: files_version }}" />
28+
{%- for feed in site.pages %}{% if feed.layout=='feed' %}
29+
{{_S}}<link rel="alternate" type="application/rss+xml" title="{{ feed.subtitle }}" href="{{ feed.url }}" />{% endif %}{%
30+
endfor %}
31+
{{_S}}<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ full_baseurl }}{{ '/sitemap.xml' }}" />
32+
{{_S}}<link rel="webmention" href="https://webmention.io/jaandrle.github.io/webmention" />
33+
{{_S}}<link rel="pingback" href="https://webmention.io/jaandrle.github.io/xmlrpc" />
34+
{{_S}}<script src="/main.js" type="module"></script>
1435
{{_S}}<!-- © (Jekyll & GitHub Pages) -->
1536
{{_S}}<meta name="author" content="{{ site.author.name }}" />
37+
{{_S}}<link type="text/plain" rel="author" href="{{ full_baseurl }}{{ '/humans.txt' }}" />
1638
{{_S}}<meta name="generator" content="Jekyll" />
1739
{{_S}}<!-- ℹ 🔗 📜 -->
1840
{{_S}}<meta name="description" content="{{ description }}" />
@@ -25,9 +47,6 @@
2547
{{_S}}<meta name="twitter:card" content="summary">
2648
{{_S}}<meta name="twitter:site" content="@{{ site.author.twitter }}">
2749
{{_S}}<meta name="twitter:creator" content="@{{ site.author.twitter }}">
28-
{{_S}}<!--[if lt IE 9]>
29-
{{_S}} <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
30-
{{_S}}<![endif]-->
3150
{{_S}}<!-- 🎨 🔗 -->
3251
{{_S}}<link rel="apple-touch-icon" sizes="180x180" href="{{ assets }}apple-touch-icon.png">
3352
{{_S}}<link rel="icon" type="image/png" sizes="32x32" href="{{ assets }}favicon-32x32.png">
@@ -37,19 +56,3 @@
3756
{{_S}}<meta name="msapplication-config" content="{{ assets }}browserconfig.xml">
3857
{{_S}}<meta name="msapplication-TileColor" content="#A03232">
3958
{{_S}}<meta name="theme-color" content="#A03232">
40-
{{_S}}{% include i/atom_criticalCSS.html %}
41-
{{_S}}<link rel="preload" as="font" href="/files/internal/fonts/iAWriterDuospace-Regular.woff2" type="font/woff2" crossorigin="anonymous">
42-
{{_S}}<link rel="preload" as="font" href="/files/internal/fonts/iAWriterDuospace-Italic.woff2" type="font/woff2" crossorigin="anonymous">
43-
{{_S}}<link rel="preload" as="font" href="/files/internal/fonts/iAWriterDuospace-Bold.woff2" type="font/woff2" crossorigin="anonymous">
44-
{{_S}}<link rel="preload" as="font" href="/files/internal/fonts/iAWriterDuospace-BoldItalic.woff2" type="font/woff2" crossorigin="anonymous">
45-
{{_S}}<link rel="stylesheet" type="text/css" media="all" href="{{ '/files/internal/fonts/fonts.css' | relative_url | append: files_version }}" />
46-
{{_S}}<link rel="stylesheet" type="text/css" media="all" href="{{ '/main.css' | relative_url | append: files_version }}" />
47-
{{_S}}<link rel="stylesheet" type="text/css" media="print" href="{{ '/print.css' | relative_url | append: files_version }}" />
48-
{%- for feed in site.pages %}{% if feed.layout=='feed' %}
49-
{{_S}}<link rel="alternate" type="application/rss+xml" title="{{ feed.subtitle }}" href="{{ feed.url }}" />{% endif %}{%
50-
endfor %}
51-
{{_S}}<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ full_baseurl }}{{ '/sitemap.xml' }}" />
52-
{{_S}}<link rel="webmention" href="https://webmention.io/jaandrle.github.io/webmention" />
53-
{{_S}}<link rel="pingback" href="https://webmention.io/jaandrle.github.io/xmlrpc" />
54-
{{_S}}<!-- 💬 -->
55-
{{_S}}<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.author.name }} (osobní stránky/blog)</title>

_includes/i/molecule_postList.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%}{% break
1010
%}{% endif
1111
%}
12-
<article class="post">
12+
<article class="post" role="article">
1313
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
1414
{% include i/molecule_articleInfo.html content=post.content date=post.date tags=post.tags %}
1515
<div class="entry">
@@ -32,4 +32,4 @@ <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
3232
%}{{ separator }}<a href="{{ page.url }}" title="{{ page.description | strip_html }}">{{ page.title }}</a>
3333
{%- endfor
3434
%}{% endcapture
35-
%}<p class="C__textHighlited">Další příspěvky jsou v {{ categories_pages | strip | replace: separator, " nebo " }}.</p>
35+
%}<p class="C__textHighlited">Další příspěvky jsou v {{ categories_pages | strip | replace: separator, " nebo " }}.</p>

_layouts/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!DOCTYPE html>
2-
<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
2+
<html class="nojs" lang="{{ page.lang | default: site.lang | default: 'en' }}">
33
<head>{% assign _S= " " %}{%
44
include i/molecule_meta.html %}
55
</head>
66
<body class="C__contentFirst display__f">
77
<a href="#main" class="C__skipLink" role="button" aria-label="Scroll to main content begining">Scroll to content</a>
88
<header class="C__header display__f minW__bar flex__1 textA__c margin__0_auto padding__1 m_padding__0 clearfix">
99
<a href="{{ site.baseurl }}/" class="C__sidebarAvatar float__l margin__0_auto"><img alt="User avatar photo" src="{{ site.avatar }}"/></a>
10-
<nav class="C__sidebarNav display__f float__l" aria-labelledby="nav-heading">
10+
<nav class="C__sidebarNav display__f float__l" aria-labelledby="nav-heading" role="navigation">
1111
<h2 id="nav-heading" class="C__visuallyHide">Hlavní navigace</h2> {%
1212
assign pages= site.pages | sort: "in_menu"
1313
%}{% for page_i in pages %}{% if page_i.in_menu %}
@@ -29,7 +29,7 @@ <h2 id="nav-heading" class="C__visuallyHide">Hlavní navigace</h2> {%
2929
</header>
3030

3131
<div class="container flex__4">
32-
<main id="main" aria-label="Hlavní obsah">
32+
<main id="main" aria-label="Hlavní obsah" role="main">
3333
{{ content }}
3434
</main>
3535

_layouts/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
layout: default
33
---
44
{% assign _S= " " %}{{
5-
_S}}<article class="page maxW__article margin__0_auto">
5+
_S}}<article class="page maxW__article margin__0_auto" role="article">
66
{{_S}} <h1 class="C__textHighlited">{{ page.title }}</h1>
77
{{_S}} {% include show_toc.html show_toc=page.show_toc html=content %}
88
{{_S}} <div class="entry">
99
<!-- 🏁 📝 (raw spacing!) -->
1010
{{ content }}
1111
<!-- 🔚 📝 (raw spacing!) -->
1212
{{_S}} </div>
13-
{{_S}}</article>
13+
{{_S}}</article>

_layouts/post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
---
44
{% assign _S= " " %}{{
5-
_S}}<article class="post maxW__article margin__0_auto">
5+
_S}}<article class="post maxW__article margin__0_auto" role="article">
66
{{_S}} <h1 class="C__textHighlited">{{ page.title }}</h1>
77
{{_S}} {% include i/molecule_articleInfo.html content=content date=page.date updated=page.updated tags=page.tags %}
88
{{_S}} <div class="entry">
@@ -20,4 +20,4 @@
2020
{% include i/atom_share.html %}
2121
{% include i/atom_comments.html %}
2222
{% include i/atom_navigationSource.html %}
23-
{{_S}}</aside>
23+
{{_S}}</aside>

_posts/2022/2022-08-12-hpamr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
issue: 125
33
title: "Eliezer Yudkowsky: Harry Potter a metody racionality"
4+
category: nondev
45
tags: [eknihy, ke čtení, tipy]
56
show_toc: 3
67
---

0 commit comments

Comments
 (0)