aboutsummaryrefslogtreecommitdiff
path: root/_pages
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-02-14 02:38:59 +0300
committerValentin Popov <valentin@popov.link>2024-02-14 02:38:59 +0300
commite68f7cf6c7fadb1bceea955a4caf40954d9b024e (patch)
tree5fe6a1ac66ed98571674ab6686e1742a46812eb8 /_pages
parentedaeaf08b8750e8278b18484ff8e0aa180fe3fab (diff)
downloadpopov.link-e68f7cf6c7fadb1bceea955a4caf40954d9b024e.tar.xz
popov.link-e68f7cf6c7fadb1bceea955a4caf40954d9b024e.zip
Moved actual template site
Diffstat (limited to '_pages')
-rw-r--r--_pages/404.html12
-rw-r--r--_pages/atom.xml3
-rw-r--r--_pages/blog.html20
-rw-r--r--_pages/index.html5
-rw-r--r--_pages/robots.txt4
-rw-r--r--_pages/sitemap.xml24
6 files changed, 34 insertions, 34 deletions
diff --git a/_pages/404.html b/_pages/404.html
index dd15c35..aca708f 100644
--- a/_pages/404.html
+++ b/_pages/404.html
@@ -1,7 +1,13 @@
---
layout: page
-permalink: "404.html"
-title: "404: Not Found"
+permalink: /404.html
---
-<p>Sorry, this page doesn't exist.</p>
+<div style="text-align:center;">
+ <h1>404</h1>
+ <p><strong>Page not found.</strong></p>
+
+ <small>
+ <p>If you see this message, please <a href="mailto:{{ site.email | strip | url_encode }}?subject={{ 'I found a broken page' | strip | normalize_whitespace | xml_escape }}">let me know</a>.</p>
+ </small>
+</div> \ No newline at end of file
diff --git a/_pages/atom.xml b/_pages/atom.xml
index db00cf3..cdaab52 100644
--- a/_pages/atom.xml
+++ b/_pages/atom.xml
@@ -1,7 +1,6 @@
---
layout: null
-permalink: "atom.xml"
-title: "RSS"
+permalink: /atom.xml
---
<?xml version="1.0" encoding="utf-8"?>
diff --git a/_pages/blog.html b/_pages/blog.html
new file mode 100644
index 0000000..847129e
--- /dev/null
+++ b/_pages/blog.html
@@ -0,0 +1,20 @@
+---
+layout: page
+permalink: /blog.html
+---
+
+<section>
+ <h1>Latest posts</h1>
+</section>
+
+<section>
+ <ul>
+ {% for post in site.posts %}
+ <li>
+ <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%Y/%m/%d' | strip | normalize_whitespace | xml_escape }}</time>
+ <span>&mdash;</span>
+ <a href="{{ post.url | relative_url | uri_escape }}">{{ post.title | strip | normalize_whitespace | xml_escape }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+</section> \ No newline at end of file
diff --git a/_pages/index.html b/_pages/index.html
index 71414c7..de3ea3a 100644
--- a/_pages/index.html
+++ b/_pages/index.html
@@ -1,9 +1,8 @@
---
layout: page
-permalink: "index.html"
-title: ""
+permalink: /index.html
---
{% include contacts.html %}
{% include links.html %}
-{% include posts.html %}
+{% include posts.html %} \ No newline at end of file
diff --git a/_pages/robots.txt b/_pages/robots.txt
index 0e79b92..a16a265 100644
--- a/_pages/robots.txt
+++ b/_pages/robots.txt
@@ -1,9 +1,9 @@
---
-permalink: "robots.txt"
layout: null
+permalink: /robots.txt
---
User-agent: *
-Allow: {{ site.baseurl | relative_url | uri_escape }}
Disallow: {{ "/404.html" | relative_url | uri_escape }}
+Allow: /
Sitemap: {{ "sitemap.xml" | absolute_url | uri_escape }}
diff --git a/_pages/sitemap.xml b/_pages/sitemap.xml
deleted file mode 100644
index 9b70b46..0000000
--- a/_pages/sitemap.xml
+++ /dev/null
@@ -1,24 +0,0 @@
----
-layout: null
-permalink: "sitemap.xml"
----
-
-<?xml version="1.0" encoding="utf-8"?>
-
-<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
-
-{% for item in site.html_pages %}
- <url>
- <loc>{{ item.url | absolute_url | xml_escape }}</loc>
- <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
- </url>
-{% endfor %}
-
-{% for item in site.posts %}
- <url>
- <loc>{{ item.url | absolute_url | xml_escape }}</loc>
- <lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
- </url>
-{% endfor %}
-
-</urlset>