Compare commits

...

2 Commits

Author SHA1 Message Date
Niko Abeler c7834b08d5 remove CRLF 2023-01-13 19:33:17 +01:00
Niko Abeler 659aaa6c8d fixed h-recipe 2023-01-12 21:22:15 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -201,12 +201,12 @@ func userEditorPostHandler(repo *owl.Repository) func(http.ResponseWriter, *http
post_type := r.Form.Get("type") post_type := r.Form.Get("type")
title := r.Form.Get("title") title := r.Form.Get("title")
description := r.Form.Get("description") description := r.Form.Get("description")
content := r.Form.Get("content") content := strings.ReplaceAll(r.Form.Get("content"), "\r", "")
draft := r.Form.Get("draft") draft := r.Form.Get("draft")
// recipe values // recipe values
recipe_yield := r.Form.Get("yield") recipe_yield := r.Form.Get("yield")
recipe_ingredients := r.Form.Get("ingredients") recipe_ingredients := strings.ReplaceAll(r.Form.Get("ingredients"), "\r", "")
recipe_duration := r.Form.Get("duration") recipe_duration := r.Form.Get("duration")
// conditional values // conditional values

View File

@ -1,4 +1,4 @@
<div class="h-entry h-Recipe"> <div class="h-entry h-recipe">
<hgroup> <hgroup>
<h1 class="p-name">{{.Title}}</h1> <h1 class="p-name">{{.Title}}</h1>
<small> <small>