diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-07-28 09:08:37 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-07-28 09:08:37 -0400 |
commit | 000ab373552f5cda51dd501525ba4e579f9243d0 (patch) | |
tree | a4f6c1eeb42440202a8aa6df964aab6f7ab5bcc3 /data | |
parent | 4c86c22ff083cd7e50eb6b6cdeba088eaa23b34c (diff) | |
download | guff-000ab373552f5cda51dd501525ba4e579f9243d0.tar.bz2 guff-000ab373552f5cda51dd501525ba4e579f9243d0.zip |
reorganize post views
Diffstat (limited to 'data')
-rw-r--r-- | data/themes/blank/templates/blog-list-item.html | 8 | ||||
-rw-r--r-- | data/themes/blank/templates/blog-list.html | 17 | ||||
-rw-r--r-- | data/themes/blank/templates/post-blog.html | 15 | ||||
-rw-r--r-- | data/themes/blank/templates/post-page.html (renamed from data/themes/blank/templates/page.html) | 2 | ||||
-rw-r--r-- | data/themes/blank/templates/post-project.html | 22 | ||||
-rw-r--r-- | data/themes/default/templates/post-blog.html (renamed from data/themes/default/templates/blog-post.html) | 2 | ||||
-rw-r--r-- | data/themes/default/templates/post-page.html (renamed from data/themes/default/templates/page.html) | 2 | ||||
-rw-r--r-- | data/themes/default/templates/post-project.html (renamed from data/themes/default/templates/project.html) | 4 |
8 files changed, 67 insertions, 5 deletions
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 @@ +<div class='guff-blog-list-item'> + <b>%{name|h}</b><br/> + <b> + by <span class='user'>%{user_name|h}</span> + on <span class='date'>%{posted_at_text|h}</span> + </b><br/><br/> + %{body} +</div> 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 @@ +<!DOCTYPE html> +<html lang='en-US'> + <head> + <meta charset="utf-8"/> + <title>%{name|h}</title> + + %{styles} + </head> + + <body class='guff-blog-list'> + <div class='posts'>%{ + body + }</div><!-- posts --> + </body> + + %{scripts} +</html> 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 @@ +<!DOCTYPE html> +<html lang='en-US'> + <head> + <meta charset="utf-8"/> + <title>%{name|h}</title> + + %{styles} + </head> + + <body class='guff-post-blog'> + %{body} + </body> + + %{scripts} +</html> diff --git a/data/themes/blank/templates/page.html b/data/themes/blank/templates/post-page.html index 78737aa..264d152 100644 --- a/data/themes/blank/templates/page.html +++ b/data/themes/blank/templates/post-page.html @@ -7,7 +7,7 @@ %{styles} </head> - <body> + <body class='guff-post-page'> %{body} </body> 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 @@ +<!DOCTYPE html> +<html lang='en-US'> + <head> + <meta charset="utf-8"/> + <title>%{name | h}</title> + + %{styles} + </head> + + <body class='guff-post-project'> + %{body} + + <p> + <a + href='%{repo_url|h}' + title='View %{name|h} Git repository.' + >%{repo_url|h}</a> + </p> + </body> + + %{scripts} +</html> diff --git a/data/themes/default/templates/blog-post.html b/data/themes/default/templates/post-blog.html index f1eaeb4..0facb3b 100644 --- a/data/themes/default/templates/blog-post.html +++ b/data/themes/default/templates/post-blog.html @@ -7,7 +7,7 @@ %{styles} </head> - <body class='guff-blog-post'> + <body class='guff-post-blog'> <b>blog post: %{name|h}</b><br/> <b> by <span class='user'>%{user_name|h}</span> diff --git a/data/themes/default/templates/page.html b/data/themes/default/templates/post-page.html index 24f2290..fdd4523 100644 --- a/data/themes/default/templates/page.html +++ b/data/themes/default/templates/post-page.html @@ -9,7 +9,7 @@ %{styles} </head> - <body class='guff-page'> + <body class='guff-post-page'> <div class='post'> <b>page: %{name | h}</b><br/> <b> diff --git a/data/themes/default/templates/project.html b/data/themes/default/templates/post-project.html index c62227a..725cab0 100644 --- a/data/themes/default/templates/project.html +++ b/data/themes/default/templates/post-project.html @@ -2,12 +2,12 @@ <html lang='en-US'> <head> <meta charset="utf-8"/> - <title>Project: %{name | h}</title> + <title>%{name | h}</title> %{styles} </head> - <body class='guff-project'> + <body class='guff-post-project'> <b>Project: %{name | h}</b><br/> %{body} |