Update metadata.html

This commit is contained in:
Santiago Lo Coco 2022-02-10 10:41:31 -03:00
parent 179d628787
commit 8d92a50208
2 changed files with 3 additions and 66 deletions

View File

@ -46,7 +46,7 @@ max_width: 800px
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Open Graph & Schema.org # Open Graph & Schema.org
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Display links to the page with a preview object on social media.
serve_og_meta: false # Include Open Graph meta tags in the HTML head serve_og_meta: false # Include Open Graph meta tags in the HTML head
serve_schema_org: false # Include Schema.org in the HTML head serve_schema_org: false # Include Schema.org in the HTML head
og_image: # The site-wide (default for all links) Open Graph preview image og_image: # The site-wide (default for all links) Open Graph preview image
@ -70,7 +70,7 @@ bing_site_verification: # out your bing-site-verification ID (Bing Webmaster)
# Blog # Blog
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# blog_name: blog # your blog must have a name for it to show up in the nav bar # blog_name: blog
# blog_description: # blog_description:
# permalink: /blog/:year/:title/ # permalink: /blog/:year/:title/
@ -98,10 +98,9 @@ collections:
# Jekyll settings # Jekyll settings
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Markdown and syntax highlight
markdown: kramdown markdown: kramdown
highlighter: rouge highlighter: rouge
highlight_theme: github # https://github.com/jwarby/jekyll-pygments-themes highlight_theme: github
kramdown: kramdown:
input: GFM input: GFM
syntax_highlighter_opts: syntax_highlighter_opts:
@ -112,7 +111,6 @@ kramdown:
line_numbers: false line_numbers: false
start_line: 1 start_line: 1
# Includes & excludes
include: ['_pages'] include: ['_pages']
exclude: exclude:
- bin - bin

View File

@ -1,5 +1,4 @@
{% if site.enable_google_verification or site.enable_bing_verification %} {% if site.enable_google_verification or site.enable_bing_verification %}
<!-- Website verification -->
{% if site.enable_google_verification -%} {% if site.enable_google_verification -%}
<meta name="google-site-verification" content="{{ site.google_site_verification }}" /> <meta name="google-site-verification" content="{{ site.google_site_verification }}" />
{%- endif -%} {%- endif -%}
@ -8,7 +7,6 @@
{%- endif -%} {%- endif -%}
{%- endif %} {%- endif %}
<!-- Standard metadata -->
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -43,35 +41,12 @@
{%- endif %} {%- endif %}
<meta property="og:locale" content="{{ site.lang }}" /> <meta property="og:locale" content="{{ site.lang }}" />
<!-- Twitter card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{%- if page.title -%}{{ page.title }}{%- else -%}{{ site.title }}{%- endif -%}" />
<meta name="twitter:description" content="{%- if page.description -%}{{ page.description }}{%- else -%}{{ site.description }}{%- endif -%}" />
{% if page.og_image or site.og_image -%}
<meta name="twitter:image" content="{%- if page.og_image -%}{{ page.og_image }}{%- else -%}{{ site.og_image }}{%- endif -%}" />
{%- endif %}
{% if site.twitter_username -%}
<meta name="twitter:site" content="@{{ site.twitter_username }}" />
<meta name="twitter:creator" content="@{{ site.twitter_username }}" />
{%- endif %}
{%- endif %} {%- endif %}
{%- if site.serve_schema_org %} {%- if site.serve_schema_org %}
{%- comment -%} Social links generator for "sameAs schema" {%- endcomment %} {%- comment -%} Social links generator for "sameAs schema" {%- endcomment %}
{% assign sameaslinks = "" | split: "," %} {% assign sameaslinks = "" | split: "," %}
{%- if site.orcid_id -%}
{%- capture link -%}https://orcid.org/{{ site.orcid_id }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.publons_id -%}
{%- capture link -%}https://publons.com/a/{{ site.publons_id }}/{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.research_gate_profile -%}
{%- capture link -%}https://www.researchgate.net/profile/{{site.research_gate_profile}}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.github_username -%} {%- if site.github_username -%}
{%- capture link -%}https://github.com/{{ site.github_username }}{%- endcapture -%} {%- capture link -%}https://github.com/{{ site.github_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%} {%- assign sameaslinks = sameaslinks | push: link -%}
@ -80,50 +55,14 @@
{%- capture link -%}https://www.linkedin.com/in/{{ site.linkedin_username }}{%- endcapture -%} {%- capture link -%}https://www.linkedin.com/in/{{ site.linkedin_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%} {%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%} {%- endif -%}
{%- if site.twitter_username -%}
{%- capture link -%}https://twitter.com/{{ site.twitter_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.medium_username -%}
{%- capture link -%}https://medium.com/@{{ site.medium_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.quora_username -%}
{%- capture link -%}https://www.quora.com/profile/{{ site.quora_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.blogger_url -%}
{%- capture link -%}{{ site.blogger_url }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.work_url -%} {%- if site.work_url -%}
{%- capture link -%}{{ site.work_url }}{%- endcapture -%} {%- capture link -%}{{ site.work_url }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%} {%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%} {%- endif -%}
{%- if site.wikidata_id -%}
{%- capture link -%}https://www.wikidata.org/wiki/{{ site.wikidata_id }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.strava_userid -%}
{%- capture link -%}https://www.strava.com/athletes/{{ site.strava_userid }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.keybase_username -%}
{%- capture link -%}https://keybase.io/{{ site.keybase_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.gitlab_username -%} {%- if site.gitlab_username -%}
{%- capture link -%}https://gitlab.com/{{ site.gitlab_username }}{%- endcapture -%} {%- capture link -%}https://gitlab.com/{{ site.gitlab_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%} {%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%} {%- endif -%}
{%- if site.dblp_url -%}
{%- capture link -%}{{ site.dblp_url }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.stackoverflow_id -%}
{%- capture link -%}https://stackoverflow.com/users/{{ site.stackoverflow_id }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if sameaslinks != blank -%} {%- if sameaslinks != blank -%}
{%- assign sameaslinks = sameaslinks | split: "" -%} {%- assign sameaslinks = sameaslinks | split: "" -%}
{%- endif -%} {%- endif -%}