Update meta links
parent
f9c5f635c1
commit
8366994d45
|
@ -53,11 +53,11 @@ http://static-mat-services.fly.dev {
|
||||||
|
|
||||||
# caching
|
# caching
|
||||||
@static {
|
@static {
|
||||||
path *.bmp *.jpg *.png *.svg *.gif *.pdf *.css *.js *.woff *.woff2
|
path *.bmp *.jpg *.png *.svg *.gif *.pdf *.css *.js *.woff *.woff2 /style/* /font/* /image/*
|
||||||
}
|
}
|
||||||
route {
|
route {
|
||||||
header Cache-Control max-age=180
|
|
||||||
header /sitemap.xml Cache-Control max-age=0
|
|
||||||
header @static Cache-Control max-age=31536000, immutable
|
header @static Cache-Control max-age=31536000, immutable
|
||||||
|
header *.xml Cache-Control max-age=0
|
||||||
|
header ?Cache-Control max-age=360
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,8 @@ title = "cellular automata toys in löve2d"
|
||||||
date = "2022-09-15"
|
date = "2022-09-15"
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tags = ["cellular-automata", "lua", "löve2d"]
|
tags = ["cellular-automata", "lua", "löve2d"]
|
||||||
|
[extra]
|
||||||
|
hero = true
|
||||||
+++
|
+++
|
||||||
|
|
||||||
<figure>
|
<figure>
|
||||||
|
|
|
@ -4,17 +4,7 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
{# Site title #}
|
|
||||||
{% set current_path = current_path | default(value="/") %}
|
{% set current_path = current_path | default(value="/") %}
|
||||||
{% if current_path == "/" %}
|
|
||||||
<title>
|
|
||||||
{{ config.title | default(value="Home") }}
|
|
||||||
</title>
|
|
||||||
{% else %}
|
|
||||||
<title>
|
|
||||||
{{ page.title | default(value=config.title) | default(value="Post") }}
|
|
||||||
</title>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{# Favicon #}
|
{# Favicon #}
|
||||||
{% if config.extra.favicon %}
|
{% if config.extra.favicon %}
|
||||||
|
@ -48,5 +38,35 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if current_path == "/" %}
|
||||||
|
{% set current_title = config.title | default(value="home") %}
|
||||||
|
{% set current_description = "the personal site of mat ess" %}
|
||||||
|
{% set hero = false %}
|
||||||
|
{% else %}
|
||||||
|
{% set current_title = page.title | default(value=config.title) | default(value="post") %}
|
||||||
|
{% set current_description = page.description | default(value="from the personal site of mat ess") %}
|
||||||
|
{% set hero = page.extra.hero | default(value=false) %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{# Meta links #}
|
||||||
|
<title>{{ current_title }}</title>
|
||||||
<link rel="canonical" href="{{ get_url(path=current_path) }}" />
|
<link rel="canonical" href="{{ get_url(path=current_path) }}" />
|
||||||
|
<meta name="title" content="{{ current_title }}">
|
||||||
|
<meta name="description" content="{{ current_description }}">
|
||||||
|
|
||||||
|
{# Open Graph / Facebook #}
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:title" content="{{ current_title }}">
|
||||||
|
<meta property="og:description" content="{{ current_description }}">
|
||||||
|
{% if hero %}
|
||||||
|
<meta property="og:image" content="hero.png">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{# Twitter #}
|
||||||
|
<meta property="twitter:card" content="summary_large_image">
|
||||||
|
<meta property="twitter:title" content="{{ current_title }}">
|
||||||
|
<meta property="twitter:description" content="{{ current_description }}">
|
||||||
|
{% if hero %}
|
||||||
|
<meta property="twitter:image" content="hero.png">
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
Loading…
Reference in New Issue