Skip to content

Commit

Permalink
feat: correct title and description in head
Browse files Browse the repository at this point in the history
  • Loading branch information
peterprototypes committed Sep 12, 2023
1 parent f131949 commit d40a5f5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# The URL the site will be built for
base_url = "https://peterprototypes.com"

title = "Peter Todorov 💻 Blog"
description = "Hey, I'm Peter. I'm a software dev by day and hardware hacker by night. I'm publishing my ramblings and findings here."

# Whether to automatically compile all Sass files in the sass directory
compile_sass = false

Expand Down
1 change: 1 addition & 0 deletions content/blog/hello-blog/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = "Hello Blog"
date = 2023-09-11
description = "And I am however many years too late to start a blog. Maybe a lot of things feel late when you're just starting out..."
+++

![Image](cover.jpg)
Expand Down
20 changes: 17 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,24 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="" />
<meta property="og:image" content="/img/ProfilePhoto-400.jpg" />

<title>Peter Todorov</title>
{% if page %}
{% if page.description %}
<meta name="description" content="{{ page.description }}" />
{% elif config.description %}
<meta name="description" content="{{ config.description }}" />
{% endif %}
{% elif config.description %}
<meta name="description" content="{{ config.description }}" />
{% endif %}

<title>{% if page and page.title %}{{page.title}} | {% endif %}{{ config.title }}</title>

{% if config.generate_feed %}
<link rel="alternate" type={% if config.feed_filename=="atom.xml" %}"application/atom+xml"{% else
%}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
{% endif %}

<link rel="stylesheet" type="text/css" href="/style.css">
</head>
Expand All @@ -18,7 +33,6 @@
<img src="/img/ProfilePhoto-400.jpg" alt="Peter Todorov Profile Picture" class="profile-photo" />
<div class="contact-info">
<h1>Peter Todorov</h1>
<!-- <span>Where Software Meets Concrete</span> -->
<span>Hitting Software With a Hammer</span>
<div class="social-links">
<a href="https://github.com/peterprototypes" target="_blank" title="GitHub">
Expand Down

0 comments on commit d40a5f5

Please sign in to comment.