diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..b213147 Binary files /dev/null and b/.DS_Store differ diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..210c21a --- /dev/null +++ b/config.toml @@ -0,0 +1,19 @@ +# The URL the site will be built for +base_url = "https://memories.eu.org" +title = "Memories" +description = "Un journal de bord, composé de notes quotidiennes" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = false + +[markdown] +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = false + +[extra] +# Put all your custom variables here +author = "June" \ No newline at end of file diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..e227e63 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,8 @@ ++++ +sort_by = "date" +paginate_by = 1 +paginate_reversed = false +template = "index.html" +page_template = "page.html" +generate_feed = true ++++ \ No newline at end of file diff --git a/content/test.md b/content/test.md new file mode 100644 index 0000000..1fe9649 --- /dev/null +++ b/content/test.md @@ -0,0 +1,14 @@ ++++ +date = 2021-06-30 +sort_by = "date" ++++ + +# Test + +Ceci est un test + +## Memories + +Voici **un souvenir**. + +![Logo de Memories, un cahier avec des pages ouvertes, monochrome](icons/noun_diary_black.svg){:height="36px" width="36px"} \ No newline at end of file diff --git a/content/test2.md b/content/test2.md new file mode 100644 index 0000000..65f2036 --- /dev/null +++ b/content/test2.md @@ -0,0 +1,8 @@ ++++ +date = 2021-05-27 +sort_by = "date" ++++ + +# test 2 + +auie \ No newline at end of file diff --git a/public/icons/noun_diary_black.png b/public/icons/noun_diary_black.png new file mode 100644 index 0000000..1a54e19 Binary files /dev/null and b/public/icons/noun_diary_black.png differ diff --git a/public/icons/noun_diary_black.svg b/public/icons/noun_diary_black.svg new file mode 100644 index 0000000..f1b3116 --- /dev/null +++ b/public/icons/noun_diary_black.svg @@ -0,0 +1 @@ +Created by sandrafrom the Noun Project \ No newline at end of file diff --git a/public/icons/noun_diary_white.png b/public/icons/noun_diary_white.png new file mode 100644 index 0000000..5313c55 Binary files /dev/null and b/public/icons/noun_diary_white.png differ diff --git a/public/icons/noun_diary_white.svg b/public/icons/noun_diary_white.svg new file mode 100644 index 0000000..0413a60 --- /dev/null +++ b/public/icons/noun_diary_white.svg @@ -0,0 +1 @@ +Created by sandrafrom the Noun Project \ No newline at end of file diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..e69de29 diff --git a/sass/style.scss b/sass/style.scss new file mode 100644 index 0000000..e69de29 diff --git a/static/icons/noun_diary_black.png b/static/icons/noun_diary_black.png new file mode 100644 index 0000000..1a54e19 Binary files /dev/null and b/static/icons/noun_diary_black.png differ diff --git a/static/icons/noun_diary_black.svg b/static/icons/noun_diary_black.svg new file mode 100644 index 0000000..f1b3116 --- /dev/null +++ b/static/icons/noun_diary_black.svg @@ -0,0 +1 @@ +Created by sandrafrom the Noun Project \ No newline at end of file diff --git a/static/icons/noun_diary_white.png b/static/icons/noun_diary_white.png new file mode 100644 index 0000000..5313c55 Binary files /dev/null and b/static/icons/noun_diary_white.png differ diff --git a/static/icons/noun_diary_white.svg b/static/icons/noun_diary_white.svg new file mode 100644 index 0000000..0413a60 --- /dev/null +++ b/static/icons/noun_diary_white.svg @@ -0,0 +1 @@ +Created by sandrafrom the Noun Project \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..bd518fb --- /dev/null +++ b/templates/index.html @@ -0,0 +1,33 @@ +{% import "macros/page.html" as page_macros %} + + + + + + {{ config.extra.author }}'s memories + + + + + + + + + + +
+ {% block content %} + {% if paginator.pages %} + {% for page in paginator.pages %} + {{ page_macros::page_listing(page=page) }} + {% endfor %} + {{ page_macros::page_pagination(paginator=paginator) }} + {% else %} + {% for page in section.pages %} + {{ page_macros::page_listing(page=page) }} + {% endfor %} + {% endif %} + {% endblock content %} +
+ + diff --git a/templates/macros/page.html b/templates/macros/page.html new file mode 100644 index 0000000..e84a895 --- /dev/null +++ b/templates/macros/page.html @@ -0,0 +1,46 @@ +{% macro page_info(page) %} +
+
{{ page.date }}
+
+ {% if page.taxonomies.tags %} + + {% endif %} +
+
+{% endmacro page_info %} + +{% macro page_listing(page) %} +
+
+

+ {{ page.title }} +

+
+ + {{ self::page_info(page=page) }} + +
+ {{ page.content | markdown | safe }} +
+ +
+{% endmacro page_listing %} + +{% macro page_pagination(paginator) %} + +{% endmacro page_pagination %} \ No newline at end of file diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..d230198 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,21 @@ +{% import "macros/page.html" as page_macros %} +{% extends "index.html" %} + +{% block title %}{{ page.date }}{% endblock %} + +{% block content %} + +
+
+

{{ page.date }}

+
+
+ {{ page_macros::page_info(page=page) }} +
+ +
+ {{ page.content | safe }} +
+
+ +{% endblock content %} \ No newline at end of file