File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments