|
1 | 1 | {%- assign site_url = "https://cb341.dev" -%} |
2 | | -{%- assign default_title = "cb341.dev" -%} |
3 | | -{%- assign default_description = "Full-stack software developer specializing in Ruby on Rails, web applications, and modern development practices. Portfolio, blog, and projects." -%} |
4 | | -{%- if page.title and page.title != default_title -%} |
5 | | - {%- assign page_title = page.title | append: " | " | append: default_title -%} |
| 2 | +{%- assign site_name = "cb341.dev" -%} |
| 3 | +{%- assign default_title = site.title | default: "Dani Bengl - Full-Stack Developer" -%} |
| 4 | +{%- assign default_description = site.description | default: "Full-stack software developer specializing in Ruby on Rails, web applications, and modern development practices. Portfolio, blog, and projects." -%} |
| 5 | +{%- if page.url == "/" -%} |
| 6 | + {%- assign page_title = "Dani Bengl (cb341) - Full-Stack Developer" -%} |
| 7 | +{%- elsif page.title and page.title != site_name -%} |
| 8 | + {%- assign page_title = page.title | append: " | " | append: site_name -%} |
6 | 9 | {%- else -%} |
7 | 10 | {%- assign page_title = default_title -%} |
8 | 11 | {%- endif -%} |
9 | 12 | {%- assign page_description = page.description | default: default_description -%} |
10 | 13 | {%- assign current_url = site_url | append: page.url -%} |
11 | | -{%- comment -%} og_type: posts have page.date set; everything else is a website {%- endcomment -%} |
12 | | -{%- if page.date -%} |
13 | | - {%- assign og_type = "article" -%} |
14 | | -{%- else -%} |
15 | | - {%- assign og_type = "website" -%} |
16 | | -{%- endif -%} |
| 14 | +{%- assign social_image = site_url | append: "/assets/about/avatar.webp" -%} |
17 | 15 | <!DOCTYPE html> |
18 | 16 | <html lang="en"> |
19 | 17 | <head> |
20 | 18 | <meta charset="utf-8"> |
21 | 19 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
22 | | - <title>{{ page_title }}</title> |
| 20 | + <title>{{ page_title | escape }}</title> |
23 | 21 |
|
24 | | - <meta name="description" content="{{ page_description }}"> |
| 22 | + <meta name="description" content="{{ page_description | escape }}"> |
25 | 23 | <meta name="author" content="Dani Bengl"> |
| 24 | + <link rel="canonical" href="{{ current_url | escape }}"> |
26 | 25 | <link rel="icon" href="/favicon.svg" type="image/svg+xml"> |
27 | 26 | <link rel="alternate" type="application/rss+xml" title="cb341.dev RSS Feed" href="/rss.xml"> |
| 27 | + <script type="application/ld+json"> |
| 28 | + { |
| 29 | + "@context": "https://schema.org", |
| 30 | + "@type": "WebSite", |
| 31 | + "name": "{{ site_name }}", |
| 32 | + "alternateName": "Dani Bengl", |
| 33 | + "url": "{{ site_url }}/", |
| 34 | + "author": { |
| 35 | + "@type": "Person", |
| 36 | + "name": "Dani Bengl", |
| 37 | + "alternateName": "cb341", |
| 38 | + "url": "{{ site_url }}/" |
| 39 | + } |
| 40 | + } |
| 41 | + </script> |
| 42 | + {%- if page.url == "/" or page.url == "/about/" %} |
| 43 | + <script type="application/ld+json"> |
| 44 | + { |
| 45 | + "@context": "https://schema.org", |
| 46 | + "@type": "Person", |
| 47 | + "name": "Dani Bengl", |
| 48 | + "alternateName": "cb341", |
| 49 | + "url": "{{ site_url }}/", |
| 50 | + "image": "{{ social_image }}", |
| 51 | + "jobTitle": "Full-stack software developer", |
| 52 | + "knowsAbout": [ |
| 53 | + "Ruby on Rails", |
| 54 | + "Rust", |
| 55 | + "computer science", |
| 56 | + "computer graphics", |
| 57 | + "open source software", |
| 58 | + "web development" |
| 59 | + ], |
| 60 | + "sameAs": [ |
| 61 | + "https://github.com/cb341", |
| 62 | + "https://gist.github.com/cb341", |
| 63 | + "https://www.linkedin.com/in/daniel-bengl", |
| 64 | + "https://mastodon.social/@cb341", |
| 65 | + "https://www.codewars.com/users/cb341", |
| 66 | + "https://www.lesswrong.com/users/cb341" |
| 67 | + ] |
| 68 | + } |
| 69 | + </script> |
| 70 | + {%- endif %} |
28 | 71 | <style> |
29 | 72 | html, body { margin: 0; padding: 0; } |
30 | 73 | body { |
|
0 commit comments