summaryrefslogtreecommitdiff
path: root/plt/art
diff options
context:
space:
mode:
Diffstat (limited to 'plt/art')
-rw-r--r--plt/art/index.html60
-rw-r--r--plt/art/page.html76
-rw-r--r--plt/art/page_list.html22
-rw-r--r--plt/art/page_list_entry.html5
-rw-r--r--plt/art/tag.html54
5 files changed, 217 insertions, 0 deletions
diff --git a/plt/art/index.html b/plt/art/index.html
new file mode 100644
index 0000000..87c083d
--- /dev/null
+++ b/plt/art/index.html
@@ -0,0 +1,60 @@
+{%extends "base.html"%}
+
+{%block html_lang%}
+{{config['lang']}}
+{%endblock html_lang%}
+
+{%block head_title%}
+<title>Index -- {{config['title']}}</title>
+{%endblock head_title%}
+
+{%block head_description%}
+<meta name="description" content="{{config['description']}}"/>
+{%endblock head_description%}
+
+{%block head_rss%}
+<link rel="alternate" type="application/rss+xml" href="{{config['url']['main']}}/rss.xml" title="{{config['title']}} RSS">
+{%endblock head_rss%}
+
+{%block head_extra%}
+{%endblock head_extra%}
+
+{%block head_og%}
+ <meta property="og:title" content="Index -- {{config['title']}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{config['url']['main']}}/index.html"/>
+ <meta property="og:image" content="{{config['url']['static']}}/{{config['url']['default_image']}}"/>
+ <meta property="og:description" content="{{config['description']}}"/>
+ <meta property="og:locale" content="{{config['lang']}}"/>
+ <meta property="og:site_name" content="{{config['title']}}"/>
+{%endblock head_og%}
+
+{%block body_header%}
+{%import 'body/header.html' as body_header%}
+{{body_header.print(config)}}
+{%endblock body_header%}
+
+{%block body_content%}
+ <h1>Index -- {{config['title']}}</h1>
+
+ <p>Here is where I will post all of my drawings, sketches and more art related stuff. Right now this is managed similar to the <a href="https://blog.luevano.xyz" alt="Luévano's Blog">blog</a>, but more "gallery" oriented. The structure is kind of a 3-level zoom, where you see all the images in this index (or on a tag index), then you see the whole image in its separate link with additional information and then you can see the raw image itself.</p>
+
+ <p>Get the RSS feed: <a target="_blank" href="{{config['url']['main']}}/rss.xml">{{config['url']['main']}}/rss.xml</a></p>
+
+ {%import "tag_list.html" as tag_list%}
+ {{tag_list.print(all_tags, "art-tags")}}
+
+ {%import "art/page_list.html" as page_list%}
+ {{page_list.print(all_pages)}}
+{%endblock body_content%}
+
+{%block body_footer%}
+{%import 'body/footer.html' as body_footer%}
+{{body_footer.contact(config)}}
+{{body_footer.donate(config)}}
+{{body_footer.rss(config)}}
+<br>
+{{body_footer.created_with()}}
+<br>
+{{body_footer.copyright()}}
+{%endblock body_footer%} \ No newline at end of file
diff --git a/plt/art/page.html b/plt/art/page.html
new file mode 100644
index 0000000..837422e
--- /dev/null
+++ b/plt/art/page.html
@@ -0,0 +1,76 @@
+{%extends "base.html"%}
+
+{%block html_lang%}
+{{config['lang']}}
+{%endblock html_lang%}
+
+{%block head_title%}
+<title>{{page.title}} -- {{config['title']}}</title>
+{%endblock head_title%}
+
+{%block head_description%}
+{%if page.summary is not none%}
+ <meta name="description" content="{{page.summary}}"/>
+{%else%}
+ <meta name="description" content="{{config['description']}}"/>
+{%endif%}
+{%endblock head_description%}
+
+{%block head_rss%}
+<link rel="alternate" type="application/rss+xml" href="{{config['url']['main']}}/rss.xml" title="{{config['title']}} RSS">
+{%endblock head_rss%}
+
+{%block head_og%}
+ <meta property="og:title" content="{{page.title}} -- {{config['title']}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{config['url']['main']}}/{{page.name}}"/>
+ <meta property="og:image" content="{{config['url']['static']}}/{{config['url']['default_image']}}"/>
+{%if page.summary is not none%}
+ <meta property="og:description" content="{{page.summary}}"/>
+{%else%}
+ <meta property="og:description" content="{{config['description']}}"/>
+{%endif%}
+ <meta property="og:locale" content="{{config['lang']}}"/>
+ <meta property="og:site_name" content="{{config['title']}}"/>
+{%endblock head_og%}
+
+{%block body_header%}
+{%import 'body/header.html' as body_header%}
+{{body_header.print(config)}}
+{%endblock body_header%}
+
+{%block body_content%}
+ <h1>{{page.title}}</h1>
+
+ <a class="zoom-in" href="{{page.image_url}}" alt="See raw.">
+ {%if page.summary is not none%}
+ <img src="{{page.image_url}}" alt="{{page.summary}}">
+ {%else%}
+ <img src="{{page.image_url}}">
+ {%endif%}
+ </a>
+
+ {{page.content}}
+
+ {%import "page_nav.html" as page_nav%}
+ {{page_nav.print(page, config, "art-nav")}}
+
+ <hr>
+ <div class="art-info">
+ <p>By {{', '.join(page.author)}}</p>
+ <p>Posted: {{page.cdate}}</p>
+ {%import "tag_list.html" as tag_list%}
+ {{tag_list.print(page.tags, "art-tags")}}
+ </div>
+{%endblock body_content%}
+
+{%block body_footer%}
+{%import 'body/footer.html' as body_footer%}
+{{body_footer.contact(config)}}
+{{body_footer.donate(config)}}
+{{body_footer.rss(config)}}
+<br>
+{{body_footer.created_with()}}
+<br>
+{{body_footer.copyright()}}
+{%endblock body_footer%} \ No newline at end of file
diff --git a/plt/art/page_list.html b/plt/art/page_list.html
new file mode 100644
index 0000000..c634bcf
--- /dev/null
+++ b/plt/art/page_list.html
@@ -0,0 +1,22 @@
+{%macro print(pages)%}
+{%import "art/page_list_entry.html" as art_entry%}
+<div class="art-grid">
+ {%for p in pages%}
+ {%if p.meta['tall'] is defined%}
+ {%if p.meta['wide'] is defined%}
+ {{art_entry.print(p, 'tall wide')}}
+ {%else%}
+ {{art_entry.print(p, 'tall')}}
+ {%endif%}
+ {%elif p.meta['wide'] is defined%}
+ {%if p.meta['tall'] is defined%}
+ {{art_entry.print(p, 'tall wide')}}
+ {%else%}
+ {{art_entry.print(p, 'tall')}}
+ {%endif%}
+ {%else%}
+ {{art_entry.print(p)}}
+ {%endif%}
+ {%endfor%}
+</div>
+{%endmacro%}
diff --git a/plt/art/page_list_entry.html b/plt/art/page_list_entry.html
new file mode 100644
index 0000000..1790025
--- /dev/null
+++ b/plt/art/page_list_entry.html
@@ -0,0 +1,5 @@
+{%macro print(page, class='')%}
+<a class="zoom-in {{class}}" href="{{page.url}}" alt="{{page.title}}">
+ <img src="{{page.image_url}}" alt="{{page.title}}">
+</a>
+{%endmacro%}
diff --git a/plt/art/tag.html b/plt/art/tag.html
new file mode 100644
index 0000000..8881998
--- /dev/null
+++ b/plt/art/tag.html
@@ -0,0 +1,54 @@
+{%extends "base.html"%}
+
+{%block html_lang%}
+{{config['lang']}}
+{%endblock html_lang%}
+
+{%block head_title%}
+<title>Art filtered by {{tag[0]}} -- {{config['title']}}</title>
+{%endblock head_title%}
+
+{%block head_description%}
+<meta name="description" content="Posts filtered by {{tag[0]}}"/>
+{%endblock head_description%}
+
+{%block head_rss%}
+<link rel="alternate" type="application/rss+xml" href="{{config['url']['main']}}/rss.xml" title="{{config['title']}} RSS">
+{%endblock head_rss%}
+
+{%block head_extra%}
+{%endblock head_extra%}
+
+{%block head_og%}
+ <meta property="og:title" content="{{config['title']}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{tag[1]}}"/>
+ <meta property="og:image" content="{{config['url']['static']}}/{{config['url']['default_image']}}"/>
+ <meta property="og:description" content="Art filtered by {{tag[0]}}"/>
+ <meta property="og:locale" content="{{config['lang']}}"/>
+ <meta property="og:site_name" content="{{config['title']}}"/>
+{%endblock head_og%}
+
+{%block body_header%}
+{%import 'body/header.html' as body_header%}
+{{body_header.print(config)}}
+{%endblock body_header%}
+
+{%block body_content%}
+ <h1>Art filtered by {{tag[0]}}</h1>
+
+ {%import "art/page_list.html" as page_list%}
+ {{page_list.print(tag_pages)}}
+
+{%endblock body_content%}
+
+{%block body_footer%}
+{%import 'body/footer.html' as body_footer%}
+{{body_footer.contact(config)}}
+{{body_footer.donate(config)}}
+{{body_footer.rss(config)}}
+<br>
+{{body_footer.created_with()}}
+<br>
+{{body_footer.copyright()}}
+{%endblock body_footer%} \ No newline at end of file