I'm working on a theme for Ghost and in the article view (blog feed) the title of the article and the summary will be displayed as follows:
ForthisIusethefollowingcode:
var getText = $('.title').html();
var sliceText = getText.slice(0, 1);
$(".letter").append(sliceText);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><!--PrimeiroArticleCard--><articleclass="card-article">
<header class="card-title">
<h1 class="title">Lorem ipsum dolor sit amet</h1>
<div class="letter"></div>
</header>
</article>
<!-- Segundo Article Card -->
<article class="card-article">
<header class="card-title">
<h1 class="title">Sed ac vehicula nulla.</h1>
<div class="letter"></div>
</header>
</article>
<!-- Terceiro Article Card -->
<article class="card-article">
<header class="card-title">
<h1 class="title">Vivamus ac elit a ex pulvinar.</h1>
<div class="letter"></div>
</header>
</article>