M build.py => build.py +6 -2
@@ 93,7 93,7 @@ class Document:
def render_static(cls, template_name, path, minify=True, **kwargs):
with open(path, "w", encoding="UTF-8") as f:
content = cls.ENV.get_template(template_name).render(
- year=datetime.now().strftime("%Y")[2:], **kwargs
+ year=datetime.now().strftime("%Y"), **kwargs
)
if minify:
content = html_minify(content)
@@ 103,7 103,7 @@ class Document:
with open(self.path, "w", encoding="UTF-8") as f:
content = self.ENV.get_template(template).render(
document=self,
- year=datetime.now().strftime("%Y")[2:],
+ year=datetime.now().strftime("%Y"),
**kwargs,
)
if minify:
@@ 197,10 197,14 @@ def deploy():
subprocess.check_call(
[
"rsync",
+ "--verbose",
"--archive",
+ "--update",
"--compress",
"--partial",
"--delete",
+ "--chmod=D2750,F640",
+ "--chown=root:nginx",
"./site/",
f"{REMOTE_HOST}:{REMOTE_DIR}",
],
M src/index.md => src/index.md +5 -4
@@ 2,7 2,8 @@ Title: Home
Author: Piotr Machura
Description: Piotr Machura's webpage
-<pre style="background: inherit; line-height: 1.3" aria-label="ASCII art of a lighhouse by JGS"><code style="display: block; margin: auto; width: max-content"> .n. |
+<figure style="border-bottom: 2px dashed var(--fg-darker); margin-bottom: 1.25rem;">
+<pre style="background: inherit; line-height: 1.3" aria-description="ASCII art of a lighhouse by JGS"><code style="display: block; margin: auto; width: max-content"> .n. |
/___\ _.---. \ _ /
[|||] (_._ ) )--;_) =-
[_____] '---'.__,' \
@@ 15,9 16,9 @@ Description: Piotr Machura's webpage
.-/::. | |""|-._ ^ ~~~~
`===-'-----'""` '-. ~
jgs __.-' ^</code></pre>
-
-> Since you have reached this website, You, sir, are a gentleman and a scholar.
-> And there are not many of us left.
+<figcaption style="margin-bottom: 1.25rem;">Since you have reached this
+website, You, sir, are a gentleman and a scholar. And there are not many of us
+left.</figcaption></figure>
I am a graduate physics student at Faculty of Physics, Warsaw University of Technology,
Poland, specializing in complex networks (localization of information source, to be
M src/styles.scss => src/styles.scss +5 -7
@@ 58,6 58,10 @@ a:visited {
color: var(--blue);
}
+.date {
+ color: var(--cyan);
+}
+
hr {
margin: 0 0 0.75rem;
border: none;
@@ 74,9 78,6 @@ article {
margin-right: 0.6rem;
color: var(--yellow);
}
- &.no-prefix::before {
- display: none;
- }
font-weight: 700;
line-height: 1.5;
}
@@ 226,7 227,7 @@ header {
a.bi::before,
i.bi::before {
- margin-right: 0.6rem;
+ margin-right: 0.75rem;
}
}
@@ 249,9 250,6 @@ header {
color: var(--fg);
}
}
- .date {
- color: var(--cyan);
- }
}
}
M templates/home.html => templates/home.html +6 -4
@@ 6,15 6,15 @@ h2 .bi::before {
font-size: 1.1rem;
vertical-align: -1px;
color: var(--orange);
- margin-left: 0.5rem;
+ margin-left: 0.75rem;
opacity: 1;
visibility: hidden;
}
-h2:hover .bi::before {
+h2:hover .bi-rss-fill::before {
visibility: visible;
}
-main .date {
- color: var(--cyan);
+.article-list h3::before {
+ display: none;
}
</style>
<header>
@@ 28,9 28,11 @@ main .date {
</header>
<main>
{{ document.content }}
+<div class="article-list">
{% for article in listing %}
<h3 class="no-prefix"><i class="bi bi-caret-right-fill" style="margin-right: 0.5rem;"></i><a href="{{ '/' + article.dirname + '/' }}">{{ article.meta['title'] }}</a></h3>
<p><span class="date">{{ article.display_date }}</span> - <em>{{ article.meta['description'] }}</em></p>
{% endfor %}
+</div>
</main>
{% endblock %}
M templates/writing.html => templates/writing.html +2 -2
@@ 13,10 13,10 @@
}
</style>
<header>
-<h1><a class="bi bi-caret-left-fill" aria-label="Go to the homepage" href="/"></a>{{ document.meta['title'] }}
+<h1><i class="bi bi-book"></i>{{ document.meta['title'] }}
</h1>
<address>
-<span class="author">{{ document.meta['author'] }}</span>
+<a class="home" href="/">Home</a>
</address>
</header>
<main>