From e01fec938d2d146bc490438ba93f0b9c3f3f192d Mon Sep 17 00:00:00 2001
From: sijanec
Date: Sat, 7 Nov 2020 17:35:53 +0100
Subject: =?UTF-8?q?dodal=20zna=C4=8Dke,=20.html=20na=20linke,=20zna=C4=8Dk?=
=?UTF-8?q?e=20in=20kategorije=20po=20velikosti?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
_config.yml | 1 +
_data/navigation.yml | 8 ++++++--
_includes/navigation.html | 2 +-
_layouts/author.html | 2 +-
_layouts/post.html | 15 ++++++++++++---
_posts/2020-11-05-prva-objava.md | 1 +
_posts/2020-11-06-druga-objava.md | 1 +
_sass/main.scss | 8 ++++++++
avtorji.html | 22 ----------------------
blog.html | 19 -------------------
blog/avtorji.html | 22 ++++++++++++++++++++++
blog/kategorije.html | 37 +++++++++++++++++++++++++++++++++++++
blog/objave.html | 19 +++++++++++++++++++
blog/znacke.html | 37 +++++++++++++++++++++++++++++++++++++
kategorije.html | 33 ---------------------------------
o.md | 10 ++++++----
16 files changed, 152 insertions(+), 85 deletions(-)
delete mode 100644 avtorji.html
delete mode 100644 blog.html
create mode 100644 blog/avtorji.html
create mode 100644 blog/kategorije.html
create mode 100644 blog/objave.html
create mode 100644 blog/znacke.html
delete mode 100644 kategorije.html
diff --git a/_config.yml b/_config.yml
index 0560f97..47cc15e 100644
--- a/_config.yml
+++ b/_config.yml
@@ -10,6 +10,7 @@ url: "https://sijanec.eu"
collections:
authors:
output: true
+ permalink: /blog/avtorji/:name
defaults:
- scope:
diff --git a/_data/navigation.yml b/_data/navigation.yml
index bbfad56..b37ee72 100644
--- a/_data/navigation.yml
+++ b/_data/navigation.yml
@@ -2,7 +2,11 @@
link: /
- name: o meni
link: /o.html
-- name: blog
- link: /blog.html
+- name: objave
+ link: /blog/objave.html
+- name: kategorije
+ link: /blog/kategorije.html
+- name: značke
+ link: /blog/znacke.html
- name: avtorji
link: /avtorji.html
diff --git a/_includes/navigation.html b/_includes/navigation.html
index eb836c7..3bb6f14 100644
--- a/_includes/navigation.html
+++ b/_includes/navigation.html
@@ -1,7 +1,7 @@
{% for item in site.data.navigation %}
[
{{ item.name}}
diff --git a/_layouts/author.html b/_layouts/author.html
index 44e62e5..226f1bb 100644
--- a/_layouts/author.html
+++ b/_layouts/author.html
@@ -15,7 +15,7 @@ layout: default
{% include posts_by_author.html %}
{% for post in return %}
-
+
{{ post.title }} @ {{ post.date | date: site.short_date_format }}
diff --git a/_layouts/post.html b/_layouts/post.html
index 0046908..84f6d39 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -10,18 +10,27 @@ layout: default
{% assign anon = site.authors | where: 'short_name', "anonymous" | first %}
-
{% if author %}
- {{ author.name }}
+ {{ author.name }}
{% else %}
- {{ anon.name }}
+ {{ anon.name }}
{% endif %}
- kategorije:
{% assign i = 1 %}
{% for category in page.categories %}
{% assign i = i | plus: 1 %}
- {{ category }} {%
+ {{ category }} {%
if i < page.categories.size %}, {% elsif i == page.categories.size %}
in
{% endif %}{% endfor %}.
+ - značke:
+ {% assign i = 1 %}
+ {% for tag in page.tags %}
+ {% assign i = i | plus: 1 %}
+ {{ tag }} {%
+ if i < page.tags.size %}, {% elsif i == page.tags.size %}
+ in
+ {% endif %}{% endfor %}.
+
{{ content }}
diff --git a/_posts/2020-11-05-prva-objava.md b/_posts/2020-11-05-prva-objava.md
index a6ee19d..fedfc29 100644
--- a/_posts/2020-11-05-prva-objava.md
+++ b/_posts/2020-11-05-prva-objava.md
@@ -2,6 +2,7 @@
author: anton
title: prva objava
categories: objava test
+tags: objava
---
To je prva objava na tem blogu. Kmalu pričakujte več vsebine.
diff --git a/_posts/2020-11-06-druga-objava.md b/_posts/2020-11-06-druga-objava.md
index e4465ba..0275a72 100644
--- a/_posts/2020-11-06-druga-objava.md
+++ b/_posts/2020-11-06-druga-objava.md
@@ -2,6 +2,7 @@
author: anton
title: druga objava
categories: test
+tags: objava test
---
To je druga objava na tem blogu. Kmalu pričakujte več vsebine.
diff --git a/_sass/main.scss b/_sass/main.scss
index 324a3c0..dc1c296 100644
--- a/_sass/main.scss
+++ b/_sass/main.scss
@@ -2,6 +2,14 @@
color: red;
}
+table {
+ border-collapse: collapse;
+}
+
+table, th, td, tr {
+ border: 1px solid black;
+}
+
@media screen and (min-width: 600px) {
body {
margin-left: 10%;
diff --git a/avtorji.html b/avtorji.html
deleted file mode 100644
index 70494f3..0000000
--- a/avtorji.html
+++ /dev/null
@@ -1,22 +0,0 @@
----
-layout: default
-title: avtorji
----
-avtorji
-
diff --git a/blog.html b/blog.html
deleted file mode 100644
index 05a2239..0000000
--- a/blog.html
+++ /dev/null
@@ -1,19 +0,0 @@
----
-layout: default
-title: blog
----
-
- objave
-
-
- {% for post in site.posts %}
-
-
- {{ post.excerpt }}
-
- {% endfor %}
-
diff --git a/blog/avtorji.html b/blog/avtorji.html
new file mode 100644
index 0000000..2cdfe59
--- /dev/null
+++ b/blog/avtorji.html
@@ -0,0 +1,22 @@
+---
+layout: default
+title: avtorji
+---
+avtorji
+
diff --git a/blog/kategorije.html b/blog/kategorije.html
new file mode 100644
index 0000000..97ea14c
--- /dev/null
+++ b/blog/kategorije.html
@@ -0,0 +1,37 @@
+---
+layout: default
+title: kategorije
+---
+
+ kategorije
+
+
+ {% assign argv = ",kategorij,kategorija,kategoriji,kategorije" | prepend: site.categories.size | split: "," %}
+ {{ site.categories.size }} {% include slnum.html %} {{ return }}
+
+
+ {% capture category_sizes %}{% for category in site.categories %}{{ category[1].size | plus: -1000 }} {{ category[0]}}^{% endfor %}{% endcapture %}
+ {% assign categories_sorted_by_number_of_posts = category_sizes | split: "^" | sort %}
+ {% for pre_processed_category in categories_sorted_by_number_of_posts %}
+ {% assign category_with_size = pre_processed_category | split: " " %}
+ {% assign key = category_with_size[1] %}
+ {% assign category = site.categories[key] %}
+
+
+ {{ key }}
+
+
+
+ {% assign argv = ",objav,objava,objavi,objave" | prepend: category.size | split: "," %}
+ {{ category.size }} {{ return }}:
+
+ {% assign i = 1 %}
+ {% for post in category %}
+ {{ post.title }} @ {{ post.date | date: site.short_date_format }} {% assign i = i | plus: 1 %}{% if i < category.size %},
+ {% elsif i == category.size %}
+ in
+ {% endif %}{% endfor %}.
+
+
+ {% endfor %}
+
diff --git a/blog/objave.html b/blog/objave.html
new file mode 100644
index 0000000..9c87194
--- /dev/null
+++ b/blog/objave.html
@@ -0,0 +1,19 @@
+---
+layout: default
+title: blog
+---
+
+ objave
+
+
+ {% for post in site.posts %}
+
+
+ {{ post.excerpt }}
+
+ {% endfor %}
+
diff --git a/blog/znacke.html b/blog/znacke.html
new file mode 100644
index 0000000..f9bf486
--- /dev/null
+++ b/blog/znacke.html
@@ -0,0 +1,37 @@
+---
+layout: default
+title: značke
+---
+
+ značke
+
+
+ {% assign argv = ",značk,značka,znački,značke" | prepend: site.tags.size | split: "," %}
+ {{ site.tags.size }} {% include slnum.html %} {{ return }}
+
+
+ {% capture tag_sizes %}{% for tag in site.tags %}{{ tag[1].size | plus: -1000 }} {{ tag[0]}}^{% endfor %}{% endcapture %}
+ {% assign tags_sorted_by_number_of_posts = tag_sizes | split: "^" | sort %}
+ {% for pre_processed_tag in tags_sorted_by_number_of_posts %}
+ {% assign tag_with_size = pre_processed_tag | split: " " %}
+ {% assign key = tag_with_size[1] %}
+ {% assign tag = site.tags[key] %}
+
+
+ {{ key }}
+
+
+
+ {% assign argv = ",objav,objava,objavi,objave" | prepend: tag.size | split: "," %}
+ {{ tag.size }} {{ return }}:
+
+ {% assign i = 1 %}
+ {% for post in tag %}
+ {{ post.title }} @ {{ post.date | date: site.short_date_format }} {% assign i = i | plus: 1 %}{% if i < tag.size %},
+ {% elsif i == tag.size %}
+ in
+ {% endif %}{% endfor %}.
+
+
+ {% endfor %}
+
diff --git a/kategorije.html b/kategorije.html
deleted file mode 100644
index f14da95..0000000
--- a/kategorije.html
+++ /dev/null
@@ -1,33 +0,0 @@
----
-layout: default
-title: kategorije
----
-
- kategorije
-
-
- {% assign argv = ",kategorij,kategorija,kategoriji,kategorije" | prepend: site.categories.size | split: "," %}
- {{ site.categories.size }} {% include slnum.html %} {{ return }}
-
-
- {% assign cats = site.categories | sort %}
- {% for category in cats reversed %}
-
-
- {{ category[0] }}
-
-
-
- {% assign argv = ",objav,objava,objavi,objave" | prepend: category[1].size | split: "," %}
- {{ category[1].size }} {{ return }}:
-
- {% assign i = 1 %}
- {% for post in category[1] %}
- {{ post.title }} @ {{ post.date | date: site.short_date_format }} {% assign i = i | plus: 1 %}{% if i < category[1].size %},
- {% elsif i == category[1].size %}
- in
- {% endif %}{% endfor %}.
-
-
- {% endfor %}
-
diff --git a/o.md b/o.md
index d937743..f6bfe4c 100644
--- a/o.md
+++ b/o.md
@@ -20,11 +20,13 @@ Sem velik privrženec odprtokodne, proste in brezplačne programske opreme
Kontaktirate me lahko:
-* prek elektronske pošte: [anton@šijanec.eu](mailto:anton@šijanec.eu)
-* prek telefona: [+38 6 64/176-345](tel:+38664176345)
-* prek XMPP ali SIP protokola: [anton@sijanec.eu](xmpp:anton@sijanec.eu)
+* prek elektronske pošte: [anton@šijanec.eu](mailto:anton@šijanec.eu),
+* prek telefona: [+38 6 64/176-345](tel:+38664176345),
+* prek XMPP ali SIP protokola: [anton@sijanec.eu](xmpp:anton@sijanec.eu),
* prek IRC protokola:
-[ircs://irc.šijanec.eu:6697 v kanalu #](ircs://irc.šijanec.eu:6697/#)
+[ircs://irc.šijanec.eu:6697 v kanalu #](ircs://irc.šijanec.eu:6697/#).
+
+Mojo vizitko si lahko najdete na [https://šijanec.eu/vizitka](https://šijanec.eu/vizitka).
Sporočila lahko šifrirate s PGP.
Moj ključ ima zgoščeno vrednost
--
cgit v1.2.3