Deleted variable declaration
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
8184c94034
commit
28aec1dfdd
@ -3,17 +3,9 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{% for contact in site.data.contacts %}
|
{% for contact in site.data.contacts %}
|
||||||
<li>
|
<li>
|
||||||
{% assign description = contact.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
<a href="{{ contact.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}" target="_blank">{{ contact.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</a>
|
||||||
{% assign title = contact.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
|
||||||
{% assign url = contact.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape %}
|
|
||||||
|
|
||||||
<a href="{{ url }}" target="_blank">{{ title }}</a>
|
|
||||||
<span>—</span>
|
<span>—</span>
|
||||||
<span>{{ description }}</span>
|
<span>{{ contact.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% assign description = "" %}
|
|
||||||
{% assign title = "" %}
|
|
||||||
{% assign url = "" %}
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{% assign description = page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
|
||||||
{% assign title = page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<!-- Meta tags -->
|
<!-- Meta tags -->
|
||||||
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1, shrink-to-fit=no, width=device-width" />
|
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1, shrink-to-fit=no, width=device-width" />
|
||||||
@ -11,21 +8,20 @@
|
|||||||
|
|
||||||
<!-- Advanced meta tags -->
|
<!-- Advanced meta tags -->
|
||||||
{% for tag in site.data.meta_tags %}
|
{% for tag in site.data.meta_tags %}
|
||||||
<meta name="{{ tag.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}"
|
<meta name="{{ tag.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<!-- Open Graph -->
|
<!-- Open Graph -->
|
||||||
<meta property="og:title" content="{{ title }}" />
|
<meta property="og:title" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
<meta property="og:description" content="{{ description }}" />
|
<meta property="og:description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
<meta property="og:type" content="{{ page.layout | replace: 'post', 'article' | replace: 'page', 'website' | default: 'website' }}" />
|
<meta property="og:type" content="{{ page.layout | replace: 'post', 'article' | replace: 'page', 'website' | default: 'website' }}" />
|
||||||
<meta property="og:image" content="{{ page.image | absolute_url | uri_escape }}" />
|
<meta property="og:image" content="{{ page.image | absolute_url | uri_escape }}" />
|
||||||
<meta property="og:url" content="{{ page.url | absolute_url | uri_escape }}" />
|
<meta property="og:url" content="{{ page.url | absolute_url | uri_escape }}" />
|
||||||
|
|
||||||
<!-- Title / Description -->
|
<!-- Title / Description -->
|
||||||
<meta name="application-name" content="{{ title }}" />
|
<meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
<meta name="description" content="{{ description }}" />
|
<meta name="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
<title>{{ title }}</title>
|
<title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</title>
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url | uri_escape }}" />
|
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url | uri_escape }}" />
|
||||||
|
@ -3,17 +3,9 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{% for link in site.data.links %}
|
{% for link in site.data.links %}
|
||||||
<li>
|
<li>
|
||||||
{% assign description = link.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
<a href="{{ link.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}" target="_blank">{{ link.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</a>
|
||||||
{% assign title = link.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
|
||||||
{% assign url = link.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape %}
|
|
||||||
|
|
||||||
<a href="{{ url }}" target="_blank">{{ title }}</a>
|
|
||||||
<span>—</span>
|
<span>—</span>
|
||||||
<span>{{ description }}</span>
|
<span>{{ link.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% assign description = "" %}
|
|
||||||
{% assign title = "" %}
|
|
||||||
{% assign url = "" %}
|
|
||||||
|
@ -3,16 +3,8 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<li>
|
<li>
|
||||||
{% assign date = post.date | date: '%d-%m-%Y' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
<a href="{{ post.url | relative_url | uri_escape }}">{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</a>
|
||||||
{% assign title = post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
(<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%d-%m-%Y' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</time>)
|
||||||
{% assign url = post.url | relative_url | uri_escape %}
|
|
||||||
|
|
||||||
<a href="{{ url }}">{{ title }}</a>
|
|
||||||
(<time datetime="{{ post.date | date_to_xmlschema }}">{{ date }}</time>)
|
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% assign date = "" %}
|
|
||||||
{% assign title = "" %}
|
|
||||||
{% assign url = "" %}
|
|
||||||
|
@ -2,25 +2,19 @@
|
|||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
{% assign date = page.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
|
||||||
{% assign title = site.title | strip_newlines | strip_html| strip | normalize_whitespace | smartify | xml_escape %}
|
|
||||||
|
|
||||||
<article class="container">
|
<article class="container">
|
||||||
<small>
|
<small>
|
||||||
<span>Published</span>
|
<span>Published</span>
|
||||||
<time datetime="{{ page.date | date_to_xmlschema }}">{{ date }}</time>
|
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</time>
|
||||||
<span>on</span>
|
<span>on</span>
|
||||||
<a href="{{ site.url | absolute_url | uri_escape }}" target="_self">{{ title }}</a>
|
<a href="{{ site.url | absolute_url | uri_escape }}" target="_self">{{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</a>
|
||||||
<span>|</span>
|
<span>|</span>
|
||||||
<a href="{{ page.url | absolute_url | uri_escape }}" target="_blank">Permalink</a>
|
<a href="{{ page.url | absolute_url | uri_escape }}" target="_blank">Permalink</a>
|
||||||
</small>
|
</small>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{% assign date = "" %}
|
|
||||||
{% assign title = "" %}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user