diff --git a/content/index.md b/content/index.md deleted file mode 100644 index 04dc0e1..0000000 --- a/content/index.md +++ /dev/null @@ -1,10 +0,0 @@ -Title: My super title -Date: 2010-12-03 10:20 -Modified: 2010-12-05 19:30 -Category: Python -Tags: pelican, publishing -Slug: my-super-post -Authors: Alexis Metaireau, Conan Doyle -Summary: Short version for index and feeds - -This is the content of my super blog post. diff --git a/content/posts/루트에 대한, 대화/00000000-4064-500x750.jpg b/content/posts/루트에 대한, 대화/00000000-4064-500x750.jpg new file mode 100644 index 0000000..0356511 Binary files /dev/null and b/content/posts/루트에 대한, 대화/00000000-4064-500x750.jpg differ diff --git a/content/posts/루트에 대한, 대화/00000000-4077-500x333.jpg b/content/posts/루트에 대한, 대화/00000000-4077-500x333.jpg new file mode 100644 index 0000000..09314c2 Binary files /dev/null and b/content/posts/루트에 대한, 대화/00000000-4077-500x333.jpg differ diff --git a/content/posts/루트에 대한, 대화/00000000-4082-500x333.jpg b/content/posts/루트에 대한, 대화/00000000-4082-500x333.jpg new file mode 100644 index 0000000..7ea105b Binary files /dev/null and b/content/posts/루트에 대한, 대화/00000000-4082-500x333.jpg differ diff --git a/content/posts/루트에 대한, 대화/00000000-4083-500x333.jpg b/content/posts/루트에 대한, 대화/00000000-4083-500x333.jpg new file mode 100644 index 0000000..9203f35 Binary files /dev/null and b/content/posts/루트에 대한, 대화/00000000-4083-500x333.jpg differ diff --git a/content/posts/루트에 대한, 대화/00000000-4115-500x750.jpg b/content/posts/루트에 대한, 대화/00000000-4115-500x750.jpg new file mode 100644 index 0000000..5670224 Binary files /dev/null and b/content/posts/루트에 대한, 대화/00000000-4115-500x750.jpg differ diff --git a/content/posts/루트에 대한, 대화/루트에 대한, 대화.rst b/content/posts/루트에 대한, 대화/루트에 대한, 대화.rst new file mode 100644 index 0000000..1cbc49a --- /dev/null +++ b/content/posts/루트에 대한, 대화/루트에 대한, 대화.rst @@ -0,0 +1,33 @@ +루트에 대한, 대화 +================================== + +:date: 2021-03-18 10:00 +:tags: portfolio +:category: works +:slug: conversation-about-the-root + +루트에 대한, 대화 | Conversation about the ROOT +March 2021 + +Sound Object Installation +@SeMA 창고 서울 시립 미술관 | SeMA Storage Seoul Museum of Art + +.. image:: {attach}00000000-4064-500x750.jpg + :alt: alternate text + :class: abc + +.. image:: {attach}00000000-4077-500x333.jpg + :alt: alternate text + :class: abc + +.. image:: {attach}00000000-4082-500x333.jpg + :alt: alternate text + :class: abc + +.. image:: {attach}00000000-4083-500x333.jpg + :alt: alternate text + :class: abc + +.. image:: {attach}00000000-4115-500x750.jpg + :alt: alternate text + :class: abc diff --git a/pelicanconf.py b/pelicanconf.py index 7bcfdd6..733ad2b 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -28,4 +28,155 @@ SOCIAL = (('You can add links in your config file', '#'), DEFAULT_PAGINATION = 10 # Uncomment following line if you want document-relative URLs when developing -#RELATIVE_URLS = True \ No newline at end of file +#RELATIVE_URLS = True + + + +# DEFAULT settings (from pelican/pelican/settings.py) +# i.e. -> if you don't say sth. then following will take action. + +# DEFAULT_THEME = os.path.join(os.path.dirname(os.path.abspath(__file__)), +# 'themes', 'notmyidea') +# DEFAULT_CONFIG = { +# 'PATH': os.curdir, +# 'ARTICLE_PATHS': [''], +# 'ARTICLE_EXCLUDES': [], +# 'PAGE_PATHS': ['pages'], +# 'PAGE_EXCLUDES': [], +# 'THEME': DEFAULT_THEME, +# 'OUTPUT_PATH': 'output', +# 'READERS': {}, +# 'STATIC_PATHS': ['images'], +# 'STATIC_EXCLUDES': [], +# 'STATIC_EXCLUDE_SOURCES': True, +# 'THEME_STATIC_DIR': 'theme', +# 'THEME_STATIC_PATHS': ['static', ], +# 'FEED_ALL_ATOM': 'feeds/all.atom.xml', +# 'CATEGORY_FEED_ATOM': 'feeds/{slug}.atom.xml', +# 'AUTHOR_FEED_ATOM': 'feeds/{slug}.atom.xml', +# 'AUTHOR_FEED_RSS': 'feeds/{slug}.rss.xml', +# 'TRANSLATION_FEED_ATOM': 'feeds/all-{lang}.atom.xml', +# 'FEED_MAX_ITEMS': '', +# 'RSS_FEED_SUMMARY_ONLY': True, +# 'SITEURL': '', +# 'SITENAME': 'A Pelican Blog', +# 'DISPLAY_PAGES_ON_MENU': True, +# 'DISPLAY_CATEGORIES_ON_MENU': True, +# 'DOCUTILS_SETTINGS': {}, +# 'OUTPUT_SOURCES': False, +# 'OUTPUT_SOURCES_EXTENSION': '.text', +# 'USE_FOLDER_AS_CATEGORY': True, +# 'DEFAULT_CATEGORY': 'misc', +# 'WITH_FUTURE_DATES': True, +# 'CSS_FILE': 'main.css', +# 'NEWEST_FIRST_ARCHIVES': True, +# 'REVERSE_CATEGORY_ORDER': False, +# 'DELETE_OUTPUT_DIRECTORY': False, +# 'OUTPUT_RETENTION': [], +# 'INDEX_SAVE_AS': 'index.html', +# 'ARTICLE_URL': '{slug}.html', +# 'ARTICLE_SAVE_AS': '{slug}.html', +# 'ARTICLE_ORDER_BY': 'reversed-date', +# 'ARTICLE_LANG_URL': '{slug}-{lang}.html', +# 'ARTICLE_LANG_SAVE_AS': '{slug}-{lang}.html', +# 'DRAFT_URL': 'drafts/{slug}.html', +# 'DRAFT_SAVE_AS': 'drafts/{slug}.html', +# 'DRAFT_LANG_URL': 'drafts/{slug}-{lang}.html', +# 'DRAFT_LANG_SAVE_AS': 'drafts/{slug}-{lang}.html', +# 'PAGE_URL': 'pages/{slug}.html', +# 'PAGE_SAVE_AS': 'pages/{slug}.html', +# 'PAGE_ORDER_BY': 'basename', +# 'PAGE_LANG_URL': 'pages/{slug}-{lang}.html', +# 'PAGE_LANG_SAVE_AS': 'pages/{slug}-{lang}.html', +# 'DRAFT_PAGE_URL': 'drafts/pages/{slug}.html', +# 'DRAFT_PAGE_SAVE_AS': 'drafts/pages/{slug}.html', +# 'DRAFT_PAGE_LANG_URL': 'drafts/pages/{slug}-{lang}.html', +# 'DRAFT_PAGE_LANG_SAVE_AS': 'drafts/pages/{slug}-{lang}.html', +# 'STATIC_URL': '{path}', +# 'STATIC_SAVE_AS': '{path}', +# 'STATIC_CREATE_LINKS': False, +# 'STATIC_CHECK_IF_MODIFIED': False, +# 'CATEGORY_URL': 'category/{slug}.html', +# 'CATEGORY_SAVE_AS': 'category/{slug}.html', +# 'TAG_URL': 'tag/{slug}.html', +# 'TAG_SAVE_AS': 'tag/{slug}.html', +# 'AUTHOR_URL': 'author/{slug}.html', +# 'AUTHOR_SAVE_AS': 'author/{slug}.html', +# 'PAGINATION_PATTERNS': [ +# (1, '{name}{extension}', '{name}{extension}'), +# (2, '{name}{number}{extension}', '{name}{number}{extension}'), +# ], +# 'YEAR_ARCHIVE_URL': '', +# 'YEAR_ARCHIVE_SAVE_AS': '', +# 'MONTH_ARCHIVE_URL': '', +# 'MONTH_ARCHIVE_SAVE_AS': '', +# 'DAY_ARCHIVE_URL': '', +# 'DAY_ARCHIVE_SAVE_AS': '', +# 'RELATIVE_URLS': False, +# 'DEFAULT_LANG': 'en', +# 'ARTICLE_TRANSLATION_ID': 'slug', +# 'PAGE_TRANSLATION_ID': 'slug', +# 'DIRECT_TEMPLATES': ['index', 'tags', 'categories', 'authors', 'archives'], +# 'THEME_TEMPLATES_OVERRIDES': [], +# 'PAGINATED_TEMPLATES': {'index': None, 'tag': None, 'category': None, +# 'author': None}, +# 'PELICAN_CLASS': 'pelican.Pelican', +# 'DEFAULT_DATE_FORMAT': '%a %d %B %Y', +# 'DATE_FORMATS': {}, +# 'MARKDOWN': { +# 'extension_configs': { +# 'markdown.extensions.codehilite': {'css_class': 'highlight'}, +# 'markdown.extensions.extra': {}, +# 'markdown.extensions.meta': {}, +# }, +# 'output_format': 'html5', +# }, +# 'JINJA_FILTERS': {}, +# 'JINJA_GLOBALS': {}, +# 'JINJA_TESTS': {}, +# 'JINJA_ENVIRONMENT': { +# 'trim_blocks': True, +# 'lstrip_blocks': True, +# 'extensions': [], +# }, +# 'LOG_FILTER': [], +# 'LOCALE': [''], # defaults to user locale +# 'DEFAULT_PAGINATION': False, +# 'DEFAULT_ORPHANS': 0, +# 'DEFAULT_METADATA': {}, +# 'FILENAME_METADATA': r'(?P\d{4}-\d{2}-\d{2}).*', +# 'PATH_METADATA': '', +# 'EXTRA_PATH_METADATA': {}, +# 'ARTICLE_PERMALINK_STRUCTURE': '', +# 'TYPOGRIFY': False, +# 'TYPOGRIFY_IGNORE_TAGS': [], +# 'TYPOGRIFY_DASHES': 'default', +# 'SUMMARY_END_SUFFIX': '…', +# 'SUMMARY_MAX_LENGTH': 50, +# 'PLUGIN_PATHS': [], +# 'PLUGINS': None, +# 'PYGMENTS_RST_OPTIONS': {}, +# 'TEMPLATE_PAGES': {}, +# 'TEMPLATE_EXTENSIONS': ['.html'], +# 'IGNORE_FILES': ['.#*'], +# 'SLUG_REGEX_SUBSTITUTIONS': [ +# (r'[^\w\s-]', ''), # remove non-alphabetical/whitespace/'-' chars +# (r'(?u)\A\s*', ''), # strip leading whitespace +# (r'(?u)\s*\Z', ''), # strip trailing whitespace +# (r'[-\s]+', '-'), # reduce multiple whitespace or '-' to single '-' +# ], +# 'INTRASITE_LINK_REGEX': '[{|](?P.*?)[|}]', +# 'SLUGIFY_SOURCE': 'title', +# 'SLUGIFY_USE_UNICODE': False, +# 'SLUGIFY_PRESERVE_CASE': False, +# 'CACHE_CONTENT': False, +# 'CONTENT_CACHING_LAYER': 'reader', +# 'CACHE_PATH': 'cache', +# 'GZIP_CACHE': True, +# 'CHECK_MODIFIED_METHOD': 'mtime', +# 'LOAD_CONTENT_CACHE': False, +# 'WRITE_SELECTED': [], +# 'FORMATTED_FIELDS': ['summary'], +# 'PORT': 8000, +# 'BIND': '127.0.0.1', +# } diff --git a/publishconf.py b/publishconf.py index b01cf34..875b831 100644 --- a/publishconf.py +++ b/publishconf.py @@ -15,7 +15,165 @@ CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml' DELETE_OUTPUT_DIRECTORY = True +THEME = "./themes/simple" + +#FILENAME_METADATA = r'(?P.*)' +#PATH_METADATA = r'.*/(?P<title>.*)' + +#PATH_METADATA = r'.*/(?P<category>[^/]*)/(?P<date>(?P<slug>\d{8}T\d{6})[+-]\d{4})_(?P<title>.*)/.*' + + # Following items are often useful when publishing #DISQUS_SITENAME = "" -#GOOGLE_ANALYTICS = "" \ No newline at end of file +#GOOGLE_ANALYTICS = "" + + +# DEFAULT settings (from pelican/pelican/settings.py) +# i.e. -> if you don't say sth. then following will take action. + +# DEFAULT_THEME = os.path.join(os.path.dirname(os.path.abspath(__file__)), +# 'themes', 'notmyidea') +# DEFAULT_CONFIG = { +# 'PATH': os.curdir, +# 'ARTICLE_PATHS': [''], +# 'ARTICLE_EXCLUDES': [], +# 'PAGE_PATHS': ['pages'], +# 'PAGE_EXCLUDES': [], +# 'THEME': DEFAULT_THEME, +# 'OUTPUT_PATH': 'output', +# 'READERS': {}, +# 'STATIC_PATHS': ['images'], +# 'STATIC_EXCLUDES': [], +# 'STATIC_EXCLUDE_SOURCES': True, +# 'THEME_STATIC_DIR': 'theme', +# 'THEME_STATIC_PATHS': ['static', ], +# 'FEED_ALL_ATOM': 'feeds/all.atom.xml', +# 'CATEGORY_FEED_ATOM': 'feeds/{slug}.atom.xml', +# 'AUTHOR_FEED_ATOM': 'feeds/{slug}.atom.xml', +# 'AUTHOR_FEED_RSS': 'feeds/{slug}.rss.xml', +# 'TRANSLATION_FEED_ATOM': 'feeds/all-{lang}.atom.xml', +# 'FEED_MAX_ITEMS': '', +# 'RSS_FEED_SUMMARY_ONLY': True, +# 'SITEURL': '', +# 'SITENAME': 'A Pelican Blog', +# 'DISPLAY_PAGES_ON_MENU': True, +# 'DISPLAY_CATEGORIES_ON_MENU': True, +# 'DOCUTILS_SETTINGS': {}, +# 'OUTPUT_SOURCES': False, +# 'OUTPUT_SOURCES_EXTENSION': '.text', +# 'USE_FOLDER_AS_CATEGORY': True, +# 'DEFAULT_CATEGORY': 'misc', +# 'WITH_FUTURE_DATES': True, +# 'CSS_FILE': 'main.css', +# 'NEWEST_FIRST_ARCHIVES': True, +# 'REVERSE_CATEGORY_ORDER': False, +# 'DELETE_OUTPUT_DIRECTORY': False, +# 'OUTPUT_RETENTION': [], +# 'INDEX_SAVE_AS': 'index.html', +# 'ARTICLE_URL': '{slug}.html', +# 'ARTICLE_SAVE_AS': '{slug}.html', +# 'ARTICLE_ORDER_BY': 'reversed-date', +# 'ARTICLE_LANG_URL': '{slug}-{lang}.html', +# 'ARTICLE_LANG_SAVE_AS': '{slug}-{lang}.html', +# 'DRAFT_URL': 'drafts/{slug}.html', +# 'DRAFT_SAVE_AS': 'drafts/{slug}.html', +# 'DRAFT_LANG_URL': 'drafts/{slug}-{lang}.html', +# 'DRAFT_LANG_SAVE_AS': 'drafts/{slug}-{lang}.html', +# 'PAGE_URL': 'pages/{slug}.html', +# 'PAGE_SAVE_AS': 'pages/{slug}.html', +# 'PAGE_ORDER_BY': 'basename', +# 'PAGE_LANG_URL': 'pages/{slug}-{lang}.html', +# 'PAGE_LANG_SAVE_AS': 'pages/{slug}-{lang}.html', +# 'DRAFT_PAGE_URL': 'drafts/pages/{slug}.html', +# 'DRAFT_PAGE_SAVE_AS': 'drafts/pages/{slug}.html', +# 'DRAFT_PAGE_LANG_URL': 'drafts/pages/{slug}-{lang}.html', +# 'DRAFT_PAGE_LANG_SAVE_AS': 'drafts/pages/{slug}-{lang}.html', +# 'STATIC_URL': '{path}', +# 'STATIC_SAVE_AS': '{path}', +# 'STATIC_CREATE_LINKS': False, +# 'STATIC_CHECK_IF_MODIFIED': False, +# 'CATEGORY_URL': 'category/{slug}.html', +# 'CATEGORY_SAVE_AS': 'category/{slug}.html', +# 'TAG_URL': 'tag/{slug}.html', +# 'TAG_SAVE_AS': 'tag/{slug}.html', +# 'AUTHOR_URL': 'author/{slug}.html', +# 'AUTHOR_SAVE_AS': 'author/{slug}.html', +# 'PAGINATION_PATTERNS': [ +# (1, '{name}{extension}', '{name}{extension}'), +# (2, '{name}{number}{extension}', '{name}{number}{extension}'), +# ], +# 'YEAR_ARCHIVE_URL': '', +# 'YEAR_ARCHIVE_SAVE_AS': '', +# 'MONTH_ARCHIVE_URL': '', +# 'MONTH_ARCHIVE_SAVE_AS': '', +# 'DAY_ARCHIVE_URL': '', +# 'DAY_ARCHIVE_SAVE_AS': '', +# 'RELATIVE_URLS': False, +# 'DEFAULT_LANG': 'en', +# 'ARTICLE_TRANSLATION_ID': 'slug', +# 'PAGE_TRANSLATION_ID': 'slug', +# 'DIRECT_TEMPLATES': ['index', 'tags', 'categories', 'authors', 'archives'], +# 'THEME_TEMPLATES_OVERRIDES': [], +# 'PAGINATED_TEMPLATES': {'index': None, 'tag': None, 'category': None, +# 'author': None}, +# 'PELICAN_CLASS': 'pelican.Pelican', +# 'DEFAULT_DATE_FORMAT': '%a %d %B %Y', +# 'DATE_FORMATS': {}, +# 'MARKDOWN': { +# 'extension_configs': { +# 'markdown.extensions.codehilite': {'css_class': 'highlight'}, +# 'markdown.extensions.extra': {}, +# 'markdown.extensions.meta': {}, +# }, +# 'output_format': 'html5', +# }, +# 'JINJA_FILTERS': {}, +# 'JINJA_GLOBALS': {}, +# 'JINJA_TESTS': {}, +# 'JINJA_ENVIRONMENT': { +# 'trim_blocks': True, +# 'lstrip_blocks': True, +# 'extensions': [], +# }, +# 'LOG_FILTER': [], +# 'LOCALE': [''], # defaults to user locale +# 'DEFAULT_PAGINATION': False, +# 'DEFAULT_ORPHANS': 0, +# 'DEFAULT_METADATA': {}, +# 'FILENAME_METADATA': r'(?P<date>\d{4}-\d{2}-\d{2}).*', +# 'PATH_METADATA': '', +# 'EXTRA_PATH_METADATA': {}, +# 'ARTICLE_PERMALINK_STRUCTURE': '', +# 'TYPOGRIFY': False, +# 'TYPOGRIFY_IGNORE_TAGS': [], +# 'TYPOGRIFY_DASHES': 'default', +# 'SUMMARY_END_SUFFIX': '…', +# 'SUMMARY_MAX_LENGTH': 50, +# 'PLUGIN_PATHS': [], +# 'PLUGINS': None, +# 'PYGMENTS_RST_OPTIONS': {}, +# 'TEMPLATE_PAGES': {}, +# 'TEMPLATE_EXTENSIONS': ['.html'], +# 'IGNORE_FILES': ['.#*'], +# 'SLUG_REGEX_SUBSTITUTIONS': [ +# (r'[^\w\s-]', ''), # remove non-alphabetical/whitespace/'-' chars +# (r'(?u)\A\s*', ''), # strip leading whitespace +# (r'(?u)\s*\Z', ''), # strip trailing whitespace +# (r'[-\s]+', '-'), # reduce multiple whitespace or '-' to single '-' +# ], +# 'INTRASITE_LINK_REGEX': '[{|](?P<what>.*?)[|}]', +# 'SLUGIFY_SOURCE': 'title', +# 'SLUGIFY_USE_UNICODE': False, +# 'SLUGIFY_PRESERVE_CASE': False, +# 'CACHE_CONTENT': False, +# 'CONTENT_CACHING_LAYER': 'reader', +# 'CACHE_PATH': 'cache', +# 'GZIP_CACHE': True, +# 'CHECK_MODIFIED_METHOD': 'mtime', +# 'LOAD_CONTENT_CACHE': False, +# 'WRITE_SELECTED': [], +# 'FORMATTED_FIELDS': ['summary'], +# 'PORT': 8000, +# 'BIND': '127.0.0.1', +# } diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..93b20b2 --- /dev/null +++ b/run.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -x + +pelican content/ -o output/ -s publishconf.py + +set +x diff --git a/themes/simple/static/default.css b/themes/simple/static/default.css new file mode 100644 index 0000000..e11829a --- /dev/null +++ b/themes/simple/static/default.css @@ -0,0 +1,3 @@ +html, body { + margin: 0; +} diff --git a/themes/simple/templates/archives.html b/themes/simple/templates/archives.html new file mode 100644 index 0000000..cd12950 --- /dev/null +++ b/themes/simple/templates/archives.html @@ -0,0 +1,14 @@ +{% 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/themes/simple/templates/article.html b/themes/simple/templates/article.html new file mode 100644 index 0000000..c8c9a4f --- /dev/null +++ b/themes/simple/templates/article.html @@ -0,0 +1,67 @@ +{% extends "base.html" %} +{% block html_lang %}{{ article.lang }}{% endblock %} + +{% block title %}{{ SITENAME }} - {{ 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 %} +<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/themes/simple/templates/author.html b/themes/simple/templates/author.html new file mode 100644 index 0000000..a190194 --- /dev/null +++ b/themes/simple/templates/author.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - 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..9aee5db --- /dev/null +++ b/themes/simple/templates/authors.html @@ -0,0 +1,12 @@ +{% 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/themes/simple/templates/base.html b/themes/simple/templates/base.html new file mode 100644 index 0000000..2c17dbf --- /dev/null +++ b/themes/simple/templates/base.html @@ -0,0 +1,63 @@ +<!DOCTYPE html> +<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}"> +<head> + {% block head %} + <title>{% block title %}{{ SITENAME }}{% endblock title %} + + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} + {% if CATEGORY_FEED_ATOM and category %} + + {% endif %} + {% if CATEGORY_FEED_RSS and category %} + + {% endif %} + {% if TAG_FEED_ATOM and tag %} + + {% endif %} + {% if TAG_FEED_RSS and tag %} + + {% endif %} + {% endblock head %} + + + + + + {% block content %} + {% endblock %} +
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + diff --git a/themes/simple/templates/categories.html b/themes/simple/templates/categories.html new file mode 100644 index 0000000..7999de4 --- /dev/null +++ b/themes/simple/templates/categories.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Categories{% endblock %} + +{% block content %} +

Categories on {{ SITENAME }}

+ +{% endblock %} diff --git a/themes/simple/templates/category.html b/themes/simple/templates/category.html new file mode 100644 index 0000000..14d7ff0 --- /dev/null +++ b/themes/simple/templates/category.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - {{ category }} category{% endblock %} + +{% block content_title %} +

Articles in the {{ category }} category

+{% endblock %} + diff --git a/themes/simple/templates/gosquared.html b/themes/simple/templates/gosquared.html new file mode 100644 index 0000000..49ccbbe --- /dev/null +++ b/themes/simple/templates/gosquared.html @@ -0,0 +1,14 @@ +{% if GOSQUARED_SITENAME %} + +{% endif %} diff --git a/themes/simple/templates/index.html b/themes/simple/templates/index.html new file mode 100644 index 0000000..ab4bc34 --- /dev/null +++ b/themes/simple/templates/index.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block content %} +
+{% block content_title %} +

All articles

+{% endblock %} + +
    +{% for article in articles_page.object_list %} +
  1. +

    {{ article.title }}

    +
    + +
    By + {% for author in article.authors %} + {{ author }} + {% endfor %} +
    +
    +
    {{ article.summary }}
    +
  2. +{% 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..33344ea --- /dev/null +++ b/themes/simple/templates/page.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% block html_lang %}{{ page.lang }}{% endblock %} + +{% block title %}{{ SITENAME }} - {{ 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 %} +

{{ page.title }}

+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + + {{ page.content }} + + {% if page.modified %} +

+ Last updated: {{ page.locale_modified }} +

+ {% endif %} +{% endblock %} diff --git a/themes/simple/templates/pagination.html b/themes/simple/templates/pagination.html new file mode 100644 index 0000000..588f130 --- /dev/null +++ b/themes/simple/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +{% set first_page = articles_paginator.page(1) %} +{% set last_page = articles_paginator.page(articles_paginator.num_pages) %} +

+ {% if articles_page.has_previous() %} + + « + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + » + + {% endif %} +

+{% endif %} diff --git a/themes/simple/templates/period_archives.html b/themes/simple/templates/period_archives.html new file mode 100644 index 0000000..e1ddf62 --- /dev/null +++ b/themes/simple/templates/period_archives.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - {{ period | reverse | join(' ') }} archives{% endblock %} + +{% block content %} +

Archives for {{ period | reverse | join(' ') }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+{% endblock %} diff --git a/themes/simple/templates/tag.html b/themes/simple/templates/tag.html new file mode 100644 index 0000000..9c95803 --- /dev/null +++ b/themes/simple/templates/tag.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - {{ tag }} tag{% endblock %} + +{% block content_title %} +

Articles tagged with {{ tag }}

+{% endblock %} diff --git a/themes/simple/templates/tags.html b/themes/simple/templates/tags.html new file mode 100644 index 0000000..b90b0ac --- /dev/null +++ b/themes/simple/templates/tags.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Tags{% endblock %} + +{% block content %} +

Tags for {{ SITENAME }}

+ +{% endblock %} diff --git a/themes/simple/templates/translations.html b/themes/simple/templates/translations.html new file mode 100644 index 0000000..f0e2478 --- /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 %} +{{ translation.lang }} +{% endfor %} +{% endif %} +{% endmacro %} + +{% macro entry_hreflang(entry) %} +{% if entry.translations %} + {% for translation in entry.translations %} + + {% endfor %} +{% endif %} +{% endmacro %}