Skip to content

Commit

Permalink
fixes #79
Browse files Browse the repository at this point in the history
  • Loading branch information
jaandrle committed Oct 22, 2020
1 parent 8861b07 commit 664d965
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 569 deletions.
7 changes: 4 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
# - code version (name) / repository
# - name convention based on https://en.wikipedia.org/wiki/Ubuntu_version_history#Release_history
code:
version: 2020.10a
version: 2020.10b
name: Breezy Badger
hosted: "https://github.com/"
repository: "jaandrle/jaandrle.github.io"
branch: "master"

# Main site settings
# - language, (base)url
# - (base)url
# - language (see https://www.w3schools.com/tags/ref_language_codes.asp)
url: https://jaandrle.github.io
baseurl: ""
locale: cs
lang: cs
sass:
style: :compressed # You might prefer to minify using :compressed || :expanded
defaults:
Expand Down
512 changes: 0 additions & 512 deletions _data/running_vars/ui-text.yml

This file was deleted.

4 changes: 2 additions & 2 deletions _includes/i/atom_months.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- assign m = include.date | date: "%-m" -%}
{{ include.date | date: "%-d" }}.
{% case m -%}
{{ include.date | date: "%-d" }}. {%
case m -%}
{%- when '1' -%}ledna
{%- when '2' -%}února
{%- when '3' -%}března
Expand Down
4 changes: 2 additions & 2 deletions _includes/i/atom_readingTime.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% assign words = include.content | number_of_words %}{%
if words < 275 %}
do minuty{%
else %}{% assign time= words | divided_by: 135 %}
cca {{ time }} minut{% if time < 5 %}y{% endif %}{%
else %}{% assign time= words | divided_by: 135
%} cca {{ time }} minut{% if time < 5 %}y{% endif %}{%
endif %}
5 changes: 1 addition & 4 deletions _includes/i/atom_tags.html
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
{% for tag in include.tags %}
{% if forloop.index0!=0 %}, {% endif %}
<a href="/blog/tags.html#tag_anchor_{{ tag | downcase | replace:' ','-' }}">{{tag}}</a>
{% endfor %}
{% for tag in include.tags %}{% if forloop.index0!=0 %}, {% endif %}<a href="/blog/tags.html#tag_anchor_{{ tag | downcase | replace:' ','-' }}">{{tag}}</a>{% endfor %}
4 changes: 2 additions & 2 deletions _includes/i/molecule_articleInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
pouziti: "include i/molecule_articleInfo.html content={String} date={Date} tags={String[]} [updated={Date}]"
{% endcomment
%}<div class="info">{%
include icon.html icon="icon-clock" %} {% include i/atom_readingTime.html content=include.content %} |
<b>Publikováno:</b> {% include i/atom_months.html date=include.date %}{%
include icon.html icon="icon-clock" %} {% include i/atom_readingTime.html content=include.content %} | {% comment %}{% endcomment
%}<b>Publikováno:</b> {% include i/atom_months.html date=include.date %}{%
if include.updated %} | <b>Aktualizováno:</b> {% include i/atom_months.html date=include.updated %}{% endif %}{%
if include.tags[0] %} | <b>Štítky:</b> {% include i/atom_tags.html tags=include.tags %}{% endif
%}</div>
48 changes: 24 additions & 24 deletions _includes/i/molecule_meta.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{% comment %}{% endcomment -%}
{% assign description= page.excerpt | default: site.description | strip_html | strip_newlines -%}
{% assign full_baseurl= site.baseurl | prepend: site.url -%}
<!-- ❕ -->
<meta charset="utf-8" />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>{%
if page.path == "blog/tags.html" %}
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
{%- if page.noindex %}
<meta name="robots" content="noindex">{%
endif %}

endif %}
<!-- © (Jekyll & GitHub Pages) -->
<meta name="author" content="{{ site.author.name }}" />
<meta name="generator" content="Jekyll" /> <!-- Created with Jekyll & GitHub Pages -->
{%
if page.excerpt %}
<meta name="description" content="{{ page.excerpt | strip_html | strip_newlines }}" />
<meta property="og:description" content="{{ page.excerpt| strip_html | strip_newlines }}" />
{%- else %}
<meta name="description" content="{{ site.description }}">
<meta property="og:description" content="{{ site.description }}" />
{%- endif -%}
{%
if page.title %}
<meta name="generator" content="Jekyll" />
<!-- ℹ 🔗 📜 -->
<link rel="canonical" href="{{ full_baseurl }}{{ page.url | replace:'index.html','' }}" />
<meta property="og:url" content="{{ full_baseurl }}{{ page.url }}">
<meta name="description" content="{{ description }}" />
<meta property="og:description" content="{{ description }}" />
<meta property="twitter:description" content="{{ description }}" />
{% if page.title -%}
<meta property="og:title" content="{{ page.title }}" />
<meta property="twitter:title" content="{{ page.title }}" />
{%- endif %}

<link rel="shortcut icon" href="/files/internal/favicon.ico">

<meta name="twitter:site" content="@{{ site.author.twitter }}">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<link rel="canonical" href="{{ site.baseurl }}{{ page.url | replace:'index.html','' }}" />

<!-- 🎨 🔗 -->
<link rel="shortcut icon" href="/files/internal/favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Vollkorn:ital,wght@0,500;0,700;1,500;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/style.css?v={{ site.code.version }}" />
{%
for feed in site.pages %}{% if feed.layout=='feed' %}
{%- for feed in site.pages %}{% if feed.layout=='feed' %}
<link rel="alternate" type="application/rss+xml" title="{{ feed.subtitle }}" href="{{ feed.url }}" />{% endif %}{%
endfor %}
endfor %}
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ '/sitemap.xml' | prepend: site.baseurl | prepend: site.url }}" />
<!-- 💬 -->
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.author.name }} (osobní stránky/blog)</title>
6 changes: 2 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<!DOCTYPE html>
<html>
<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
<head>
{%
include i/molecule_meta.html %}

<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.author.name }} (osobní stránky/blog)</title>
</head>
<body class="C__with_sidebar display__f">
<a href="#main" class="C__skipLink" role="button" aria-label="Scroll to content">Scroll to content</a>
Expand Down Expand Up @@ -32,7 +30,7 @@ <h1 class="C__sidebarInfo_name C__text_highlited"><a href="{{ site.baseurl }}/">

<div class="container flex__4">
<div id="main" role="main" aria-label="Hlavní obsah">
{{ content }}
{{ content }}
</div>

<footer class="C__targetHighlite textA__c" role="contentinfo" aria-labelledby="foot-heading" id="foot-section">
Expand Down
35 changes: 19 additions & 16 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
---
layout: default
---
<article class="post maxW__article margin__0_auto">
<h1 class="C__text_highlited">{{ page.title }}</h1>
{% include i/molecule_articleInfo.html content=content date=page.date updated=page.updated tags=page.tags %}
<div class="entry">{{ page.excerpt }}<hr/>{%
include show_toc.html show_toc=page.show_toc html=content
%}{{ content | remove_first:page.excerpt }}
</div>
</article>
<hr>
<aside class="display__f flexF__rW justifyC__sB">
{% include i/molecule_navigationRelated.html %}
{% include i/atom_navigationHistory.html %}
{% include i/atom_share.html %}
{% include i/atom_comments.html %}
{% include i/atom_navigationSource.html %}
</aside>
<article class="post maxW__article margin__0_auto">
<h1 class="C__text_highlited">{{ page.title }}</h1>
{% include i/molecule_articleInfo.html content=content date=page.date updated=page.updated tags=page.tags %}
<div class="entry">{{ page.excerpt }}<hr/>{%
include show_toc.html show_toc=page.show_toc html=content
%}
<!-- »»» Vlastni clanek — Zacatek ««« -->
{{ content | remove_first:page.excerpt }}
<!-- »»» Vlastni clanek — Konec ««« -->
</div>
</article>
<hr>
<aside class="display__f flexF__rW justifyC__sB">
{% include i/molecule_navigationRelated.html %}
{% include i/atom_navigationHistory.html %}
{% include i/atom_share.html %}
{% include i/atom_comments.html %}
{% include i/atom_navigationSource.html %}
</aside>
4 changes: 4 additions & 0 deletions _sass/_part_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ kbd {
padding: .1rem .25rem .05rem .25rem;
}

code {
white-space: pre;
}

// Fixes images in popup boxes from Google Translate
.gmnoprint img {
max-width: none;
Expand Down

0 comments on commit 664d965

Please sign in to comment.