Skip to content

Commit

Permalink
SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
Mole1424 committed Sep 3, 2023
1 parent a188bb8 commit 1297b76
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
7 changes: 5 additions & 2 deletions templates/aboutmepage.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{% extends "base.html" %}

{% block title %} About Joel {% endblock %}

{% block description %} About Joel Coulon {% endblock %}
{% block head %}
<link rel="stylesheet" href="../static/css/aboutme.css"> {% endblock %}
<link rel="stylesheet" href="../static/css/aboutme.css">
<meta property="og:image" content="https://joelcoulon.co.uk/static/images/logo.png">
<meta property="og:url" content="https://joelcoulon.com/aboutme">
{% endblock %}

{% block content %}
{% with homepage=homepage %}
Expand Down
8 changes: 6 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{% endblock %}</title>
<meta property="og:title" content="{{self.title()}}">
<link rel="icon" href="/static/img/logo.png" type="image/icon type">
<meta name="description" content="Website for Joel Coulon">
<meta name="keywords" content="Joel, Coulon, Joel Coulon, Mole1424, Programming, University of Warwick">
<meta name="keywords" content="Joel, Coulon, Joel Coulon, Programming, University of Warwick">
<meta name="description" content="{% block description %}{% endblock%}">
<meta property="og:description" content="{{self.description()}}">
<link rel="stylesheet" href="../static/css/main.css">
<link rel="stylesheet" href="../static/css/navbar.css">
{% block head %}{% endblock %}
<meta property="og:type" content="{{ 'article' if 'projects' in request.url else 'website' }}" />
<meta property="og:locale" content="en_GB">
</head>

<body>
Expand Down
3 changes: 3 additions & 0 deletions templates/home.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{% extends "base.html" %}
{% block title %} Joel Coulon {% endblock %}
{% block description %} Website for Joel Coulon {% endblock %}
{% block head %}
<link rel="stylesheet" href="../static/css/aboutme.css">
<link rel="stylesheet" href="../static/css/projects.css">
<meta property="og:image" content="https://joelcoulon.co.uk/static/images/logo.png">
<meta property="og:url" content="https://joelcoulon.com/">
{% endblock %}
{% block content %}
{% with homepage=homepage %}
Expand Down
2 changes: 1 addition & 1 deletion templates/noproject.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "base.html" %}

{% block title %} Project not found {% endblock %}

{% block description %} Project not found {% endblock %}
{% block head %}
<link rel="stylesheet" href="/static/css/noproject.css">
{% endblock %}
Expand Down
4 changes: 4 additions & 0 deletions templates/projectpage.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{% extends "base.html" %}
{% block title %} {{ project.title }} {% endblock %}
{% block description %} {{ project.description }} {% endblock %}
{% block head %}
<link rel="stylesheet" href="../static/css/projectpage.css">
<meta property="og:image"
content="{{'https://joelcoulon.com' if not project.image.startswith('https://')}}{{ project.image }}">
<meta property="og:url" content="https://joelcoulon.com/projects/{{ project.id }}">
{% endblock %}
{% block content %}
<article class="projectarticle">
Expand Down
7 changes: 5 additions & 2 deletions templates/projectspage.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{% extends "base.html" %}

{% block title %} Joel's Projects {% endblock %}

{% block description %} Joel's projects {% endblock %}
{% block head %}
<link rel="stylesheet" href="../static/css/projects.css"> {% endblock %}
<link rel="stylesheet" href="../static/css/projects.css">
<meta property="og:image" content="https://joelcoulon.co.uk/static/images/logo.png">
<meta property="og:url" content="https://joelcoulon.com/projects">
{% endblock %}

{% block content %}
{% with projects=projects%}
Expand Down

0 comments on commit 1297b76

Please sign in to comment.