From 734ca65f647a5aa0ae8ad9fe21cdde599a31df98 Mon Sep 17 00:00:00 2001 From: lish Date: Tue, 6 Jul 2021 17:31:13 +0800 Subject: [PATCH] Support to display multiple magaziones rather than one Signed-off-by: lish --- index.json | 101 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 81 insertions(+), 20 deletions(-) diff --git a/index.json b/index.json index 3c33cc1..c475c7f 100644 --- a/index.json +++ b/index.json @@ -1,16 +1,48 @@ { - "id": "1", - "title": "《开发者黄金十年》", - "sub_title": "《新程序员》第一期", - "path": "new-programmer/2021-01", - "ref": "master", - "detail": "detail.json", - "chapters": "chapters.json", - "index_image": "https://img-home.csdnimg.cn/images/20210525124123.png", - "index_video": "", - "original_price": "48.0", - "line_price": "48.0", - "sale_price": "48.0", + "magazines": [ + { + "id": "1", + "title": "《开发者黄金十年》", + "sub_title": "《新程序员》第一期", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", + "index_image": "https://img-home.csdnimg.cn/images/20210525124123.png", + "index_video": "", + "original_price": "48.0", + "line_price": "48.0", + "sale_price": "48.0", + "short_description": "", + "description": "", + "author": { + "username": "programmer", + "user_title": "国内开发者的权威刊物", + "nickname": "程序员杂志编辑组" + } + }, + { + "id": "1", + "title": "《开发者黄金十年》", + "sub_title": "《新程序员》第一期", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", + "index_image": "https://img-home.csdnimg.cn/images/20210525124123.png", + "index_video": "", + "original_price": "48.0", + "line_price": "48.0", + "sale_price": "48.0", + "short_description": "", + "description": "", + "author": { + "username": "programmer", + "user_title": "国内开发者的权威刊物", + "nickname": "程序员杂志编辑组" + } + } + ], "selected_chapters": [ { "id": "9", @@ -18,6 +50,10 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/20210528131454954.jpeg", "index": "9", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "100", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/25.html", @@ -29,6 +65,10 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/20210528131500170.png", "index": "10", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "100", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/31.html", @@ -51,6 +91,10 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/20210528131455257.jpeg", "index": "12", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "20", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/28.html", @@ -62,6 +106,10 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/2021052813150142.png", "index": "13", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "20", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/30.html", @@ -73,6 +121,10 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/20210528131457280.png", "index": "14", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "20", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/29.html", @@ -84,6 +136,10 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/20210528132032282.jpeg", "index": "16", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "100", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/12.html", @@ -95,6 +151,10 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/2021052813145998.png", "index": "24", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "100", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/14.html", @@ -106,6 +166,10 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/20210528131454992.jpeg", "index": "27", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "100", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/3.html", @@ -117,17 +181,14 @@ "sub_title": "", "icon_image": "https://img-blog.csdnimg.cn/20210528131457969.png", "index": "31", + "path": "new-programmer/2021-01", + "ref": "master", + "detail": "detail.json", + "chapters": "chapters.json", "free_rate": "20", "description": "", "chapter_page_url": "https://new-programmer.gitcode.host/2021-01/8.html", "chapter_limited_page_url": "https://new-programmer.gitcode.host/2021-01/8-limit.html" } - ], - "short_description": "", - "description": "", - "author": { - "username": "programmer", - "user_title": "国内开发者的权威刊物", - "nickname": "程序员杂志编辑组" - } + ] } -- GitLab