mirror of
https://github.com/nicolabs/nicolabs.net.git
synced 2025-09-07 16:27:21 +02:00
136 lines
5.7 KiB
HTML
136 lines
5.7 KiB
HTML
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
{% assign page_title = '' %}
|
|
{% if page.title == "Home" %}
|
|
{% capture page_title %}
|
|
{{ site.title }} | {{ site.description }}
|
|
{%if paginator and paginator.page != 1 %} - Página {{ paginator.page }}{% endif %}
|
|
{% endcapture %}
|
|
{% else %}
|
|
{% capture page_title %}
|
|
{%if page.slug == 'category' %}Categoria: {% endif %}
|
|
{%if page.slug == 'tag' %}Tag: {% endif %} {{ site.title }} | {{ page.title }}
|
|
{% endcapture %}
|
|
{% endif %}
|
|
{% capture page_title %}
|
|
{{ page_title | strip | rstrip | lstrip | escape | strip_newlines }}
|
|
{% endcapture %}
|
|
|
|
<title>{{ page_title }}</title>
|
|
|
|
{% assign page_description = '' %}
|
|
{% capture page_description %}
|
|
{% if page.description %}
|
|
{{ page.description | strip_html | strip | rstrip | strip_newlines | truncate: 160 }}
|
|
{% else %}
|
|
{{ site.description }}
|
|
{% endif %}
|
|
{%if paginator and paginator.page != 1 %} - Página {{ paginator.page }} {% endif %}
|
|
{%if page.slug == 'category' %} Categoria: {{ page.title }}{% endif %}
|
|
{%if page.slug == 'tag' %} Tag: {{ page.title }}{% endif %}
|
|
{% endcapture %}
|
|
|
|
{% capture page_description %}
|
|
{{ page_description | strip | rstrip | lstrip | escape | strip_newlines }}
|
|
{% endcapture %}
|
|
|
|
<meta name="description" content="{{ page_description }}">
|
|
<meta name="keywords" content="{% if page.keywords %}{{ page.keywords }}{% else %}{{ site.keywords }}{% endif %}">
|
|
|
|
<meta name="HandheldFriendly" content="True">
|
|
<meta name="MobileOptimized" content="320">
|
|
|
|
{% assign page_image = '' %}
|
|
{% capture page_image %}
|
|
{% if page.cover %}
|
|
{{ page.cover | prepend: site.baseurl | prepend: site.url }}
|
|
{% else %}
|
|
{{ site.cover | prepend: site.baseurl | prepend: site.url }}
|
|
{% endif %}
|
|
{% endcapture %}
|
|
{% capture page_image %}{{ page_image | strip | rstrip | lstrip | escape | strip_newlines }}{% endcapture %}
|
|
|
|
<!-- Social: Facebook / Open Graph -->
|
|
{% if page.id %}
|
|
<meta property="og:type" content="article">
|
|
<meta property="article:author" content="{{ site.author.name }}">
|
|
<meta property="article:section" content="{{ page.categories | join: ', ' }}">
|
|
<meta property="article:tag" content="{{ page.keywords }}">
|
|
<meta property="article:published_time" content="{{ page.date }}">
|
|
{% else%}
|
|
<meta property="og:type" content="website">
|
|
{% endif %}
|
|
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
|
<meta property="og:title" content="{{ page_title }}">
|
|
<meta property="og:image" content="{{ page_image }}">
|
|
<meta property="og:description" content="{{ page_description }}">
|
|
<meta property="og:site_name" content="{{ site.author.name }}">
|
|
<meta property="og:locale" content="{{ site.og_locale }}">
|
|
|
|
<!-- Social: Twitter -->
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:site" content="{{ site.author.twitter }}">
|
|
<meta name="twitter:title" content="{{ page_title }}">
|
|
<meta name="twitter:description" content="{{ page_description }}">
|
|
<meta name="twitter:image:src" content="{{ page_image }}">
|
|
|
|
<!-- Social: Google+ / Schema.org -->
|
|
<meta itemprop="name" content="{{ page_title }}">
|
|
<meta itemprop="description" content="{{ page_description }}">
|
|
<meta itemprop="image" content="{{ page_image }}">
|
|
|
|
<!-- Mastodon toots -->
|
|
<!-- TODO custom CSS
|
|
<link rel="stylesheet" href="/assets/mastodon-timeline-widget/mastodon.widget.css">
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/solid.css" integrity="sha384-osqezT+30O6N/vsMqwW8Ch6wKlMofqueuia2H7fePy42uC05rm1G+BUPSd2iBSJL" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/fontawesome.css" integrity="sha384-BzCy2fixOYd0HObpx3GMefNqdbA7Qjcc91RgYeDjrHTIEXqiF00jKvgQG0+zY/7I" crossorigin="anonymous">
|
|
-->
|
|
|
|
<!-- rel prev and next -->
|
|
{% if paginator.previous_page %}
|
|
<link rel="prev" href="{{ paginator.previous_page_path | prepend: site.baseurl | prepend: site.url }}">
|
|
{% endif %}
|
|
{% if paginator.next_page %}
|
|
<link rel="next" href="{{ paginator.next_page_path | prepend: site.baseurl | prepend: site.url }}">
|
|
{% endif %}
|
|
|
|
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
|
|
|
|
<!-- Canonical link tag -->
|
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
|
{% feed_meta %}
|
|
|
|
<!-- Mastodon toots -->
|
|
<!--script
|
|
src="https://code.jquery.com/jquery-3.3.1.min.js"
|
|
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
|
|
crossorigin="anonymous"></script>
|
|
<script type="text/javascript" src="/assets/mastodon-timeline-widget/mastodon.widget.js"></script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
// jQUERY is required!
|
|
var mapi = new MastodonApi({
|
|
target_selector : '#myTimeline'
|
|
,instance_uri : '{{ site.author.mastodon.instance }}'
|
|
,access_token : '84e7ac154c450bc9d0d68e52d94171556af38423e2eed4357dead21532fe30e1'
|
|
,account_id : '566645'
|
|
// === optional parameters ===
|
|
//,toots_limit : 5
|
|
// samples below require http://fontawesome.io
|
|
//,pic_icon : '<i class="fa fa-picture-o"></i>'
|
|
,boosts_count_icon : '<i class="fa fa-retweet"></i>'
|
|
,favourites_count_icon : '<i class="fa fa-star"></i>'
|
|
});
|
|
});
|
|
</script-->
|
|
|
|
<script type="text/javascript">
|
|
var disqus_shortname = '{{ site.disqus_shortname }}';
|
|
</script>
|
|
|
|
</head>
|