Generate ReadMe with Flask

This commit is contained in:
LucasVbr
2022-05-19 23:05:52 +02:00
parent cdae22997a
commit 50f2cbc3bc
18 changed files with 434 additions and 236 deletions
+20
View File
@@ -0,0 +1,20 @@
{%- from './macros/image.md.jinja' import img -%}
{%- from './macros/link.md.jinja' import a -%}
<!-- Header -->
{%- include './sections/header.md.jinja' with context %}
<!-- Badges -->
{% include './sections/badges.md.jinja' with context %}
<!-- About -->
{% include './sections/about.md.jinja' with context %}
<!-- Connect With Me -->
{% include './sections/connect-with-me.md.jinja' with context %}
<!-- Language and Tools -->
{% include './sections/languages-and-tools.md.jinja' with context %}
<!-- Stats -->
{% include './sections/stats.md.jinja' with context %}
+3
View File
@@ -0,0 +1,3 @@
{% macro img(src, alt='image', width='') -%}
<img src="{{ src }}" alt="{{ alt }}" {% if width != '' %}width="{{ width }}"{% endif %}/>
{%- endmacro %}
+3
View File
@@ -0,0 +1,3 @@
{% macro a(href, content) -%}
<a href="{{ href }}">{{ content }}</a>
{%- endmacro %}
+15
View File
@@ -0,0 +1,15 @@
{% for element in data.about -%}
-
{%- for part in element -%}
{{ " " }}
{%- if part.type == "icon" or part.type == "text" -%}
{%- if part.isBold -%}**{%- endif -%}
{{ part.content }}
{%- if part.isBold -%}**{%- endif -%}
{%- elif part.type == "a" -%}
{{ a(part.href, part.content) }}
{%- else -%}
{{"Error: No type found"}}
{%- endif -%}
{%- endfor %}
{% endfor %}
+3
View File
@@ -0,0 +1,3 @@
{% for badge in data.badges -%}
{{ img(badge.src, badge.alt) }}
{% endfor %}
@@ -0,0 +1,4 @@
## Connect With Me:
{% for image in data.connectWithMe -%}
{{ a(image.href, img(image.src, image.alt, image.width)) }}
{% endfor %}
+6
View File
@@ -0,0 +1,6 @@
<center>
# Hi {{ img(data.hi.src, data.hi.alt, data.hi.width) }}, I'm LucasVbr
### A passionate developer from France
</center>
@@ -0,0 +1,6 @@
## Languages and Tools:
{% for images in data.languagesAndTools -%}
{% for image in images -%}
{{ a(image.href, img(image.src, image.alt, image.width)) }}
{% endfor %}
{% endfor -%}
+7
View File
@@ -0,0 +1,7 @@
<center>
{% for image in data.stats -%}
{{ img(image.src, image.alt) }}
{% endfor %}
</center>