cleanups
This commit is contained in:
parent
6decd41d35
commit
637ce359c2
|
@ -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
|
||||||
|
|
|
@ -6,3 +6,4 @@ title = "LordMZTE"
|
||||||
Welcome to my website!
|
Welcome to my website!
|
||||||
|
|
||||||
[PGP key](/public.key)
|
[PGP key](/public.key)
|
||||||
|
|
||||||
|
|
|
@ -12,3 +12,7 @@ body {
|
||||||
#links {
|
#links {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #bd93f9;
|
||||||
|
}
|
||||||
|
|
|
@ -1,45 +1,36 @@
|
||||||
|
{% 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" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<title>LordMZTE</title>
|
<title>LordMZTE</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div style="height: 100px">
|
<div style="height: 100px">
|
||||||
<div id="header" height="100">
|
<div id="header" height="100">
|
||||||
<img src="/img/mzte.svg" alt="logo" width="100" height="100" />
|
<img src="/img/mzte.svg" alt="logo" width="100" height="100" />
|
||||||
<h1>LordMZTE</h1>
|
<h1>LordMZTE</h1>
|
||||||
</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>
|
</div>
|
||||||
<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 id=" content" width="100%">
|
<div id=" content" width="100%">{{ section.content | safe }}</div>
|
||||||
{{ section.content | safe }}
|
</body>
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
|
18
templates/macros.html
Normal file
18
templates/macros.html
Normal 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 %}
|
Loading…
Reference in a new issue