Skip to content

Commit 104b9f7

Browse files
committed
add cannonical urls for blogs
1 parent a9b1cb1 commit 104b9f7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

_includes/header.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
<link rel="stylesheet" href="/css/bulma.css">
2929
<script defer src="https://use.fontawesome.com/releases/v5.0.7/js/all.js"></script>
3030
<link rel="stylesheet" href="/css/main.css">
31+
{% if include.cannonical %}
32+
<link rel="cannonical" href="{{ include.cannonical }}">
33+
{% endif %}
3134
</head>
3235
<body class="has-navbar-fixed-top">
3336
<nav class="navbar is-spaced is-fixed-top" role="navigation" aria-label="main navigation">

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% include header.html %}
1+
{% include header.html cannonical=page.cannonical %}
22
<div class="container content">
33
<h2 class="has-text-centered">{{ page.title }}</h2>
44
<br />

_posts/2019-06-19-hello.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ date: 2019-06-19 12:00:00 +0530
55
author: "Adeen Shukla"
66
author-link: "https://adeen.me"
77
comments: true
8+
cannonical: "https://codeindore.com"
89
---
910

1011
**codeIndore( )** is the student technical community by students and for the students in Indore, India.

0 commit comments

Comments
 (0)