Skip to content

Commit

Permalink
2023-10-30 13:19:30
Browse files Browse the repository at this point in the history
  • Loading branch information
uidHUB committed Oct 30, 2023
1 parent e78c0b8 commit a4f297d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 11 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,17 @@
<!--[ / pre-load-js ]-->

<!--[ canonical ]-->
<link rel="canonical" href="{{ (.Permalink) }}"/>
{{ $canonical := (.Permalink) }}
{{ with ($.Paginator) }}
{{ $canonical = ((.URL) | absURL) }}
{{ if (.HasPrev) }}
<link rel="prev" href="{{ ((.Prev.URL) | absURL) }}"/>
{{ end }}
{{ if (.HasNext) }}
<link rel="next" href="{{ ((.Next.URL) | absURL) }}"/>
{{ end }}
{{ end }}
<link rel="canonical" href="{{ ($canonical) }}"/>
<!--[ / canonical ]-->

<!--[ languages ]-->
Expand Down
3 changes: 0 additions & 3 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ Disallow: /*/manifest.json
Disallow: /*/opensearch.xml
Disallow: /*/search.json
Disallow: /*/turbo.json
Disallow: /*/authors/
Disallow: /*/categories/
Disallow: /*/footer/
Disallow: /*/tags/

Sitemap: {{ ("sitemap.xml" | absURL) }}

0 comments on commit a4f297d

Please sign in to comment.