diff options
author | Valentin Popov <valentin@popov.link> | 2024-02-14 02:38:59 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-02-14 02:38:59 +0300 |
commit | e68f7cf6c7fadb1bceea955a4caf40954d9b024e (patch) | |
tree | 5fe6a1ac66ed98571674ab6686e1742a46812eb8 /_includes | |
parent | edaeaf08b8750e8278b18484ff8e0aa180fe3fab (diff) | |
download | popov.link-e68f7cf6c7fadb1bceea955a4caf40954d9b024e.tar.xz popov.link-e68f7cf6c7fadb1bceea955a4caf40954d9b024e.zip |
Moved actual template site
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/comments.html | 0 | ||||
-rw-r--r-- | _includes/counter.html | 0 | ||||
-rw-r--r-- | _includes/disqus.html | 16 | ||||
-rw-r--r-- | _includes/head.html | 42 | ||||
-rw-r--r-- | _includes/navbar.html | 10 | ||||
-rw-r--r-- | _includes/reading-time.html | 7 |
6 files changed, 30 insertions, 45 deletions
diff --git a/_includes/comments.html b/_includes/comments.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/_includes/comments.html diff --git a/_includes/counter.html b/_includes/counter.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/_includes/counter.html diff --git a/_includes/disqus.html b/_includes/disqus.html deleted file mode 100644 index 4ebcc7e..0000000 --- a/_includes/disqus.html +++ /dev/null @@ -1,16 +0,0 @@ -<div id="disqus_thread"></div> -<script type="text/javascript"> - var disqus_config = function () { - this.page.identifier = '{{ page.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}'; - this.page.title = '{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}'; - this.page.url = '{{ page.url | absolute_url | uri_escape }}'; - }; - - (function () { - var d = document, - s = d.createElement('script'); - s.src = '//valentineus-link.disqus.com/embed.js'; - s.setAttribute('data-timestamp', +new Date()); - (d.head || d.body).appendChild(s); - })(); -</script> diff --git a/_includes/head.html b/_includes/head.html index a97bd87..936368f 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,41 +1,25 @@ <head> <!-- Meta tags --> - <meta name="viewport" content="initial-scale=1.0, maximum-scale=1, shrink-to-fit=no, width=device-width" /> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <link rel="canonical" href="{{ page.url | absolute_url | uri_escape }}" /> - <link rel="profile" href="http://gmpg.org/xfn/11" /> - - <!-- Advanced meta tags --> - {% for tag in site.data.meta %} - <meta name="{{ tag.name | strip | normalize_whitespace | xml_escape }}" content="{{ tag.content | strip | normalize_whitespace | xml_escape }}" /> - {% endfor %} - - <!-- Open Graph --> - <meta property="og:title" content="{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}" /> - <meta property="og:description" content="{{ page.description | default: site.description | strip | normalize_whitespace | xml_escape }}" /> - <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:url" content="{{ page.url | absolute_url | uri_escape }}" /> + <meta content="IE=edge" http-equiv="X-UA-Compatible" /> + <meta content="text/html; charset=utf-8" http-equiv="content-type" /> + <meta content="width=device-width, initial-scale=1" name="viewport" /> + <meta content="index, follow" name="robots" /> <!-- Title / Description --> - <meta name="application-name" content="{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}" /> - <meta name="description" content="{{ page.description | default: site.description | strip | normalize_whitespace | xml_escape }}" /> + <meta content="{{ page.description | default: site.description | strip | normalize_whitespace | xml_escape }}" name="description" /> <title>{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}</title> <!-- CSS --> - <link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url | uri_escape }}" /> - - <!-- Favicon --> - <link rel="apple-touch-icon" sizes="180x180" href="{{ '/assets/apple-touch-icon.png' | relative_url | uri_escape }}" /> - <link rel="icon" type="image/png" sizes="16x16" href="{{ '/assets/favicon-16x16.png' | relative_url | uri_escape }}" /> - <link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon-32x32.png' | relative_url | uri_escape }}" /> + <link href="{{ '/assets/css/styles.css' | relative_url | uri_escape }}" rel="stylesheet" /> <!-- RSS --> - <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ site.rss | absolute_url | uri_escape }}" /> + <link href="{{ site.rss | absolute_url | uri_escape }}" rel="alternate" title="RSS" type="application/atom+xml" /> + + <!-- Canonical URL --> + <link href="{{ page.url | absolute_url | uri_escape }}" rel="canonical" /> <!--[if lte IE 9]> - <script defer type="text/javascript" src="{{ '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | uri_escape }}"></script> - <script defer 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 | uri_escape }}"></script> + <script type="text/javascript" src="{{ '/assets/javascript/respond-1.4.2.min.js' | relative_url | uri_escape }}"></script> <![endif]--> -</head> +</head>
\ No newline at end of file diff --git a/_includes/navbar.html b/_includes/navbar.html new file mode 100644 index 0000000..431b268 --- /dev/null +++ b/_includes/navbar.html @@ -0,0 +1,10 @@ +<nav> + {% for link in site.data.navbar %} + <a href="{{ link.path | relative_url | uri_escape }}">{{ link.title | strip | normalize_whitespace | xml_escape }}</a> + {% endfor %} + + <span> + <span>|</span> + <a href="{{ site.rss | absolute_url | uri_escape }}">RSS</a> + </span> +</nav>
\ No newline at end of file diff --git a/_includes/reading-time.html b/_includes/reading-time.html new file mode 100644 index 0000000..2515099 --- /dev/null +++ b/_includes/reading-time.html @@ -0,0 +1,7 @@ +{% capture words %} +{{ content | number_of_words | minus: 180 }} +{% endcapture %} + +{% unless words contains '-' %} +{{ words | plus: 150 | divided_by: 150 | append: ' min read' }} +{% endunless %}
\ No newline at end of file |