mirror of
https://github.com/LucasVbr/LucasVbr.git
synced 2026-05-16 17:11:50 +00:00
Generate ReadMe with Flask
This commit is contained in:
@@ -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 %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% macro img(src, alt='image', width='') -%}
|
||||
<img src="{{ src }}" alt="{{ alt }}" {% if width != '' %}width="{{ width }}"{% endif %}/>
|
||||
{%- endmacro %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% macro a(href, content) -%}
|
||||
<a href="{{ href }}">{{ content }}</a>
|
||||
{%- endmacro %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 -%}
|
||||
@@ -0,0 +1,7 @@
|
||||
<center>
|
||||
|
||||
{% for image in data.stats -%}
|
||||
{{ img(image.src, image.alt) }}
|
||||
{% endfor %}
|
||||
|
||||
</center>
|
||||
Reference in New Issue
Block a user