Cleanup used awk code and move avatar style from html to css
This commit is contained in:
parent
f4ec6cdadf
commit
facb11a58f
@ -5,7 +5,6 @@ function load_helpers() {
|
||||
data["section_blog"] = section_blog()
|
||||
data["section_code"] = section_code()
|
||||
data["section_photos"] = section_photos()
|
||||
data["page_css"] = page_css()
|
||||
}
|
||||
|
||||
function page_title( title) {
|
||||
@ -31,8 +30,3 @@ function section_photos(section) {
|
||||
return " class=\"section\""
|
||||
}
|
||||
}
|
||||
function page_css(css) {
|
||||
if (data["page_css"]) {
|
||||
return "<link rel=\"stylesheet\" href=\"" data["page_css"] "\" type=\"text/css\">\n "
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
== Welcome,
|
||||
|
||||
++++
|
||||
<img style="margin-top: 1em; margin: 1em; border-radius: 25%; width: 140px; height: 140px; "align="right" float="left" src="images/me.jpg"/>
|
||||
<img class="avatar" alt="Picture of me" src="images/me.jpg"/>
|
||||
++++
|
||||
As you may have guessed from the URL, my name is Stefan Hagen. I'm a software developer based in south-west Germany. I'm living in a small town called https://en.wikipedia.org/wiki/Hockenheim[Hockenheim,role=external,window=_blank] together with my wife Jessica and two cats named http://stefanhagen.de/photos/Chloe-%26-June/[Chloe and June].
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<link rel="preload" href="/proza-r.woff2" as="font" type="font/woff2">
|
||||
<link rel="preload" href="/proza-i.woff2" as="font" type="font/woff2">
|
||||
<link rel="preload" href="/proza-li.woff2" as="font" type="font/woff2">
|
||||
{{page_css}}<link rel="stylesheet" href="/site.css" type="text/css">
|
||||
<link rel="stylesheet" href="/site.css" type="text/css">
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
</head>
|
||||
<body>
|
||||
|
@ -453,6 +453,16 @@ input[type="file"]:where(:active, :focus) + .button {
|
||||
color : #36b;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
margin-top: 1em;
|
||||
margin: 1em;
|
||||
border-radius: 25%;
|
||||
width: 140px;
|
||||
height: 140px;
|
||||
align: right;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.photo-img {
|
||||
width: 100%;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user