Skip to content

Commit

Permalink
Fix og:url for posts
Browse files Browse the repository at this point in the history
  • Loading branch information
MetroWind committed Jul 4, 2023
1 parent e00ffa4 commit d319b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta property="og:title" content="{{ 'NSPic → ' ~ post.desc | truncate(length=20) }}" />
<meta property="og:type" content="website" />
<meta property="og:description" content="{{ site_info.site_title }}" />
<meta property="og:url" content="{{ site_info.url_domain ~ url_for(name='index', arg='') }}" />
<meta property="og:url" content="{{ site_info.url_domain ~ url_for(name='post', arg=post.id|as_str) }}" />
<meta property="og:image" content="{{ site_info.url_domain ~ url_for(name='image_file', arg=post.images[0].thumbnail) }}" />
<title>{{ 'NSPic → ' ~ post.desc | truncate(length=20) }}</title>
</head>
Expand Down

0 comments on commit d319b0f

Please sign in to comment.