@@ 78-86 (lines=9) @@ | ||
75 | ) |
|
76 | ||
77 | ||
78 | @site_blueprint.route("/columns") |
|
79 | def columns(): |
|
80 | article_block = get_data(MAIN_SITE) |
|
81 | title = article_block.find("a", {"name": "columns"}).find_parent("h2") |
|
82 | content = title.find_next("ul") |
|
83 | return render_template( |
|
84 | "articles.html", |
|
85 | articles=content, |
|
86 | title=title.get_text(), |
|
87 | ) |
|
88 | ||
89 | ||
@@ 66-74 (lines=9) @@ | ||
63 | ) |
|
64 | ||
65 | ||
66 | @site_blueprint.route("/texts") |
|
67 | def texts(): |
|
68 | article_block = get_data(MAIN_SITE) |
|
69 | title = article_block.find("a", {"name": "texts"}).find_parent("h2") |
|
70 | content = title.find_next("ol") |
|
71 | return render_template( |
|
72 | "articles.html", |
|
73 | articles=content, |
|
74 | title=title.get_text(), |
|
75 | ) |
|
76 | ||
77 | ||
@@ 54-62 (lines=9) @@ | ||
51 | ) |
|
52 | ||
53 | ||
54 | @site_blueprint.route("/articles") |
|
55 | def articles(): |
|
56 | article_block = get_data(MAIN_SITE) |
|
57 | title = article_block.find("a", {"name": "articles"}).find_parent("h2") |
|
58 | content = title.find_next("ol") |
|
59 | return render_template( |
|
60 | "articles.html", |
|
61 | articles=content, |
|
62 | title=title.get_text(), |
|
63 | ) |
|
64 | ||
65 |