Skip to content

Commit

Permalink
refactor: single page references are fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Nov 14, 2024
1 parent e24492d commit 1d253d7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/Gen/hbs/HandlebarsCorpus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,13 @@ getXref(Info const& I) const
{
bool multipage = getCorpus().config->multipage;
// use '/' as the seperator for multipage, and '-' for single-page
std::string xref = names_.getQualified(
I.id, multipage ? '/' : '-');
std::string xref;
if(!multipage)
{
xref += "#";
}
char delim = multipage ? '/' : '-';
xref += names_.getQualified(I.id, delim);
// add the file extension if in multipage mode
if(multipage)
{
Expand Down

0 comments on commit 1d253d7

Please sign in to comment.