markdown preview
This commit is contained in:
@@ -37,6 +37,8 @@ func (h *Handlers) CreateNotePageHandler(c *gin.Context) {
|
||||
"active_path": utils.GetActivePath(folderPath),
|
||||
"current_note": nil,
|
||||
"breadcrumbs": utils.GenerateBreadcrumbs(folderPath),
|
||||
"image_storage_mode": h.config.ImageStorageMode,
|
||||
"image_subfolder_name": h.config.ImageSubfolderName,
|
||||
"ContentTemplate": "create_content",
|
||||
"ScriptsTemplate": "create_scripts",
|
||||
"Page": "create",
|
||||
@@ -204,6 +206,8 @@ func (h *Handlers) EditNotePageHandler(c *gin.Context) {
|
||||
"active_path": utils.GetActivePath(folderPath),
|
||||
"current_note": notePath,
|
||||
"breadcrumbs": utils.GenerateBreadcrumbs(folderPath),
|
||||
"image_storage_mode": h.config.ImageStorageMode,
|
||||
"image_subfolder_name": h.config.ImageSubfolderName,
|
||||
"ContentTemplate": "edit_content",
|
||||
"ScriptsTemplate": "edit_scripts",
|
||||
"Page": "edit",
|
||||
|
||||
Reference in New Issue
Block a user