<commit_before>@(doc: io.prismic.Document)(implicit ctx: Context, prismic: lila.blog.BlogApi.Context)

@goodies = {
<br />
<a href="@routes.Blog.index(prismic.maybeRef)">Back to blog</a>
}

@layout(
title = s"${doc.slug} | Blog",
goodies = goodies.some,
openGraph = Map(
'type -> "article",
'image -> doc.getImage("blog.image", "main").??(_.url),
'title -> ~doc.getText("blog.title"),
'site_name -> "lichess.org",
'url -> s"$netBaseUrl${routes.Blog.show(doc.id, doc.slug).url}",
'description -> ~doc.getText("blog.shortlede"))) {

<h1 class="blog_title">@doc.getText("blog.title")</h1>
@meta(doc)
<strong class="shortlede">@doc.getHtml("blog.shortlede", prismic.linkResolver).map(Html.apply)</strong>
<div class="illustration">
  @doc.getImage("blog.image", "main").map { img =>
  <img src="@img.url" />
  }
</div>
<div class="body">
  @doc.getHtml("blog.body", prismic.linkResolver).map(Html.apply)
</div>
<div id="disqus_thread"></div>
<script type="text/javascript">
  var disqus_shortname = 'lichessorg'; // required: replace example with your forum shortname
  var disqus_identifier = '@doc.id';
  var disqus_title = '@doc.getText("blog.title")';
  (function() {
    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
      dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
      (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  })();
</script>
<noscript>Please enable JavaScript to view the comments.</noscript>
}
<commit_msg>fix blog post page title<commit_after>@(doc: io.prismic.Document)(implicit ctx: Context, prismic: lila.blog.BlogApi.Context)

@goodies = {
<br />
<a href="@routes.Blog.index(prismic.maybeRef)">Back to blog</a>
}

@layout(
title = s"${doc.getText("blog.title")} | Blog",
goodies = goodies.some,
openGraph = Map(
'type -> "article",
'image -> doc.getImage("blog.image", "main").??(_.url),
'title -> ~doc.getText("blog.title"),
'site_name -> "lichess.org",
'url -> s"$netBaseUrl${routes.Blog.show(doc.id, doc.slug).url}",
'description -> ~doc.getText("blog.shortlede"))) {

<h1 class="blog_title">@doc.getText("blog.title")</h1>
@meta(doc)
<strong class="shortlede">@doc.getHtml("blog.shortlede", prismic.linkResolver).map(Html.apply)</strong>
<div class="illustration">
  @doc.getImage("blog.image", "main").map { img =>
  <img src="@img.url" />
  }
</div>
<div class="body">
  @doc.getHtml("blog.body", prismic.linkResolver).map(Html.apply)
</div>
<div id="disqus_thread"></div>
<script type="text/javascript">
  var disqus_shortname = 'lichessorg'; // required: replace example with your forum shortname
  var disqus_identifier = '@doc.id';
  var disqus_title = '@doc.getText("blog.title")';
  (function() {
    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
      dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
      (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  })();
</script>
<noscript>Please enable JavaScript to view the comments.</noscript>
}

{'fraction_non_alphanumeric': 0.21318327974276527, 'fraction_numerical': 0.002572347266881029, 'mean_word_length': 5.348979591836735, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7295006', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1128, 'n_words': 192}