mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 14:59:45 +03:00 
			
		
		
		
	Fixed a lot of minor bugs
This commit is contained in:
		@@ -3,9 +3,9 @@
 | 
			
		||||
<ul>
 | 
			
		||||
    {%- for contact in site.data.contacts -%}
 | 
			
		||||
    <li>
 | 
			
		||||
        <a href="{{- contact.url | relative_url | uri_escape -}}" target="_blank">{{- contact.title | strip | normalize_whitespace | xml_escape -}}</a>
 | 
			
		||||
        <span>—</span>
 | 
			
		||||
        <a href="{{- contact.url | relative_url | url_escape -}}" target="_blank">{{- contact.title | strip | normalize_whitespace | xml_escape -}}</a>
 | 
			
		||||
        <span>—</span>
 | 
			
		||||
        <span>{{- contact.description | strip | normalize_whitespace | xml_escape -}}</span>
 | 
			
		||||
    </li>
 | 
			
		||||
    {%- endfor -%}
 | 
			
		||||
</ul>
 | 
			
		||||
</ul>
 | 
			
		||||
@@ -10,16 +10,16 @@
 | 
			
		||||
    <title>{{- page.title | default: site.title | strip | normalize_whitespace | xml_escape -}}</title>
 | 
			
		||||
 | 
			
		||||
    <!-- CSS -->
 | 
			
		||||
    <link href="{{- '/assets/css/styles.css' | relative_url | uri_escape -}}" rel="stylesheet" />
 | 
			
		||||
    <link href="{{- '/assets/css/styles.css' | relative_url | url_escape -}}" rel="stylesheet" />
 | 
			
		||||
 | 
			
		||||
    <!-- RSS -->
 | 
			
		||||
    <link href="{{- site.rss | absolute_url | uri_escape -}}" rel="alternate" title="RSS" type="application/atom+xml" />
 | 
			
		||||
    <link href="{{- site.rss | absolute_url | url_escape -}}" rel="alternate" title="RSS" type="application/atom+xml" />
 | 
			
		||||
 | 
			
		||||
    <!-- Canonical URL -->
 | 
			
		||||
    <link href="{{- page.url | absolute_url | uri_escape -}}" rel="canonical" />
 | 
			
		||||
    <link href="{{- page.url | absolute_url | url_escape -}}" rel="canonical" />
 | 
			
		||||
 | 
			
		||||
    <!--[if lte IE 9]>
 | 
			
		||||
        <script type="text/javascript" src="{{- '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | uri_escape -}}"></script>
 | 
			
		||||
        <script type="text/javascript" src="{{- '/assets/javascript/respond-1.4.2.min.js' | relative_url | uri_escape -}}"></script>
 | 
			
		||||
        <script type="text/javascript" src="{{- '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | url_escape -}}"></script>
 | 
			
		||||
        <script type="text/javascript" src="{{- '/assets/javascript/respond-1.4.2.min.js' | relative_url | url_escape -}}"></script>
 | 
			
		||||
    <![endif]-->
 | 
			
		||||
</head>
 | 
			
		||||
@@ -3,9 +3,9 @@
 | 
			
		||||
<ul>
 | 
			
		||||
    {%- for link in site.data.links -%}
 | 
			
		||||
    <li>
 | 
			
		||||
        <a href="{{- link.url | relative_url | uri_escape -}}" target="_blank">{{- link.title | strip | normalize_whitespace | xml_escape -}}</a>
 | 
			
		||||
        <span>—</span>
 | 
			
		||||
        <a href="{{- link.url | relative_url | url_escape -}}" target="_blank">{{- link.title | strip | normalize_whitespace | xml_escape -}}</a>
 | 
			
		||||
        <span>—</span>
 | 
			
		||||
        <span>{{- link.description | strip | normalize_whitespace | xml_escape -}}</span>
 | 
			
		||||
    </li>
 | 
			
		||||
    {%- endfor -%}
 | 
			
		||||
</ul>
 | 
			
		||||
</ul>
 | 
			
		||||
@@ -1,10 +1,6 @@
 | 
			
		||||
<nav>
 | 
			
		||||
    {%- for link in site.data.navbar -%}
 | 
			
		||||
    <a href="{{- link.path | relative_url | uri_escape -}}">{{- link.title | strip | normalize_whitespace | xml_escape -}}</a>
 | 
			
		||||
    <a href="{{- link.path | relative_url | url_escape -}}">{{- link.title | strip | normalize_whitespace | xml_escape -}}</a>
 | 
			
		||||
    {%- endfor -%}
 | 
			
		||||
 | 
			
		||||
    <span>
 | 
			
		||||
        <span>|</span>
 | 
			
		||||
        <a href="{{- site.rss | absolute_url | uri_escape -}}">RSS</a>
 | 
			
		||||
    </span>
 | 
			
		||||
    <span><span>|</span><a href="{{- site.rss | absolute_url | url_escape -}}">RSS</a></span>
 | 
			
		||||
</nav>
 | 
			
		||||
@@ -3,8 +3,8 @@
 | 
			
		||||
<ul>
 | 
			
		||||
    {%- for post in site.posts -%}
 | 
			
		||||
    <li>
 | 
			
		||||
        <a href="{{- post.url | relative_url | uri_escape -}}">{{- post.title | strip | normalize_whitespace | xml_escape -}}</a>
 | 
			
		||||
        (<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: '%d-%m-%Y' | strip | normalize_whitespace | xml_escape -}}</time>)
 | 
			
		||||
        <a href="{{- post.url | relative_url | url_escape -}}">{{- post.title | strip | normalize_whitespace | xml_escape -}}</a>
 | 
			
		||||
        (<time datetime="{{- post.date | date_to_xmlschema | xml_escape -}}">{{- post.date | date: '%d-%m-%Y' | strip | normalize_whitespace | xml_escape -}}</time>)
 | 
			
		||||
    </li>
 | 
			
		||||
    {%- endfor -%}
 | 
			
		||||
</ul>
 | 
			
		||||
</ul>
 | 
			
		||||
@@ -3,5 +3,5 @@
 | 
			
		||||
{%- endcapture -%}
 | 
			
		||||
 | 
			
		||||
{%- unless words contains '-' -%}
 | 
			
		||||
{{- words | plus: 150 | divided_by: 150 | append: ' min read' -}}
 | 
			
		||||
{{- words | plus: 150 | divided_by: 150 | append: ' min read' | xml_escape -}}
 | 
			
		||||
{%- endunless -%}
 | 
			
		||||
		Reference in New Issue
	
	Block a user