Skip to content

Commit

Permalink
enh: Add a title to the share dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Dec 22, 2024
1 parent ec53182 commit 3a19614
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mkdocs_landing/partials/head_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@
<script>
function on_share() {
navigator.share({
url: document.URL
})
url: document.URL,
title: "{%- if page.title %}{{page.title}} - {%- endif %}{{config.site_name}}",
});
}
</script>

0 comments on commit 3a19614

Please sign in to comment.