diff options
| author | Daniel Hader <[email protected]> | 2026-08-29 13:06:16 -0500 |
|---|---|---|
| committer | Daniel Hader <[email protected]> | 2026-08-29 13:06:16 -0500 |
| commit | 5fa81500dcc07a853a01b0b0d813069467995807 (patch) | |
| tree | 4edb04d0a99ee88492f99eb7a09d8982b56280f9 /themes | |
work in progress css
Diffstat (limited to 'themes')
30 files changed, 600 insertions, 0 deletions
diff --git a/themes/simple/static/css/main.css b/themes/simple/static/css/main.css new file mode 100644 index 0000000..4c76d55 --- /dev/null +++ b/themes/simple/static/css/main.css @@ -0,0 +1,171 @@ +@import url("reset.css"); + +@font-face { + font-family: Gocake; + src: url("../fonts/gocake/Gocake.ttf"); +} + +@font-face { + font-family: Canela; + src: url("../fonts/canela/canela-Regular-TRIAL.otf"); +} + +@font-face { + font-family: Babel-Sans; + src: url("../fonts/babel_sans/BabelSans.ttf"); +} + +@font-face { + font-family: Aerial; + src: url("../fonts/aerial_2/Aerial_Demo.ttf"); +} + +body { + width: 100vw; + height: 100vh; + background-image: url("../images/background.jpg"); + background-repeat: no-repeat; + background-size: cover; + background-position: center; + background-attachment: fixed; + + font-family: "Aerial"; + line-height: 1.2; + + color: #aabbaf; +} + +a { + color: #99bb88; +} + +h1 { + font-size: 2em; +} + +#container { + width: 100%; + max-width: 980px; + margin: 20px auto 20px auto; +} + +#header { + position: relative; + background-color: rgba(20, 20, 20, 1.0); + background: + linear-gradient( + 180deg, + rgba(72, 72, 72, 0.9) 0%, + rgba(20, 20, 20, 0.95) 100% + ); + border-top: 1px solid #9e9e9e; + border-left: 1px solid #9e9e9e; + border-right: 1px solid #9e9e9e; + border-radius: 30px 30px 0 0; + +} + +#header hgroup { + padding: 20px 20px 10px 20px; +} + +#header::after { + content: ""; + position: absolute; + top: 4%; + left: 0.75em; + width: calc(100% - 1.5em); + height: 40%; + background: linear-gradient( + to bottom, + rgba(255, 255, 255, 0.3), + rgba(255, 255, 255, 0.05) + ); + border-radius: 30px 30px 30px 30px; +} + +#content { + display: flex; +} + +#navs { + display: flex; + flex-direction: column; + + width: 150px; + height: 100%; + padding: 10px 8px 10px 8px; + + border-top: 1px solid #666666; + border-left: 1px solid #666666; + border-right: 1px solid #666666; + background: rgba(30, 30, 30, 0.4); + /*background: linear-gradient(to bottom,rgba(80,80,80,.2),rgba(39,39,39,.1));*/ +} + +.nav { + border-radius: 8px 8px 4px 4px; + box-shadow: 2px 2px 3px rgba(0,0,0,.8); + margin-bottom: 12px; +} + +.nav nav { + display: flex; + flex-direction: column; + + background: rgba(0, 0, 0, .5); + + padding: 4px; + border-radius: 0 0 4px 4px; + border-left: 1px solid #666666; + border-right: 1px solid #666666; + border-bottom: 1px solid #666666; +} + +.nav header { + position: relative; + background-color: rgba(20, 20, 20, 1.0); + background: + linear-gradient( + 180deg, + rgba(72, 72, 72, 0.9) 0%, + rgba(20, 20, 20, 0.95) 100% + ); + + border-top: 1px solid #666666; + border-left: 1px solid #666666; + border-right: 1px solid #666666; + border-radius: 8px 8px 0 0; + + padding: 4px 0 4px 0; + font-weight: 600; + text-align: center; +} + +.nav header::after { + content: ""; + position: absolute; + top: 4%; + left: 2.5%; + width: 95%; + height: 40%; + background: linear-gradient( + to bottom, + rgba(255, 255, 255, 0.3), + rgba(255, 255, 255, 0.05) + ); + border-radius: 30px 30px 30px 30px; +} + +.nav-item { + border: 1px solid #0f0f0f; + border-radius: 5px; + + display: flex; + align-items: center; + margin: auto auto 1px; + width: 93%; + + position: relative; +} + diff --git a/themes/simple/static/css/reset.css b/themes/simple/static/css/reset.css new file mode 100644 index 0000000..10b3fde --- /dev/null +++ b/themes/simple/static/css/reset.css @@ -0,0 +1,52 @@ +/* + Name: Reset Stylesheet + Description: Resets browser's default CSS + Author: Eric Meyer + Author URI: https://meyerweb.com/eric/tools/css/reset/ +*/ + +/* v1.0 | 20080212 */ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + background: transparent; + border: 0; + font-size: 100%; + margin: 0; + outline: 0; + padding: 0; + vertical-align: baseline; +} + +body {line-height: 1;} + +ol, ul {list-style: none;} + +blockquote, q {quotes: none;} + +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} + +/* remember to define focus styles! */ +:focus { + outline: 0; +} + +/* remember to highlight inserts somehow! */ +ins {text-decoration: none;} +del {text-decoration: line-through;} + +/* tables still need 'cellspacing="0"' in the markup */ +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/themes/simple/static/fonts/aerial_2/Aerial_Demo.ttf b/themes/simple/static/fonts/aerial_2/Aerial_Demo.ttf Binary files differnew file mode 100644 index 0000000..c05902b --- /dev/null +++ b/themes/simple/static/fonts/aerial_2/Aerial_Demo.ttf diff --git a/themes/simple/static/fonts/babel_sans/BabelSans-Bold.ttf b/themes/simple/static/fonts/babel_sans/BabelSans-Bold.ttf Binary files differnew file mode 100644 index 0000000..b424125 --- /dev/null +++ b/themes/simple/static/fonts/babel_sans/BabelSans-Bold.ttf diff --git a/themes/simple/static/fonts/babel_sans/BabelSans-BoldOblique.ttf b/themes/simple/static/fonts/babel_sans/BabelSans-BoldOblique.ttf Binary files differnew file mode 100644 index 0000000..4eb381e --- /dev/null +++ b/themes/simple/static/fonts/babel_sans/BabelSans-BoldOblique.ttf diff --git a/themes/simple/static/fonts/babel_sans/BabelSans-Oblique.ttf b/themes/simple/static/fonts/babel_sans/BabelSans-Oblique.ttf Binary files differnew file mode 100644 index 0000000..1e373cf --- /dev/null +++ b/themes/simple/static/fonts/babel_sans/BabelSans-Oblique.ttf diff --git a/themes/simple/static/fonts/babel_sans/BabelSans.ttf b/themes/simple/static/fonts/babel_sans/BabelSans.ttf Binary files differnew file mode 100644 index 0000000..e0f41e7 --- /dev/null +++ b/themes/simple/static/fonts/babel_sans/BabelSans.ttf diff --git a/themes/simple/static/fonts/canela/canela-Bold-TRIAL.otf b/themes/simple/static/fonts/canela/canela-Bold-TRIAL.otf Binary files differnew file mode 100644 index 0000000..5388781 --- /dev/null +++ b/themes/simple/static/fonts/canela/canela-Bold-TRIAL.otf diff --git a/themes/simple/static/fonts/canela/canela-Light-TRIAL.otf b/themes/simple/static/fonts/canela/canela-Light-TRIAL.otf Binary files differnew file mode 100644 index 0000000..0d63838 --- /dev/null +++ b/themes/simple/static/fonts/canela/canela-Light-TRIAL.otf diff --git a/themes/simple/static/fonts/canela/canela-Regular-TRIAL.otf b/themes/simple/static/fonts/canela/canela-Regular-TRIAL.otf Binary files differnew file mode 100644 index 0000000..ca06acf --- /dev/null +++ b/themes/simple/static/fonts/canela/canela-Regular-TRIAL.otf diff --git a/themes/simple/static/fonts/gocake/Gocake.jpg b/themes/simple/static/fonts/gocake/Gocake.jpg Binary files differnew file mode 100644 index 0000000..4ddc512 --- /dev/null +++ b/themes/simple/static/fonts/gocake/Gocake.jpg diff --git a/themes/simple/static/fonts/gocake/Gocake.otf b/themes/simple/static/fonts/gocake/Gocake.otf Binary files differnew file mode 100644 index 0000000..561913e --- /dev/null +++ b/themes/simple/static/fonts/gocake/Gocake.otf diff --git a/themes/simple/static/fonts/gocake/Gocake.ttf b/themes/simple/static/fonts/gocake/Gocake.ttf Binary files differnew file mode 100644 index 0000000..50b1665 --- /dev/null +++ b/themes/simple/static/fonts/gocake/Gocake.ttf diff --git a/themes/simple/static/fonts/gocake/More Info.txt b/themes/simple/static/fonts/gocake/More Info.txt new file mode 100644 index 0000000..4e42afe --- /dev/null +++ b/themes/simple/static/fonts/gocake/More Info.txt @@ -0,0 +1,24 @@ +First of All,
+
+Thank you for download my product.
+This product 100% free for personal use & commercial use
+
+File include :
+
+1. Gocake.ttf
+2. Gocake.otf
+
+More Info :
+
+For Donation:
+paypal.me/jalkhurasan
+
+My OnlineShop:
+https://www.creativefabrica.com/ref/53/
+
+My Portofolio:
+https://www.behance.net/khurasan
+
+My web:
+www.khurasanstudio.com
\ No newline at end of file diff --git a/themes/simple/static/fonts/gocake/Read Me.pdf b/themes/simple/static/fonts/gocake/Read Me.pdf Binary files differnew file mode 100644 index 0000000..4e5ae0f --- /dev/null +++ b/themes/simple/static/fonts/gocake/Read Me.pdf diff --git a/themes/simple/static/images/background.jpg b/themes/simple/static/images/background.jpg Binary files differnew file mode 100755 index 0000000..4e435d7 --- /dev/null +++ b/themes/simple/static/images/background.jpg diff --git a/themes/simple/templates/archives.html b/themes/simple/templates/archives.html new file mode 100644 index 0000000..a61bf3c --- /dev/null +++ b/themes/simple/templates/archives.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - Archives{% endblock %} + +{% block content %} + <h2>Archives for {{ SITENAME }}</h2> + + <dl> + {% for article in dates %} + <dt>{{ article.locale_date }}</dt> + <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd> + {% endfor %} + </dl> +{% endblock %} diff --git a/themes/simple/templates/article.html b/themes/simple/templates/article.html new file mode 100644 index 0000000..a01de10 --- /dev/null +++ b/themes/simple/templates/article.html @@ -0,0 +1,65 @@ +{% extends "base.html" %} +{% block html_lang %}{{ article.lang }}{% endblock %} + +{% block title %}{{ SITENAME|striptags }} - {{ article.title|striptags }}{% endblock %} + +{% block head %} + {{ super() }} + + {% import 'translations.html' as translations with context %} + {% if translations.entry_hreflang(article) %} + {{ translations.entry_hreflang(article) }} + {% endif %} + + {% if article.description %} + <meta name="description" content="{{article.description}}" /> + {% endif %} + + {% for tag in article.tags %} + <meta name="tags" content="{{tag}}" /> + {% endfor %} + +{% endblock %} + +{% block content %} + <article> + <header> + <h2> + <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" + title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} + </header> + {{ article.content }} + <footer> + <p>Published: <time datetime="{{ article.date.isoformat() }}"> + {{ article.locale_date }} + </time></p> + {% if article.modified %} + <p>Last updated: <time datetime="{{ article.modified.isoformat() }}"> + {{ article.locale_modified }} + </time></p> + {% endif %} + {% if article.authors %} + <address> + By {% for author in article.authors %} + <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> + {% endfor %} + </address> + {% endif %} + {% if article.category %} + <p> + Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> + </p> + {% endif %} + {% if article.tags %} + <p> + Tags: + {% for tag in article.tags %} + <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> + {% endfor %} + </p> + {% endif %} + </footer> + </article> +{% endblock %} diff --git a/themes/simple/templates/author.html b/themes/simple/templates/author.html new file mode 100644 index 0000000..06f871d --- /dev/null +++ b/themes/simple/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME|striptags }} - Articles by {{ author }}{% endblock %} + +{% block content_title %} + <h2>Articles by {{ author }}</h2> +{% endblock %} diff --git a/themes/simple/templates/authors.html b/themes/simple/templates/authors.html new file mode 100644 index 0000000..97a7457 --- /dev/null +++ b/themes/simple/templates/authors.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - Authors{% endblock %} + +{% block content %} + <h2>Authors on {{ SITENAME }}</h2> + <ul> + {% for author, articles in authors|sort %} + <li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> +{% endblock %} diff --git a/themes/simple/templates/base.html b/themes/simple/templates/base.html new file mode 100644 index 0000000..f34054f --- /dev/null +++ b/themes/simple/templates/base.html @@ -0,0 +1,108 @@ +<!DOCTYPE html> +<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}"> + <head> + {% block head %} + <title>{% block title %}{{ SITENAME|striptags }}{% endblock title %}</title> + <meta charset="utf-8" /> + <meta name="generator" content="Pelican" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + {% if SITESUBTITLE %} + <meta name="description" content="{{ SITESUBTITLE }}" /> + {% endif %} + {% if CSS_FILE %} + <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}" /> + {% endif %} + {% if STYLESHEET_URL %} + <link rel="stylesheet" type="text/css" href="{{ STYLESHEET_URL }}" /> + {% endif %} + {% if FEED_ALL_ATOM %} + <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} Full Atom Feed" /> + {% endif %} + {% if FEED_ALL_RSS %} + <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME|striptags }} Full RSS Feed" /> + {% endif %} + {% if FEED_ATOM %} + <link href="{{ FEED_DOMAIN }}/{%if FEED_ATOM_URL %}{{ FEED_ATOM_URL }}{% else %}{{ FEED_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} Atom Feed" /> + {% endif %} + {% if FEED_RSS %} + <link href="{{ FEED_DOMAIN }}/{% if FEED_RSS_URL %}{{ FEED_RSS_URL }}{% else %}{{ FEED_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME|striptags }} RSS Feed" /> + {% endif %} + {% if CATEGORY_FEED_ATOM and category %} + <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL.format(slug=category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ category.slug.title() }} Category Atom Feed" /> + {% endif %} + {% if CATEGORY_FEED_RSS and category %} + <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_RSS_URL %}{{ CATEGORY_FEED_RSS_URL.format(slug=category.slug) }}{% else %}{{ CATEGORY_FEED_RSS.format(slug=category.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ category.slug.title() }} Category RSS Feed" /> + {% endif %} + {% if TAG_FEED_ATOM and tag %} + <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_ATOM.format(slug=tag.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ tag.slug.title() }} Tag Atom Feed" /> + {% endif %} + {% if TAG_FEED_RSS and tag %} + <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_RSS.format(slug=tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ tag.slug.title() }} Tag RSS Feed" /> + {% endif %} + {% endblock head %} + </head> + + <body> + {% block body %} + <div id="container"> + <header id="header"> + {% block header %} + <hgroup> + <h1> + <a href="{{ SITEURL }}/">{{ SITENAME }}</a> + </h1> + {% if SITESUBTITLE %} + <p>{{ SITESUBTITLE }}</p>{% endif %}</hgroup> + {% endblock header %} + </header> + <div id="content"> + <aside> + <div id="navs"> + <div class="nav"> + <header> + <span class="nav-title">Website</span> + </header> + <nav aria-label="Navigation: Website"> + {% for title, link in MENUITEMS %} + <a class="nav-item" href="{{ link }}">{{ title }}</a></li> + {% endfor %} + {% if DISPLAY_PAGES_ON_MENU %} + {% for p in pages %} + <a class="nav-item" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a> + {% endfor %} + {% endif %} + {% if DISPLAY_CATEGORIES_ON_MENU %} + {% for cat, null in categories %} + <a class="nav-item" href="{{ SITEURL }}/{{ cat.url }}" {% if cat==category %} aria-current="page" {% endif %}>{{ cat}}</a> + {% endfor %} + {% endif %} + </nav> + </div> + <div class="nav"> + <header> + <span class="nav-title">Links</span> + </header> + <nav aria-label="Navigation: Links"> + {% for name, link in LINKS %} + <a class="nav-item" href="{{link}}">{{ name }}</a> + {% endfor %} + </nav> + </div> + </div> + </aside> + <main> + {% block content %} + {% endblock content %} + </main> + <footer> + {% block footer %} + <address> + Made with <a rel="nofollow" href="https://getpelican.com/">Pelican</a>, + </address> + {% endblock footer %} + </footer> + </div> + </div> + {% endblock body %} + </body> +</html> diff --git a/themes/simple/templates/categories.html b/themes/simple/templates/categories.html new file mode 100644 index 0000000..c723f8a --- /dev/null +++ b/themes/simple/templates/categories.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - Categories{% endblock %} + +{% block content %} + <h2>Categories on {{ SITENAME }}</h2> + <ul> + {% for category, articles in categories|sort %} + <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> +{% endblock %} diff --git a/themes/simple/templates/category.html b/themes/simple/templates/category.html new file mode 100644 index 0000000..bfad391 --- /dev/null +++ b/themes/simple/templates/category.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME|striptags }} - {{ category }} category{% endblock %} + +{% block content_title %} + <h2>Articles in the {{ category }} category</h2> +{% endblock %} diff --git a/themes/simple/templates/index.html b/themes/simple/templates/index.html new file mode 100644 index 0000000..100a720 --- /dev/null +++ b/themes/simple/templates/index.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% block content %} + {% block content_title %} + <h2>All articles</h2> + {% endblock %} + + + {% for article in articles_page.object_list %} + <article> + <header> <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header> + <section>{{ article.summary }}</section> + <footer> + <p>Published: <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time></p> + {%- if article.authors %} + <address>By + {% for author in article.authors %} + <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> + {% endfor %} + </address> + {%- endif %} + </footer> + </article> + {% endfor %} + + {% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} + {% endif %} + +{% endblock content %} diff --git a/themes/simple/templates/page.html b/themes/simple/templates/page.html new file mode 100644 index 0000000..4096e7a --- /dev/null +++ b/themes/simple/templates/page.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} +{% block html_lang %}{{ page.lang }}{% endblock %} + +{% block title %}{{ SITENAME|striptags }} - {{ page.title|striptags }}{%endblock%} + +{% block head %} + {{ super() }} + + {% import 'translations.html' as translations with context %} + {% if translations.entry_hreflang(page) %} + {{ translations.entry_hreflang(page) }} + {% endif %} +{% endblock %} + +{% block content %} + <article> + <header> + <h2>{{ page.title }}</h2> + </header> + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + + {% block page_content %}{{ page.content }}{% endblock page_content %} + + {% if page.modified %} + <footer> + <p> + Last updated: {{ page.locale_modified }} + </p> + </footer> + {% endif %} + </article> +{% endblock %} diff --git a/themes/simple/templates/pagination.html b/themes/simple/templates/pagination.html new file mode 100644 index 0000000..9511fdb --- /dev/null +++ b/themes/simple/templates/pagination.html @@ -0,0 +1,17 @@ +{% if DEFAULT_PAGINATION %} + {% set first_page = articles_paginator.page(1) %} + {% set last_page = articles_paginator.page(articles_paginator.num_pages) %} + <nav> + <ul> + {% if articles_page.has_previous() %} + <li><a href="{{ SITEURL }}/{{ first_page.url }}">⟪</a></li> + <li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">⟨</a></li> + {% endif %} + <li>Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</li> + {% if articles_page.has_next() %} + <li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">⟩</a></li> + <li><a href="{{ SITEURL }}/{{ last_page.url }}">⟫</a></li> + {% endif %} + </ul> + </nav> +{% endif %} diff --git a/themes/simple/templates/period_archives.html b/themes/simple/templates/period_archives.html new file mode 100644 index 0000000..181f493 --- /dev/null +++ b/themes/simple/templates/period_archives.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - {{ period | reverse | join(' ') }} archives{% endblock %} + +{% block content %} + <h2>Archives for {{ period | reverse | join(' ') }}</h2> + + <dl> + {% for article in dates %} + <dt>{{ article.locale_date }}</dt> + <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd> + {% endfor %} + </dl> +{% endblock %} diff --git a/themes/simple/templates/tag.html b/themes/simple/templates/tag.html new file mode 100644 index 0000000..be21778 --- /dev/null +++ b/themes/simple/templates/tag.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME|striptags }} - {{ tag }} tag{% endblock %} + +{% block content_title %} + <h2>Articles tagged with {{ tag }}</h2> +{% endblock %} diff --git a/themes/simple/templates/tags.html b/themes/simple/templates/tags.html new file mode 100644 index 0000000..b21e5b5 --- /dev/null +++ b/themes/simple/templates/tags.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - Tags{% endblock %} + +{% block content %} + <h2>Tags for {{ SITENAME }}</h2> + <ul> + {% for tag, articles in tags|sort %} + <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> +{% endblock %} diff --git a/themes/simple/templates/translations.html b/themes/simple/templates/translations.html new file mode 100644 index 0000000..eed0703 --- /dev/null +++ b/themes/simple/templates/translations.html @@ -0,0 +1,16 @@ +{% macro translations_for(article) %} + {% if article.translations %} + Translations: + {% for translation in article.translations %} + <a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a> + {% endfor %} + {% endif %} +{% endmacro %} + +{% macro entry_hreflang(entry) %} + {% if entry.translations %} + {% for translation in entry.translations %} + <link rel="alternate" hreflang="{{ translation.lang }}" href="{{ SITEURL }}/{{ translation.url }}"> + {% endfor %} + {% endif %} +{% endmacro %} |
