diff --git a/recipe/models.py b/recipe/models.py index 6065a26..d6aed4e 100644 --- a/recipe/models.py +++ b/recipe/models.py @@ -94,12 +94,18 @@ class Recipe(models.Model): "config": { "wide_screen_mode": True }, + "header": { + "title": { + "tag": "plain_text", + "content": self.name, + }, + "template": "blue" + }, "elements": [ { "tag": "markdown", - "content": "# **%s**\n类型:%s\n评分:%s\n难度:%s" % ( - self.name, self.display_recipe_type, self.display_rate, - self.display_difficult) + "content": "**类型**:%s\n**评分**:%s\n**难度**:%s" % ( + self.display_recipe_type, self.display_rate, self.display_difficult) }, { "tag": "action",