This commit is contained in:
LordMZTE 2022-01-30 01:04:04 +01:00
parent 6decd41d35
commit 637ce359c2
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
5 changed files with 49 additions and 33 deletions

View file

@ -7,6 +7,8 @@ compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library # Whether to build a search index to be used later on by a JavaScript library
build_search_index = false build_search_index = false
minify_html = true
[markdown] [markdown]
# Whether to do syntax highlighting # Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola

View file

@ -6,3 +6,4 @@ title = "LordMZTE"
Welcome to my website! Welcome to my website!
[PGP key](/public.key) [PGP key](/public.key)

View file

@ -12,3 +12,7 @@ body {
#links { #links {
float: right; float: right;
} }
a {
color: #bd93f9;
}

View file

@ -1,6 +1,7 @@
{% import "macros.html" as macros %}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html>
<html> <html>
<head> <head>
<link rel="stylesheet" href="index.css" type="text/css" media="all" /> <link rel="stylesheet" href="index.css" type="text/css" media="all" />
<meta charset="UTF-8" /> <meta charset="UTF-8" />
@ -16,30 +17,20 @@
</div> </div>
<div id="links"> <div id="links">
<a href="https://pythonlang.org" target="_blank" {{ macros::link_img(ref="https://pythonlang.org", img="/img/pythno.png", alt="pythonlang") }}
><img src="/img/pythno.png" alt="pythonlang" width="50" height="50" {{ macros::link_img(ref="/git", img="/img/gitea.svg", alt="gitea") }}
/></a> {{ macros::link_img(ref="https://github.com/lordmzte", img="/img/github.svg", alt="github") }}
<br /> {{ macros::link_img(
<a href="/git" target="_blank" ref="https://koyu.space/@LordMZTE",
><img src="/img/gitea.svg" alt="gitea" width="50" height="50" img="/img/mastodon.svg",
/></a> alt="mastodon",
<br /> rel="me"
<a href="https://github.com/lordmzte" target="_blank" ) }}
><img src="/img/github.svg" alt="github" width="50" height="50" {{ macros::link_img(ref="/b", img="/img/brevo.svg", alt="brevo") }}
/></a>
<br />
<a href="https://koyu.space/@LordMZTE" target="_blank" rel="me"
><img src="/img/mastodon.svg" alt="mastodon" width="50"
/></a>
<br />
<a href="/b" target="_blank"
><img src="/img/brevo.svg" alt="brevo" width="50"
/></a>
</div> </div>
</div> </div>
<div id=" content" width="100%"> <div id=" content" width="100%">{{ section.content | safe }}</div>
{{ section.content | safe }}
</div>
</body> </body>
</html> </html>

18
templates/macros.html Normal file
View file

@ -0,0 +1,18 @@
{% macro link_img(ref, img, alt, rel="") %}
<a href="{{ ref }}" target="_blank"
><img
src="{{ img }}"
alt="{{ alt }}"
width="50"
height="50"
{%
if
rel
%}
rel="{{ rel }}"
{%
endif
%}
/></a>
<br />
{% endmacro link_img %}