Add start of account page, create owner account page routes, make /owner/actor look for application/ld+json before providing JSON-LD object, refactor to view/owner_actor.json.template to use g_server_name instead of hardcoding my test server into the calling function
parent
494c0eec6d
commit
db8ffe1e38
@ -0,0 +1,3 @@
|
||||
%( view_begin_layout(f,title); )
|
||||
<h1>%s{ account->display_name }</h1>
|
||||
%( view_end_layout(f); )
|
@ -0,0 +1,17 @@
|
||||
#include "layout.h"
|
||||
|
||||
void view_begin_layout( FILE* f, const char* title )
|
||||
{
|
||||
#define RENDER
|
||||
#define BEGIN
|
||||
#include "src/view/layout.html.inc"
|
||||
#undef BEGIN
|
||||
#undef RENDER
|
||||
}
|
||||
void view_end_layout( FILE* f )
|
||||
{
|
||||
#define RENDER
|
||||
#include "src/view/layout.html.inc"
|
||||
#undef RENDER
|
||||
}
|
||||
|
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void view_begin_layout( FILE* f, const char* title );
|
||||
void view_end_layout( FILE* f );
|
||||
|
@ -0,0 +1,12 @@
|
||||
%( #ifdef BEGIN )
|
||||
<html>
|
||||
<head>
|
||||
<title>%s{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
%( #else )
|
||||
|
||||
</body>
|
||||
</html>
|
||||
%( #endif )
|
Loading…
Reference in new issue