kaka.farm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 339cb0c1b27f192835e65645ba5109a8e60b5029
parent b3f54d6edfe0fa04f96b046b5032ad02a689bafc
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Fri, 19 Jan 2024 08:36:36 +0200

Add a README file and delete unneeded stuff from commonly-forgotten.

Diffstat:
AREADME.md | 10++++++++++
Dcommonly-forgotten/Makefile | 86-------------------------------------------------------------------------------
Dcommonly-forgotten/README.md | 14--------------
Dcommonly-forgotten/_cobalt.yml | 7-------
Dcommonly-forgotten/_defaults/pages.md | 10----------
Dcommonly-forgotten/_defaults/posts.md | 10----------
Dcommonly-forgotten/_layouts/default.liquid | 14--------------
Dcommonly-forgotten/_posts/test.md | 22----------------------
Dcommonly-forgotten/index.md | 10----------
Dcommonly-forgotten/pelicanconf.py | 36------------------------------------
Dcommonly-forgotten/publishconf.py | 26--------------------------
Dcommonly-forgotten/tasks.py | 80-------------------------------------------------------------------------------
Dcommonly-forgotten/themes/fixed-simple/templates/archives.html | 14--------------
Dcommonly-forgotten/themes/fixed-simple/templates/article.html | 67-------------------------------------------------------------------
Dcommonly-forgotten/themes/fixed-simple/templates/author.html | 8--------
Dcommonly-forgotten/themes/fixed-simple/templates/authors.html | 12------------
Dcommonly-forgotten/themes/fixed-simple/templates/base.html | 62--------------------------------------------------------------
Dcommonly-forgotten/themes/fixed-simple/templates/categories.html | 12------------
Dcommonly-forgotten/themes/fixed-simple/templates/category.html | 8--------
Dcommonly-forgotten/themes/fixed-simple/templates/gosquared.html | 14--------------
Dcommonly-forgotten/themes/fixed-simple/templates/index.html | 28----------------------------
Dcommonly-forgotten/themes/fixed-simple/templates/page.html | 27---------------------------
Dcommonly-forgotten/themes/fixed-simple/templates/pagination.html | 11-----------
Dcommonly-forgotten/themes/fixed-simple/templates/period_archives.html | 14--------------
Dcommonly-forgotten/themes/fixed-simple/templates/tag.html | 7-------
Dcommonly-forgotten/themes/fixed-simple/templates/tags.html | 12------------
Dcommonly-forgotten/themes/fixed-simple/templates/translations.html | 16----------------
27 files changed, 10 insertions(+), 627 deletions(-)

diff --git a/README.md b/README.md @@ -0,0 +1,10 @@ +I forget, so I write. (Previously "Commonly Forgotten") + +Main repository: + +<https://kaka.farm/stagit/kaka.farm/log.html> + +Mirror repositories: + +- <https://codeberg.org/kakafarm/kaka.farm/> +- <https://git.sr.ht/~kakafarm/kaka.farm/> diff --git a/commonly-forgotten/Makefile b/commonly-forgotten/Makefile @@ -1,86 +0,0 @@ -PY?=python3 -PELICAN?=pelican -PELICANOPTS=--theme-path themes/fixed-simple - -BASEDIR=$(CURDIR) -INPUTDIR=$(BASEDIR)/content -OUTPUTDIR=$(BASEDIR)/output -CONFFILE=$(BASEDIR)/pelicanconf.py -PUBLISHCONF=$(BASEDIR)/publishconf.py - -SSH_HOST=kaka.farm -SSH_PORT=22 -SSH_USER=commonly-forgotten -SSH_TARGET_DIR=/home/commonly-forgotten/public_html - - -DEBUG ?= 0 -ifeq ($(DEBUG), 1) - PELICANOPTS += -D -endif - -RELATIVE ?= 0 -ifeq ($(RELATIVE), 1) - PELICANOPTS += --relative-urls -endif - -help: - @echo 'Makefile for a pelican Web site ' - @echo ' ' - @echo 'Usage: ' - @echo ' make html (re)generate the web site ' - @echo ' make clean remove the generated files ' - @echo ' make regenerate regenerate files upon modification ' - @echo ' make publish generate using production settings ' - @echo ' make serve [PORT=8000] serve site at http://localhost:8000' - @echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 ' - @echo ' make devserver [PORT=8000] serve and regenerate together ' - @echo ' make ssh_upload upload the web site via SSH ' - @echo ' make rsync_upload upload the web site via rsync+ssh ' - @echo ' ' - @echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html ' - @echo 'Set the RELATIVE variable to 1 to enable relative urls ' - @echo ' ' - -html: - $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) - -clean: - [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR) - -regenerate: - $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) - -serve: -ifdef PORT - $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -else - $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -endif - -serve-global: -ifdef SERVER - $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b $(SERVER) -else - $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b 0.0.0.0 -endif - - -devserver: -ifdef PORT - $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -else - $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -endif - -publish: - $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) - -ssh_upload: publish - scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) - -rsync_upload: publish - rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --cvs-exclude --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) - - -.PHONY: html help clean regenerate serve serve-global devserver stopserver publish ssh_upload rsync_upload diff --git a/commonly-forgotten/README.md b/commonly-forgotten/README.md @@ -1,14 +0,0 @@ -title: About. - -commonly-forgotten -================== - -I forget, so I write. - -Main repository: - -<https://codeberg.org/yuvallangerontheroad/commonly-forgotten> - -Mirror repositories: - -<https://gitlab.com/yuvallangerontheroad/commonly-forgotten> diff --git a/commonly-forgotten/_cobalt.yml b/commonly-forgotten/_cobalt.yml @@ -1,7 +0,0 @@ - -site: - title: cobalt blog - description: Blog Posts Go Here - base_url: http://kaka.farm -posts: - rss: rss.xml diff --git a/commonly-forgotten/_defaults/pages.md b/commonly-forgotten/_defaults/pages.md @@ -1,10 +0,0 @@ ---- -layout: default.liquid ---- -## Blog! - -{% for post in collections.posts.pages %} -#### {{post.title}} - -[{{ post.title }}]({{ post.permalink }}) -{% endfor %} diff --git a/commonly-forgotten/_defaults/posts.md b/commonly-forgotten/_defaults/posts.md @@ -1,10 +0,0 @@ ---- -layout: default.liquid - -title: First Post -is_draft: true ---- - -# This is our first Post! - -Welcome to the first post ever on cobalt.rs! diff --git a/commonly-forgotten/_layouts/default.liquid b/commonly-forgotten/_layouts/default.liquid @@ -1,14 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>{{ page.title }}</title> - </head> - <body> - <!-- A web hipster told me to centralize with the following top div style --> - <div style="max-width: 920px; margin: auto; padding: 20px;"> - <h2>{{ page.title }}</h2> - {{ page.content }} - </div> - </body> -</html> diff --git a/commonly-forgotten/_posts/test.md b/commonly-forgotten/_posts/test.md @@ -1,22 +0,0 @@ ---- -title: "Test Page" -published: false -layout: post -category: test -tags: -- yolk -- exoskeleton -- test ---- - -# Test # - -Lorem ipsum... - -### Stuff - -More stuff - -### Yolk - -Exoskeleton... diff --git a/commonly-forgotten/index.md b/commonly-forgotten/index.md @@ -1,10 +0,0 @@ ---- -layout: default.liquid ---- -## Blog! - -{% for post in collections.posts.pages %} -#### {{post.title}} - -[{{ post.title }}]({{ post.permalink }}) -{% endfor %} diff --git a/commonly-forgotten/pelicanconf.py b/commonly-forgotten/pelicanconf.py @@ -1,35 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- # -from __future__ import unicode_literals - -AUTHOR = 'Yuval Langer' -SITENAME = 'Commonly Forgotten' -SITEURL = '' - -PATH = 'content' - -TIMEZONE = 'Asia/Jerusalem' - -DEFAULT_LANG = 'en' - -# Feed generation is usually not desired when developing -FEED_ALL_ATOM = None -CATEGORY_FEED_ATOM = None -TRANSLATION_FEED_ATOM = None -AUTHOR_FEED_ATOM = None -AUTHOR_FEED_RSS = None - -# Blogroll -LINKS = (('Pelican', 'http://getpelican.com/'), - ('Python.org', 'http://python.org/'), - ('Jinja2', 'http://jinja.pocoo.org/'), - ('You can modify those links in your config file', '#'),) - -# Social widget -SOCIAL = (('You can add links in your config file', '#'), - ('Another social link', '#'),) - -DEFAULT_PAGINATION = 10 - -# Uncomment following line if you want document-relative URLs when developing -#RELATIVE_URLS = True -\ No newline at end of file diff --git a/commonly-forgotten/publishconf.py b/commonly-forgotten/publishconf.py @@ -1,25 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- # -from __future__ import unicode_literals - -# This file is only used if you use `make publish` or -# explicitly specify it as your config file. - -import os -import sys -sys.path.append(os.curdir) -from pelicanconf import * - -# If your site is available via HTTPS, make sure SITEURL begins with https:// -SITEURL = 'https://kaka.farm/~commonly-forgotten' -RELATIVE_URLS = False - -FEED_ALL_ATOM = 'feeds/all.atom.xml' -CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml' - -DELETE_OUTPUT_DIRECTORY = True - -# Following items are often useful when publishing - -#DISQUS_SITENAME = "" -#GOOGLE_ANALYTICS = "" -\ No newline at end of file diff --git a/commonly-forgotten/tasks.py b/commonly-forgotten/tasks.py @@ -1,80 +0,0 @@ -# -*- coding: utf-8 -*- - -import os -import shutil -import sys -import datetime - -from invoke import task -from invoke.util import cd -from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer - -CONFIG = { - # Local path configuration (can be absolute or relative to tasks.py) - 'deploy_path': 'output', - # Remote server configuration - 'production': 'commonly-forgotten@kaka.farm:22', - 'dest_path': '/home/commonly-forgotten/public_html', - # Port for `serve` - 'port': 8000, -} - -@task -def clean(c): - """Remove generated files""" - if os.path.isdir(CONFIG['deploy_path']): - shutil.rmtree(CONFIG['deploy_path']) - os.makedirs(CONFIG['deploy_path']) - -@task -def build(c): - """Build local version of site""" - c.run('pelican -s pelicanconf.py') - -@task -def rebuild(c): - """`build` with the delete switch""" - c.run('pelican -d -s pelicanconf.py') - -@task -def regenerate(c): - """Automatically regenerate site upon file modification""" - c.run('pelican -r -s pelicanconf.py') - -@task -def serve(c): - """Serve site at http://localhost:8000/""" - - class AddressReuseTCPServer(RootedHTTPServer): - allow_reuse_address = True - - server = AddressReuseTCPServer( - CONFIG['deploy_path'], - ('', CONFIG['port']), - ComplexHTTPRequestHandler) - - sys.stderr.write('Serving on port {port} ...\n'.format(**CONFIG)) - server.serve_forever() - -@task -def reserve(c): - """`build`, then `serve`""" - build(c) - serve(c) - -@task -def preview(c): - """Build production version of site""" - c.run('pelican -s publishconf.py') - - -@task -def publish(c): - """Publish to production via rsync""" - c.run('pelican -s publishconf.py') - c.run( - 'rsync --delete --exclude ".DS_Store" -pthrvz -c ' - '{} {production}:{dest_path}'.format( - CONFIG['deploy_path'].rstrip('/') + '/', - **CONFIG)) - diff --git a/commonly-forgotten/themes/fixed-simple/templates/archives.html b/commonly-forgotten/themes/fixed-simple/templates/archives.html @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ SITENAME }} - Archives{% endblock %} - -{% block content %} -<h1>Archives for {{ SITENAME }}</h1> - -<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/commonly-forgotten/themes/fixed-simple/templates/article.html b/commonly-forgotten/themes/fixed-simple/templates/article.html @@ -1,67 +0,0 @@ -{% extends "base.html" %} -{% block html_lang %}{{ article.lang }}{% endblock %} - -{% block title %}{{ SITENAME }} - {{ article.title }}{% 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 %} -<section id="content" class="body"> - <header> - <h2 class="entry-title"> - <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> - <footer class="post-info"> - <time class="published" datetime="{{ article.date.isoformat() }}"> - {{ article.locale_date }} - </time> - {% if article.modified %} - <time class="modified" datetime="{{ article.modified.isoformat() }}"> - {{ article.locale_modified }} - </time> - {% endif %} - {% if article.authors %} - <address class="vcard author"> - By {% for author in article.authors %} - <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> - {% endfor %} - </address> - {% endif %} - {% if article.category %} - <div class="category"> - Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> - </div> - {% endif %} - {% if article.tags %} - <div class="tags"> - Tags: - {% for tag in article.tags %} - <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> - {% endfor %} - </div> - {% endif %} - </footer><!-- /.post-info --> - <div class="entry-content"> - {{ article.content }} - </div><!-- /.entry-content --> -</section> -{% endblock %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/author.html b/commonly-forgotten/themes/fixed-simple/templates/author.html @@ -1,8 +0,0 @@ -{% extends "index.html" %} - -{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} - -{% block content_title %} -<h2>Articles by {{ author }}</h2> -{% endblock %} - diff --git a/commonly-forgotten/themes/fixed-simple/templates/authors.html b/commonly-forgotten/themes/fixed-simple/templates/authors.html @@ -1,12 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ SITENAME }} - Authors{% endblock %} - -{% block content %} - <h1>Authors on {{ SITENAME }}</h1> - <ul> - {% for author, articles in authors|sort %} - <li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li> - {% endfor %} - </ul> -{% endblock %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/base.html b/commonly-forgotten/themes/fixed-simple/templates/base.html @@ -1,62 +0,0 @@ -<!DOCTYPE html> -<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}"> -<head> - {% block head %} - <title>{% block title %}{{ SITENAME }}{% endblock title %}</title> - <meta charset="utf-8" /> - {% 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 }} 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 }} 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 }} 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 }} 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="{{ SITENAME }} Categories 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="{{ SITENAME }} Categories 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="{{ SITENAME }} Tags 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="{{ SITENAME }} Tags RSS Feed" /> - {% endif %} - {% endblock head %} -</head> - -<body id="index" class="home"> - <header id="banner" class="body"> - <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1> - </header><!-- /#banner --> - <nav id="menu"><ul> - {% for title, link in MENUITEMS %} - <li><a href="{{ link }}">{{ title }}</a></li> - {% endfor %} - {% if DISPLAY_PAGES_ON_MENU %} - {% for p in pages %} - <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> - {% endfor %} - {% endif %} - {% if DISPLAY_CATEGORIES_ON_MENU %} - {% for cat, null in categories %} - <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> - {% endfor %} - {% endif %} - </ul></nav><!-- /#menu --> - {% block content %} - {% endblock %} - <footer id="contentinfo" class="body"> - <address id="about" class="vcard body"> - Proudly powered by <a href="http://getpelican.com/">Pelican</a>, - which takes great advantage of <a href="http://python.org">Python</a>. - </address><!-- /#about --> - </footer><!-- /#contentinfo --> -</body> -</html> diff --git a/commonly-forgotten/themes/fixed-simple/templates/categories.html b/commonly-forgotten/themes/fixed-simple/templates/categories.html @@ -1,12 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ SITENAME }} - Categories{% endblock %} - -{% block content %} - <h1>Categories on {{ SITENAME }}</h1> - <ul> - {% for category, articles in categories|sort %} - <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li> - {% endfor %} - </ul> -{% endblock %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/category.html b/commonly-forgotten/themes/fixed-simple/templates/category.html @@ -1,8 +0,0 @@ -{% extends "index.html" %} - -{% block title %}{{ SITENAME }} - {{ category }} category{% endblock %} - -{% block content_title %} -<h2>Articles in the {{ category }} category</h2> -{% endblock %} - diff --git a/commonly-forgotten/themes/fixed-simple/templates/gosquared.html b/commonly-forgotten/themes/fixed-simple/templates/gosquared.html @@ -1,14 +0,0 @@ -{% if GOSQUARED_SITENAME %} -<script type="text/javascript"> - var GoSquared={}; - GoSquared.acct = "{{ GOSQUARED_SITENAME }}"; - (function(w){ - function gs(){ - w._gstc_lt=+(new Date); var d=document; - var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "https://d1l6p2sc9645hc.cloudfront.net/tracker.js"; - var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s); - } - w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs); - })(window); -</script> -{% endif %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/index.html b/commonly-forgotten/themes/fixed-simple/templates/index.html @@ -1,28 +0,0 @@ -{% extends "base.html" %} -{% block content %} -<section id="content"> -{% block content_title %} -<h2>All articles</h2> -{% endblock %} - -<ol id="post-list"> -{% for article in articles_page.object_list %} - <li><article class="hentry"> - <header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header> - <footer class="post-info"> - <time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> - <address class="vcard author">By - {% for author in article.authors %} - <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> - {% endfor %} - </address> - </footer><!-- /.post-info --> - <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> - </article></li> -{% endfor %} -</ol><!-- /#posts-list --> -{% if articles_page.has_other_pages() %} - {% include 'pagination.html' %} -{% endif %} -</section><!-- /#content --> -{% endblock content %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/page.html b/commonly-forgotten/themes/fixed-simple/templates/page.html @@ -1,27 +0,0 @@ -{% extends "base.html" %} -{% block html_lang %}{{ page.lang }}{% endblock %} - -{% block title %}{{ SITENAME }} - {{ page.title }}{%endblock%} - -{% block head %} - {{ super() }} - - {% import 'translations.html' as translations with context %} - {% if translations.entry_hreflang(page) %} - {{ translations.entry_hreflang(page) }} - {% endif %} -{% endblock %} - -{% block content %} - <h1>{{ page.title }}</h1> - {% import 'translations.html' as translations with context %} - {{ translations.translations_for(page) }} - - {{ page.content }} - - {% if page.modified %} - <p> - Last updated: {{ page.locale_modified }} - </p> - {% endif %} -{% endblock %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/pagination.html b/commonly-forgotten/themes/fixed-simple/templates/pagination.html @@ -1,11 +0,0 @@ -{% if DEFAULT_PAGINATION %} -<p class="paginator"> - {% if articles_page.has_previous() %} - <a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&laquo;</a> - {% endif %} - Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} - {% if articles_page.has_next() %} - <a href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a> - {% endif %} -</p> -{% endif %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/period_archives.html b/commonly-forgotten/themes/fixed-simple/templates/period_archives.html @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ SITENAME }} - {{ period | reverse | join(' ') }} archives{% endblock %} - -{% block content %} -<h1>Archives for {{ period | reverse | join(' ') }}</h1> - -<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/commonly-forgotten/themes/fixed-simple/templates/tag.html b/commonly-forgotten/themes/fixed-simple/templates/tag.html @@ -1,7 +0,0 @@ -{% extends "index.html" %} - -{% block title %}{{ SITENAME }} - {{ tag }} tag{% endblock %} - -{% block content_title %} -<h2>Articles tagged with {{ tag }}</h2> -{% endblock %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/tags.html b/commonly-forgotten/themes/fixed-simple/templates/tags.html @@ -1,12 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ SITENAME }} - Tags{% endblock %} - -{% block content %} - <h1>Tags for {{ SITENAME }}</h1> - <ul> - {% for tag, articles in tags|sort %} - <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> - {% endfor %} - </ul> -{% endblock %} diff --git a/commonly-forgotten/themes/fixed-simple/templates/translations.html b/commonly-forgotten/themes/fixed-simple/templates/translations.html @@ -1,16 +0,0 @@ -{% 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 %}