Skip to content

Commit b622c3d

Browse files
committed
fix comments
1 parent 658d038 commit b622c3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/layouts/post_layout.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule AcrogenesisCom.PostLayout do
2626
data-disqus-shortname="bluehats"
2727
data-disqus-identifier="<%= @page[:permalink] %>"
2828
data-disqus-title="<%= @page[:title] %>"
29-
data-disqus-url=""
29+
data-disqus-url="<%= URI.merge(@site[:config][:url], @page[:permalink]) |> to_string() %>"
3030
>Show comments</button>
3131
<div id="disqus_thread"></div>
3232
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

lib/layouts/root_layout.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ defmodule AcrogenesisCom.RootLayout do
1818
|> Enum.intersperse("|")
1919
|> Enum.join(" ") %>
2020
</title>
21+
<% canonical = URI.merge(@site[:config][:url], @page[:permalink] || "/") |> to_string() %>
22+
<link rel="canonical" href="<%= canonical %>" />
2123
<script>
2224
(function() {
2325
try {

0 commit comments

Comments
 (0)