diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..59eb164 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,16 @@ +{% extends 'index.html' %} +{% set current_path = '' %} + +{% block title %} +Page not found +{% endblock %} + +{# This overrides current_path checking since 404 pages don't have a fixed path #} +{% block is_active %} +{% endblock %} + +{% block content %} +

+ (╯°□°)╯︵ ┻━┻ +

+{% endblock %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..da26c7d --- /dev/null +++ b/templates/index.html @@ -0,0 +1,80 @@ + + + + + + + +{# Favicon #}{%- if config.extra.favicon_emoji %} + + {% endif -%} +{# title #} + {% block title %}{{ section.title }}{% endblock %} - {{ config.extra.title }} + + {%- if section %} + + {% elif page %} + + {%- endif %} + + + +
+

+ + {{ config.extra.author }} + +

+ + + + {% block categories_menu %} {% endblock %} + + {#- ToDo : fix : submenu for categories should only appear when we are anywhere in blog section -#} + {# + {% if config.extra.show_categories_submenu and current_path %} + + {% endif %} + #} + +
+ +
+ {% block content %}{% endblock %} +
+ + + + + \ No newline at end of file diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..05623fa --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,11 @@ +{% macro comment(comment_url) %} +
+

Comments

+

Looking for comments? + Reply on this thread to comment. Comments won't appear here. +

+{% endmacro comment %} + +{# ToDo #} +{% macro category() %} +{% endmacro category %} \ No newline at end of file diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..bc9d2ed --- /dev/null +++ b/templates/page.html @@ -0,0 +1,22 @@ +{% extends "index.html" %} +{% import 'macros.html' as macro %} + +{% block title %}{{ page.title }}{% endblock %} + +{% block content %} +

+ {{ page.title }} +

+

{{ page.date }}

+ +{{ page.content | safe }} + +{% if page.extra.comment is defined %} +{{ macro::comment(comment_url=page.extra.comment) }} +{% endif %} + +{% endblock %} + +{# implement : comment section of sort #} +{% block page_comment -%} +{%- endblock %} \ No newline at end of file diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..5fc016d --- /dev/null +++ b/templates/section.html @@ -0,0 +1,45 @@ +{% extends "index.html" %} + +{% block title %}{{ section.title }}{% endblock %} + +{% if get_taxonomy(kind="categories") %} +{% block categories_menu %} +

Categories

+ +{% endblock %} +{% endif %} + +{%- block content -%} + +{{ section.content | safe }} + +{%- for page in section.pages %} +

+ + {{ page.title }} + +

+ {{ page.date }} +{%- endfor -%} + + {# ToDo : implement : Pagination #} +{%- if section.paginate_by is defined %} +{% block pagination %} + +{% endblock pagination %} +{% endif -%} + +{%- endblock content -%} \ No newline at end of file diff --git a/theme.toml b/theme.toml index 3331877..8f1929e 100644 --- a/theme.toml +++ b/theme.toml @@ -18,6 +18,11 @@ language = "en" # title can be author, site, company etc. name title = "" +### Favicon ### +# only 1 of the below favicon options must be uncommented +favicon_emoji = "😉" +#favicon_image = + # items to be shown in the menu menu_items = [ { url = "https://example.com", name = "Example"} @@ -30,7 +35,7 @@ show_categories_submenu = false license = "CC BY-SA 4.0" # How many links per index page -pagination = 10 +pagination = 25 # The theme author info: you! [author]