4.1.0 day 1 site ship - one last change again

This commit is contained in:
Allen Webster 2019-12-17 13:54:39 -08:00
parent 25f5484604
commit 0b7640631f
1 changed files with 8 additions and 1 deletions

View File

@ -180,7 +180,7 @@ render_doc_page_to_html_no_header(Arena *scratch, Doc_Page *page, FILE *file){
fprintf(file, "<div class=\"small_spacer\"></div>\n");
fprintf(file, "<div class=\"small\">&gt; <a href=\"https://4coder.net\">home</a>"
fprintf(file, "<div class=\"small\">&gt; <a href=\"https://4coder.net\">home</a> "
"&gt; <a href=\"%.*s.html\">%.*s</a></div>\n",
string_expand(cluster->name),
string_expand(cluster->title));
@ -294,6 +294,10 @@ render_doc_cluster_to_html(Arena *scratch, Doc_Cluster *cluster,
fprintf(file, "<div class=\"small_spacer\"></div>\n");
fprintf(file, "<h1>%.*s</h1>\n", string_expand(cluster->title));
fprintf(file, "<div class=\"small_spacer\"></div>\n");
fprintf(file, "<div class=\"small\">&gt; <a href=\"https://4coder.net\">home</a></div>\n");
fprintf(file, "<div class=\"spacer\"></div>\n");
// TODO(allen): Cluster description.
@ -327,6 +331,9 @@ render_doc_cluster_to_html(Arena *scratch, Doc_Cluster *cluster,
{
fprintf(file_index, "<div class=\"sidebar\">\n");
fprintf(file_index, "<div class=\"small_spacer\"></div>\n");
fprintf(file_index, "<div class=\"small\">&gt; <a href=\"https://4coder.net\">home</a></div>\n");
fprintf(file_index, "<div class=\"small_spacer\"></div>\n");
fprintf(file_index, "<h1>%.*s Index</h1>\n", string_expand(cluster->title));
fprintf(file_index, "<div class=\"spacer\"></div>\n");