mirror of
https://github.com/LucasVbr/LucasVbr.git
synced 2026-05-13 17:11:52 +00:00
Add Macro
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
# Hello there ! <img src="./img/Hi.gif" alt="Wave hand" width="50px" height="50px"/>
|
||||
|
||||
I'm Lucàs, a passionate developer from Rodez, France.
|
||||
<br>Currently, the weather is: **17.4°C**, **Few showers**
|
||||
|
||||
# Hello there ! <img src="./img/Hi.gif" alt="Wave hand" width="50" height="50"/>
|
||||
|
||||
I'm Lucàs, a passionate developer from <img src="https://camo.githubusercontent.com/810c0059ec880d3bf22c12f8ecd24d39ae1c9ee5d294cd397e6f414738d9cdd8/68747470733a2f2f63646e2d69636f6e732d706e672e666c617469636f6e2e636f6d2f3531322f3139372f3139373536302e706e67" alt="France Image Icon" width="12" height="12"/> Rodez, France.
|
||||
<br>Currently, the weather is: **18.5°C**, **Very cloudy**
|
||||
|
||||
### I code with
|
||||

|
||||
@@ -21,6 +23,7 @@ I'm Lucàs, a passionate developer from Rodez, France.
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
@@ -33,16 +36,16 @@ I'm Lucàs, a passionate developer from Rodez, France.
|
||||
|
||||
|
||||
### Where to find me
|
||||
[](https://github.com/LucasVbr)
|
||||
[](https://www.linkedin.com/in/lucasvbr)
|
||||
[](https://www.freecodecamp.org/LucasVbr)
|
||||
[](image.href)
|
||||
[](image.href)
|
||||
[](image.href)
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
|
||||
This README is generated every day.<br>
|
||||
Last refresh: **Sunday 05 June 22, 12:07**<br>
|
||||
Last refresh: **Sunday 05 June 22, 12:34**<br>
|
||||

|
||||

|
||||

|
||||
|
||||
@@ -32,7 +32,7 @@ def getDataSubfiles(files: list):
|
||||
def convertToolBadges(listToolName: list) -> list[dict[str, str]]:
|
||||
tools = [Badge(toolName) for toolName in listToolName]
|
||||
tools.sort(key=getBadgeColor) # Sort by color
|
||||
return [{"url": badge.url, "name": badge.name} for badge in tools]
|
||||
return [{"src": badge.url, "alt": badge.name} for badge in tools]
|
||||
|
||||
|
||||
def getWeather(city: str) -> dict:
|
||||
|
||||
+11
-1
@@ -1,7 +1,17 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "Lucàs",
|
||||
"city": "Rodez"
|
||||
"city": "Rodez",
|
||||
"hi_img": {
|
||||
"src": "./img/Hi.gif",
|
||||
"alt": "Wave hand",
|
||||
"size": "50"
|
||||
},
|
||||
"france_img": {
|
||||
"src": "https://camo.githubusercontent.com/810c0059ec880d3bf22c12f8ecd24d39ae1c9ee5d294cd397e6f414738d9cdd8/68747470733a2f2f63646e2d69636f6e732d706e672e666c617469636f6e2e636f6d2f3531322f3139372f3139373536302e706e67",
|
||||
"alt": "France Image Icon",
|
||||
"size": "12"
|
||||
}
|
||||
},
|
||||
"template_file": "index.md.jinja",
|
||||
"output_file": "README.md",
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
# Hello there ! <img src="./img/Hi.gif" alt="Wave hand" width="50px" height="50px"/>
|
||||
{% from 'macro/image.md.jinja' import image, imageWithSize, imageWithLink %}
|
||||
|
||||
I'm {{ data.info.name }}, a passionate developer from {{ data.info.city }}, France.
|
||||
# Hello there ! {{ imageWithSize(data.info.hi_img) }}
|
||||
|
||||
I'm {{ data.info.name }}, a passionate developer from {{ imageWithSize(data.info.france_img) }} {{ data.info.city }}, France.
|
||||
<br>Currently, the weather is: **{{ data.weather.temperature }}°C**, **{{ data.weather.description }}**
|
||||
|
||||
### I code with
|
||||
{% for image in data.tools -%}
|
||||

|
||||
{% for img in data.tools -%}
|
||||
{{ image(img) }}
|
||||
{% endfor %}
|
||||
|
||||
### Where to find me
|
||||
{% for image in data.links -%}
|
||||
[]({{ image.href }})
|
||||
{% for img in data.links -%}
|
||||
{{ imageWithLink(img) }}
|
||||
{% endfor %}
|
||||
---
|
||||
|
||||
@@ -18,8 +20,8 @@ I'm {{ data.info.name }}, a passionate developer from {{ data.info.city }}, Fran
|
||||
|
||||
This README is generated every day.<br>
|
||||
Last refresh: **{{ data.today }}**<br>
|
||||
{% for image in data.footer_badges -%}
|
||||

|
||||
{% for img in data.footer_badges -%}
|
||||
{{ image(img) }}
|
||||
{% endfor %}
|
||||
|
||||
*inspired by [Thomas Guibert](https://github.com/thmsgbrt)*
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{% macro image(image) -%}
|
||||

|
||||
{%- endmacro %}
|
||||
|
||||
{% macro imageWithLink(image) -%}
|
||||
[](image.href)
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro imageWithSize(image) -%}
|
||||
<img src="{{ image.src }}" alt="{{ image.alt }}" width="{{ image.size }}" height="{{ image.size }}"/>
|
||||
{%- endmacro %}
|
||||
Reference in New Issue
Block a user