From 000ab373552f5cda51dd501525ba4e579f9243d0 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 28 Jul 2016 09:08:37 -0400 Subject: reorganize post views --- data/themes/blank/templates/blog-list-item.html | 8 ++++++++ data/themes/blank/templates/blog-list.html | 17 +++++++++++++++++ data/themes/blank/templates/page.html | 15 --------------- data/themes/blank/templates/post-blog.html | 15 +++++++++++++++ data/themes/blank/templates/post-page.html | 15 +++++++++++++++ data/themes/blank/templates/post-project.html | 22 ++++++++++++++++++++++ data/themes/default/templates/blog-post.html | 21 --------------------- data/themes/default/templates/page.html | 24 ------------------------ data/themes/default/templates/post-blog.html | 21 +++++++++++++++++++++ data/themes/default/templates/post-page.html | 24 ++++++++++++++++++++++++ data/themes/default/templates/post-project.html | 24 ++++++++++++++++++++++++ data/themes/default/templates/project.html | 24 ------------------------ 12 files changed, 146 insertions(+), 84 deletions(-) create mode 100644 data/themes/blank/templates/blog-list-item.html create mode 100644 data/themes/blank/templates/blog-list.html delete mode 100644 data/themes/blank/templates/page.html create mode 100644 data/themes/blank/templates/post-blog.html create mode 100644 data/themes/blank/templates/post-page.html create mode 100644 data/themes/blank/templates/post-project.html delete mode 100644 data/themes/default/templates/blog-post.html delete mode 100644 data/themes/default/templates/page.html create mode 100644 data/themes/default/templates/post-blog.html create mode 100644 data/themes/default/templates/post-page.html create mode 100644 data/themes/default/templates/post-project.html delete mode 100644 data/themes/default/templates/project.html (limited to 'data') diff --git a/data/themes/blank/templates/blog-list-item.html b/data/themes/blank/templates/blog-list-item.html new file mode 100644 index 0000000..f2c6c9f --- /dev/null +++ b/data/themes/blank/templates/blog-list-item.html @@ -0,0 +1,8 @@ +
+ %{name|h}
+ + by %{user_name|h} + on %{posted_at_text|h} +

+ %{body} +
diff --git a/data/themes/blank/templates/blog-list.html b/data/themes/blank/templates/blog-list.html new file mode 100644 index 0000000..0ed98f0 --- /dev/null +++ b/data/themes/blank/templates/blog-list.html @@ -0,0 +1,17 @@ + + + + + %{name|h} + + %{styles} + + + +
%{ + body + }
+ + + %{scripts} + diff --git a/data/themes/blank/templates/page.html b/data/themes/blank/templates/page.html deleted file mode 100644 index 78737aa..0000000 --- a/data/themes/blank/templates/page.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - %{name | h} - - %{styles} - - - - %{body} - - - %{scripts} - diff --git a/data/themes/blank/templates/post-blog.html b/data/themes/blank/templates/post-blog.html new file mode 100644 index 0000000..ec99b37 --- /dev/null +++ b/data/themes/blank/templates/post-blog.html @@ -0,0 +1,15 @@ + + + + + %{name|h} + + %{styles} + + + + %{body} + + + %{scripts} + diff --git a/data/themes/blank/templates/post-page.html b/data/themes/blank/templates/post-page.html new file mode 100644 index 0000000..264d152 --- /dev/null +++ b/data/themes/blank/templates/post-page.html @@ -0,0 +1,15 @@ + + + + + %{name | h} + + %{styles} + + + + %{body} + + + %{scripts} + diff --git a/data/themes/blank/templates/post-project.html b/data/themes/blank/templates/post-project.html new file mode 100644 index 0000000..3fd5a76 --- /dev/null +++ b/data/themes/blank/templates/post-project.html @@ -0,0 +1,22 @@ + + + + + %{name | h} + + %{styles} + + + + %{body} + +

+ %{repo_url|h} +

+ + + %{scripts} + diff --git a/data/themes/default/templates/blog-post.html b/data/themes/default/templates/blog-post.html deleted file mode 100644 index f1eaeb4..0000000 --- a/data/themes/default/templates/blog-post.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - %{name|h} - - %{styles} - - - - blog post: %{name|h}
- - by %{user_name|h} - on %{posted_at_text|h} -

- - %{body} - - - %{scripts} - diff --git a/data/themes/default/templates/page.html b/data/themes/default/templates/page.html deleted file mode 100644 index 24f2290..0000000 --- a/data/themes/default/templates/page.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - %{ - name | h - } - - %{styles} - - - -
- page: %{name | h}
- - by %{user_name | h} - on %{posted_at_text | h} -

- %{body} -
- - - %{scripts} - diff --git a/data/themes/default/templates/post-blog.html b/data/themes/default/templates/post-blog.html new file mode 100644 index 0000000..0facb3b --- /dev/null +++ b/data/themes/default/templates/post-blog.html @@ -0,0 +1,21 @@ + + + + + %{name|h} + + %{styles} + + + + blog post: %{name|h}
+ + by %{user_name|h} + on %{posted_at_text|h} +

+ + %{body} + + + %{scripts} + diff --git a/data/themes/default/templates/post-page.html b/data/themes/default/templates/post-page.html new file mode 100644 index 0000000..fdd4523 --- /dev/null +++ b/data/themes/default/templates/post-page.html @@ -0,0 +1,24 @@ + + + + + %{ + name | h + } + + %{styles} + + + +
+ page: %{name | h}
+ + by %{user_name | h} + on %{posted_at_text | h} +

+ %{body} +
+ + + %{scripts} + diff --git a/data/themes/default/templates/post-project.html b/data/themes/default/templates/post-project.html new file mode 100644 index 0000000..725cab0 --- /dev/null +++ b/data/themes/default/templates/post-project.html @@ -0,0 +1,24 @@ + + + + + %{name | h} + + %{styles} + + + + Project: %{name | h}
+ %{body} + +

+ Repo URL: %{repo_url|h} +

+ + + + %{scripts} + diff --git a/data/themes/default/templates/project.html b/data/themes/default/templates/project.html deleted file mode 100644 index c62227a..0000000 --- a/data/themes/default/templates/project.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - Project: %{name | h} - - %{styles} - - - - Project: %{name | h}
- %{body} - -

- Repo URL: %{repo_url|h} -

- - - - %{scripts} - -- cgit v1.2.3