Browse Source

Structure

master
June 1 year ago
parent
commit
7baeaeca0a
  1. BIN
      .DS_Store
  2. 19
      config.toml
  3. 8
      content/_index.md
  4. 14
      content/test.md
  5. 8
      content/test2.md
  6. BIN
      public/icons/noun_diary_black.png
  7. 1
      public/icons/noun_diary_black.svg
  8. BIN
      public/icons/noun_diary_white.png
  9. 1
      public/icons/noun_diary_white.svg
  10. 0
      public/style.css
  11. 0
      sass/style.scss
  12. BIN
      static/icons/noun_diary_black.png
  13. 1
      static/icons/noun_diary_black.svg
  14. BIN
      static/icons/noun_diary_white.png
  15. 1
      static/icons/noun_diary_white.svg
  16. 33
      templates/index.html
  17. 46
      templates/macros/page.html
  18. 21
      templates/page.html

BIN
.DS_Store vendored

Binary file not shown.

19
config.toml

@ -0,0 +1,19 @@ @@ -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"

8
content/_index.md

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
+++
sort_by = "date"
paginate_by = 1
paginate_reversed = false
template = "index.html"
page_template = "page.html"
generate_feed = true
+++

14
content/test.md

@ -0,0 +1,14 @@ @@ -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"}

8
content/test2.md

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
+++
date = 2021-05-27
sort_by = "date"
+++
# test 2
auie

BIN
public/icons/noun_diary_black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

1
public/icons/noun_diary_black.svg

@ -0,0 +1 @@ @@ -0,0 +1 @@
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" x="0px" y="0px" viewBox="0 0 100 125"><g transform="translate(0,-952.36218)"><path style="color:#000000;enable-background:accumulate;" d="m 40.000015,958.36216 c -3.33371,13.3348 -7.57945,19.9778 -15.0625,24.7188 l 13.84375,16.625 c 0.3047,0.34304 0.32615,0.90414 0.0485,1.26944 -0.27762,0.3652 -0.82398,0.4948 -1.23603,0.293 l -5.03125,-2.15624 1.40625,4.96884 c 0.10785,0.4304 -0.11115,0.9208 -0.50368,1.1277 -0.39252,0.207 -0.92084,0.1107 -1.21507,-0.2215 l -15.125,-17.96884 c -1.89148,0.7825 -3.91234,1.5629 -6.125,2.3438 l 0,14.00004 36,43 0,-13 c 15,-5 24,-16 30,-29 z m 8,88.00004 c 19,-5 32,-10 38,-13 l 0,-10.9688 c -9.24964,7.3718 -26.88282,16.7083 -38,20.9688 z m 2,-83.00004 -1.875,1.875 30.4375,37.84384 c 0.46205,0.5784 0.56287,1.4228 0.25,2.0937 -6.09277,13.201 -15.44613,24.6795 -30.84375,29.9375 l 0.0312,2.25 c 16,-4 28,-18 39,-31 l -37,-43.00004 z m -26.8125,20.7812 c -1.29272,0.7247 -2.67337,1.4 -4.15625,2.0626 l 11.71875,13.93744 -0.71875,-2.53124 c -0.21049,-0.7298 0.6836,-1.502 1.375,-1.1875 l 3.125,1.3437 z m 61.09375,28.50004 c -9.25562,10.7399 -22.9991,22.3447 -36.28125,26.7188 l 0,2 c 15,-4 29,-14 41,-24 z" fill="#000000" stroke="none" marker="none" visibility="visible" display="inline" overflow="visible"/></g><text x="0" y="115" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">Created by sandra</text><text x="0" y="120" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">from the Noun Project</text></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
public/icons/noun_diary_white.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

1
public/icons/noun_diary_white.svg

@ -0,0 +1 @@ @@ -0,0 +1 @@
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" x="0px" y="0px" viewBox="0 0 100 125"><g transform="translate(0,-952.36218)"><path style="text-indent:0;text-transform:none;direction:ltr;block-progression:tb;baseline-shift:baseline;color:#000000;enable-background:accumulate;" d="m 39.039313,958.11379 c -2.4788,9.9171 -5.42173,15.9589 -9.7527,20.2905 -4.29318,4.2942 -10.069719,6.9867 -18.41136,9.9423 -0.60724,0.1415 -0.6947,0.6906 -0.87525,1.0316 l 0,14.00641 c -1.797e-4,0.2251 0.0783,0.4495 0.21881,0.6253 l 35.94748,42.926 c 0.34369,0.4414 0.84242,0.4565 1.15658,0.4064 14.68937,-3.9533 27.20769,-7.2378 39.69853,-13.3499 0,-4.7893 0,-9.6188 0,-13.7252 0.88461,-0.7028 1.76883,-1.4117 2.62573,-2.1259 0.42877,-0.3469 0.47494,-1.071 0.0937,-1.4695 l -5.53278,-5.5337 c 1.21081,-1.3717 2.39694,-2.7481 3.56349,-4.1269 0.29698,-0.3561 0.29698,-0.9257 0,-1.2818 l -37.01028,-43.01991 c -0.59509,-0.5182 -0.91105,-0.2635 -1.46915,-0.063 l -2.53196,2.5326 -5.97041,-7.4409 c -0.90048,-0.6717 -1.1239,-0.38 -1.75045,0.3753 z m 1.37539,2.3763 35.38482,43.98911 c -5.83871,12.3608 -14.20886,20.8809 -28.44539,25.7619 l -34.66589,-40.42501 c 1.88806,-0.6835 3.6574,-1.3647 5.31398,-2.0634 l 14.2227,17.25801 c 0.2822,0.3715 0.84237,0.4978 1.25661,0.2832 0.41424,-0.2146 0.6344,-0.745 0.49388,-1.1899 l -1.40664,-4.97101 5.03264,2.15711 c 0.41216,0.2019 0.9587,0.072 1.2364,-0.2931 0.27769,-0.3655 0.25623,-0.9268 -0.0486,-1.27001 l -13.00361,-15.9762 c 1.80869,-1.1733 3.45838,-2.4585 4.93888,-3.9393 4.35003,-4.3508 7.26619,-10.3812 9.69019,-19.3214 z m 9.56516,4.3145 35.72866,41.55051 c -10.58762,12.442 -22.81646,24.6449 -37.69797,28.7945 l 0,-3.0014 c 14.90909,-5.1173 23.90229,-14.3274 29.91456,-27.3564 0.15031,-0.3318 0.10018,-0.7454 -0.12503,-1.0317 l -29.75827,-37.01711 z m -25.94471,20.0092 10.5967,13.0061 -3.21965,-1.3757 c -0.69158,-0.3146 -1.58589,0.4579 -1.37539,1.188 l 0.6877,2.37611 -10.784249,-13.06851 c 1.466539,-0.6703 2.805189,-1.3849 4.094889,-2.126 z m -12.0346,7.222 34.00945,39.70601 0,11.8805 -34.00945,-40.6438 z m 70.86343,20.60341 4.65755,4.6583 c -11.4715,9.4104 -25.42447,17.8328 -39.51098,21.8227 l 0,-1.9071 c 13.74126,-3.6387 25.05366,-13.6931 34.85343,-24.5739 z m 2.15685,9.1917 0,10.88 c -5.89819,2.8758 -19.07392,7.6015 -37.01028,12.3808 l 0,-3.8768 c 13.11588,-3.6123 26.00319,-10.9526 37.01028,-19.384 z" fill="#000000" fill-opacity="1" stroke="none" marker="none" visibility="visible" display="inline" overflow="visible"/></g><text x="0" y="115" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">Created by sandra</text><text x="0" y="120" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">from the Noun Project</text></svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

0
public/style.css

0
sass/style.scss

BIN
static/icons/noun_diary_black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

1
static/icons/noun_diary_black.svg

@ -0,0 +1 @@ @@ -0,0 +1 @@
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" x="0px" y="0px" viewBox="0 0 100 125"><g transform="translate(0,-952.36218)"><path style="color:#000000;enable-background:accumulate;" d="m 40.000015,958.36216 c -3.33371,13.3348 -7.57945,19.9778 -15.0625,24.7188 l 13.84375,16.625 c 0.3047,0.34304 0.32615,0.90414 0.0485,1.26944 -0.27762,0.3652 -0.82398,0.4948 -1.23603,0.293 l -5.03125,-2.15624 1.40625,4.96884 c 0.10785,0.4304 -0.11115,0.9208 -0.50368,1.1277 -0.39252,0.207 -0.92084,0.1107 -1.21507,-0.2215 l -15.125,-17.96884 c -1.89148,0.7825 -3.91234,1.5629 -6.125,2.3438 l 0,14.00004 36,43 0,-13 c 15,-5 24,-16 30,-29 z m 8,88.00004 c 19,-5 32,-10 38,-13 l 0,-10.9688 c -9.24964,7.3718 -26.88282,16.7083 -38,20.9688 z m 2,-83.00004 -1.875,1.875 30.4375,37.84384 c 0.46205,0.5784 0.56287,1.4228 0.25,2.0937 -6.09277,13.201 -15.44613,24.6795 -30.84375,29.9375 l 0.0312,2.25 c 16,-4 28,-18 39,-31 l -37,-43.00004 z m -26.8125,20.7812 c -1.29272,0.7247 -2.67337,1.4 -4.15625,2.0626 l 11.71875,13.93744 -0.71875,-2.53124 c -0.21049,-0.7298 0.6836,-1.502 1.375,-1.1875 l 3.125,1.3437 z m 61.09375,28.50004 c -9.25562,10.7399 -22.9991,22.3447 -36.28125,26.7188 l 0,2 c 15,-4 29,-14 41,-24 z" fill="#000000" stroke="none" marker="none" visibility="visible" display="inline" overflow="visible"/></g><text x="0" y="115" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">Created by sandra</text><text x="0" y="120" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">from the Noun Project</text></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
static/icons/noun_diary_white.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

1
static/icons/noun_diary_white.svg

@ -0,0 +1 @@ @@ -0,0 +1 @@
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" x="0px" y="0px" viewBox="0 0 100 125"><g transform="translate(0,-952.36218)"><path style="text-indent:0;text-transform:none;direction:ltr;block-progression:tb;baseline-shift:baseline;color:#000000;enable-background:accumulate;" d="m 39.039313,958.11379 c -2.4788,9.9171 -5.42173,15.9589 -9.7527,20.2905 -4.29318,4.2942 -10.069719,6.9867 -18.41136,9.9423 -0.60724,0.1415 -0.6947,0.6906 -0.87525,1.0316 l 0,14.00641 c -1.797e-4,0.2251 0.0783,0.4495 0.21881,0.6253 l 35.94748,42.926 c 0.34369,0.4414 0.84242,0.4565 1.15658,0.4064 14.68937,-3.9533 27.20769,-7.2378 39.69853,-13.3499 0,-4.7893 0,-9.6188 0,-13.7252 0.88461,-0.7028 1.76883,-1.4117 2.62573,-2.1259 0.42877,-0.3469 0.47494,-1.071 0.0937,-1.4695 l -5.53278,-5.5337 c 1.21081,-1.3717 2.39694,-2.7481 3.56349,-4.1269 0.29698,-0.3561 0.29698,-0.9257 0,-1.2818 l -37.01028,-43.01991 c -0.59509,-0.5182 -0.91105,-0.2635 -1.46915,-0.063 l -2.53196,2.5326 -5.97041,-7.4409 c -0.90048,-0.6717 -1.1239,-0.38 -1.75045,0.3753 z m 1.37539,2.3763 35.38482,43.98911 c -5.83871,12.3608 -14.20886,20.8809 -28.44539,25.7619 l -34.66589,-40.42501 c 1.88806,-0.6835 3.6574,-1.3647 5.31398,-2.0634 l 14.2227,17.25801 c 0.2822,0.3715 0.84237,0.4978 1.25661,0.2832 0.41424,-0.2146 0.6344,-0.745 0.49388,-1.1899 l -1.40664,-4.97101 5.03264,2.15711 c 0.41216,0.2019 0.9587,0.072 1.2364,-0.2931 0.27769,-0.3655 0.25623,-0.9268 -0.0486,-1.27001 l -13.00361,-15.9762 c 1.80869,-1.1733 3.45838,-2.4585 4.93888,-3.9393 4.35003,-4.3508 7.26619,-10.3812 9.69019,-19.3214 z m 9.56516,4.3145 35.72866,41.55051 c -10.58762,12.442 -22.81646,24.6449 -37.69797,28.7945 l 0,-3.0014 c 14.90909,-5.1173 23.90229,-14.3274 29.91456,-27.3564 0.15031,-0.3318 0.10018,-0.7454 -0.12503,-1.0317 l -29.75827,-37.01711 z m -25.94471,20.0092 10.5967,13.0061 -3.21965,-1.3757 c -0.69158,-0.3146 -1.58589,0.4579 -1.37539,1.188 l 0.6877,2.37611 -10.784249,-13.06851 c 1.466539,-0.6703 2.805189,-1.3849 4.094889,-2.126 z m -12.0346,7.222 34.00945,39.70601 0,11.8805 -34.00945,-40.6438 z m 70.86343,20.60341 4.65755,4.6583 c -11.4715,9.4104 -25.42447,17.8328 -39.51098,21.8227 l 0,-1.9071 c 13.74126,-3.6387 25.05366,-13.6931 34.85343,-24.5739 z m 2.15685,9.1917 0,10.88 c -5.89819,2.8758 -19.07392,7.6015 -37.01028,12.3808 l 0,-3.8768 c 13.11588,-3.6123 26.00319,-10.9526 37.01028,-19.384 z" fill="#000000" fill-opacity="1" stroke="none" marker="none" visibility="visible" display="inline" overflow="visible"/></g><text x="0" y="115" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">Created by sandra</text><text x="0" y="120" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">from the Noun Project</text></svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

33
templates/index.html

@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
{% import "macros/page.html" as page_macros %}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>{{ config.extra.author }}'s memories</title>
<link rel="icon" href="{{ config.base_url }}/icons/noun_diary_white.svg" type="image/x-icon">
<link rel="stylesheet" href="">
<meta property="og:title" content="{{ config.extra.author }}'s memories">
<meta property="og:type" content="website">
<meta property="og:image" content="{{ config.base_url }}/icons/noun_diary_white.svg">
<meta property="og:description" content="{{ config.description }}">
<meta property="og:site_name" content="{{ config.extra.author }}'s memories">
</head>
<body>
<div class="main">
{% 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 %}
</div>
</body>
</html>

46
templates/macros/page.html

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
{% macro page_info(page) %}
<div class="article-info">
<div class="date">{{ page.date }}</div>
<div class="article-taxonomies">
{% if page.taxonomies.tags %}
<ul class="article-tags">
{% for tag in page.taxonomies.tags %}
<li><a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">#{{ tag }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endmacro page_info %}
{% macro page_listing(page) %}
<article class="post-list">
<header>
<h1>
<a href="{{ page.permalink }}">{{ page.title }}</a>
</h1>
</header>
{{ self::page_info(page=page) }}
<div class="content">
{{ page.content | markdown | safe }}
</div>
</article>
{% endmacro page_listing %}
{% macro page_pagination(paginator) %}
<div class="pagination">
<div class="left pagination-item {% if not paginator.previous %}disabled{% endif %}">
{% if paginator.previous %}
<a href="{{ paginator.previous }}">To newer posts</a>
{% endif %}
</div>
<div class="right pagination-item {% if not paginator.next %}disabled{% endif %}">
{% if paginator.next %}
<a href="{{ paginator.next }}">To older posts</a>
{% endif %}
</div>
</div>
{% endmacro page_pagination %}

21
templates/page.html

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
{% import "macros/page.html" as page_macros %}
{% extends "index.html" %}
{% block title %}{{ page.date }}{% endblock %}
{% block content %}
<article class="post">
<header>
<h1>{{ page.date }}</h1>
</header>
<div class="page-info">
{{ page_macros::page_info(page=page) }}
</div>
<div class="content">
{{ page.content | safe }}
</div>
</article>
{% endblock content %}
Loading…
Cancel
Save