summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-11-05 18:44:37 +0100
committersijanec <sijanecantonluka@gmail.com>2020-11-05 18:44:37 +0100
commit0a267e4172dc893963feb27fc5d1f405f9e6d7b1 (patch)
tree83f33138cfa709465ef728ccafd19f395439097a
downloadsijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.gz
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.bz2
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.lz
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.xz
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.zst
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.zip
-rw-r--r--.gitignore4
-rw-r--r--Gemfile13
-rw-r--r--Gemfile.lock76
-rw-r--r--_authors/anonymous.md6
-rw-r--r--_authors/anton.md6
-rw-r--r--_config.yml29
-rw-r--r--_data/navigation.yml8
-rw-r--r--_includes/footer.html4
-rw-r--r--_includes/navigation.html11
-rw-r--r--_layouts/author.html28
-rw-r--r--_layouts/default.html21
-rw-r--r--_layouts/post.html23
-rw-r--r--_posts/2020-11-03-kivi.md4
-rw-r--r--_posts/2020-11-04-jabolka.md4
-rw-r--r--_posts/2020-11-05-bananas.md3
-rw-r--r--_sass/main.scss10
-rw-r--r--assets/css/styles.scss3
-rw-r--r--avtorji.html22
-rw-r--r--blog.html19
-rw-r--r--index.md8
-rw-r--r--o.md7
21 files changed, 309 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..559a3df
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+### Jekyll ###
+_site
+.jekyll-metadata
+*-cache/
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..46c92f1
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+source "https://rubygems.org"
+
+git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
+
+# gem "rails"
+gem "jekyll"
+group :jekyll_plugins do
+ gem "jekyll-sitemap"
+ gem "jekyll-feed"
+ gem "jekyll-seo-tag"
+end
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..21334b2
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,76 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ addressable (2.7.0)
+ public_suffix (>= 2.0.2, < 5.0)
+ colorator (1.1.0)
+ concurrent-ruby (1.1.7)
+ em-websocket (0.5.2)
+ eventmachine (>= 0.12.9)
+ http_parser.rb (~> 0.6.0)
+ eventmachine (1.2.7)
+ ffi (1.13.1)
+ forwardable-extended (2.6.0)
+ http_parser.rb (0.6.0)
+ i18n (1.8.5)
+ concurrent-ruby (~> 1.0)
+ jekyll (4.1.1)
+ addressable (~> 2.4)
+ colorator (~> 1.0)
+ em-websocket (~> 0.5)
+ i18n (~> 1.0)
+ jekyll-sass-converter (~> 2.0)
+ jekyll-watch (~> 2.0)
+ kramdown (~> 2.1)
+ kramdown-parser-gfm (~> 1.0)
+ liquid (~> 4.0)
+ mercenary (~> 0.4.0)
+ pathutil (~> 0.9)
+ rouge (~> 3.0)
+ safe_yaml (~> 1.0)
+ terminal-table (~> 1.8)
+ jekyll-feed (0.15.1)
+ jekyll (>= 3.7, < 5.0)
+ jekyll-sass-converter (2.1.0)
+ sassc (> 2.0.1, < 3.0)
+ jekyll-seo-tag (2.7.1)
+ jekyll (>= 3.8, < 5.0)
+ jekyll-sitemap (1.4.0)
+ jekyll (>= 3.7, < 5.0)
+ jekyll-watch (2.2.1)
+ listen (~> 3.0)
+ kramdown (2.3.0)
+ rexml
+ kramdown-parser-gfm (1.1.0)
+ kramdown (~> 2.0)
+ liquid (4.0.3)
+ listen (3.2.1)
+ rb-fsevent (~> 0.10, >= 0.10.3)
+ rb-inotify (~> 0.9, >= 0.9.10)
+ mercenary (0.4.0)
+ pathutil (0.16.2)
+ forwardable-extended (~> 2.6)
+ public_suffix (4.0.6)
+ rb-fsevent (0.10.4)
+ rb-inotify (0.10.1)
+ ffi (~> 1.0)
+ rexml (3.2.4)
+ rouge (3.24.0)
+ safe_yaml (1.0.5)
+ sassc (2.4.0)
+ ffi (~> 1.9)
+ terminal-table (1.8.0)
+ unicode-display_width (~> 1.1, >= 1.1.1)
+ unicode-display_width (1.7.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ jekyll
+ jekyll-feed
+ jekyll-seo-tag
+ jekyll-sitemap
+
+BUNDLED WITH
+ 2.1.4
diff --git a/_authors/anonymous.md b/_authors/anonymous.md
new file mode 100644
index 0000000..541aa35
--- /dev/null
+++ b/_authors/anonymous.md
@@ -0,0 +1,6 @@
+---
+short_name: anonymous
+name: Anonimnež
+position: Tlačan
+---
+Anonimnež je nekdo, ki se pod objavo ni podpisal.
diff --git a/_authors/anton.md b/_authors/anton.md
new file mode 100644
index 0000000..1b9d4da
--- /dev/null
+++ b/_authors/anton.md
@@ -0,0 +1,6 @@
+---
+short_name: anton
+name: Anton Luka Šijanec
+position: Administrator
+---
+Anton Luka Šijanec je administrator tega spletišča.
diff --git a/_config.yml b/_config.yml
new file mode 100644
index 0000000..c712ca9
--- /dev/null
+++ b/_config.yml
@@ -0,0 +1,29 @@
+name: Anton Luka Šijanec
+long_date_format: "%A, %d. %B %Y %H:%M:%S"
+short_date_format: "%d. %m. %Y"
+short_datetime_format: "%d. %m. %Y %H:%M:%S"
+
+collections:
+ authors:
+ output: true
+
+defaults:
+ - scope:
+ path: ""
+ type: "authors"
+ values:
+ layout: "author"
+ - scope:
+ path: ""
+ type: "posts"
+ values:
+ layout: "post"
+ - scope:
+ path: ""
+ values:
+ layout: "default"
+
+plugins:
+ - jekyll-feed
+ - jekyll-sitemap
+ - jekyll-seo-tag
diff --git a/_data/navigation.yml b/_data/navigation.yml
new file mode 100644
index 0000000..423f337
--- /dev/null
+++ b/_data/navigation.yml
@@ -0,0 +1,8 @@
+- name: glavna stran
+ link: /
+- name: o
+ link: /o.html
+- name: blog
+ link: /blog.html
+- name: avtorji
+ link: /avtorji.html
diff --git a/_includes/footer.html b/_includes/footer.html
new file mode 100644
index 0000000..e4e4acc
--- /dev/null
+++ b/_includes/footer.html
@@ -0,0 +1,4 @@
+<hr>
+<p>
+ Vse pravice pridržane. &copy; {{ site.name }}, 2020
+</p>
diff --git a/_includes/navigation.html b/_includes/navigation.html
new file mode 100644
index 0000000..eb836c7
--- /dev/null
+++ b/_includes/navigation.html
@@ -0,0 +1,11 @@
+<nav>
+ {% for item in site.data.navigation %}
+ [<a
+ href={{ item.link | remove: ".html" }}
+ {% if page.url == item.link %} class=current {% endif %}
+ >
+ {{ item.name}}
+ </a>]
+ {% endfor %}
+</nav>
+<hr>
diff --git a/_layouts/author.html b/_layouts/author.html
new file mode 100644
index 0000000..7c5cddc
--- /dev/null
+++ b/_layouts/author.html
@@ -0,0 +1,28 @@
+---
+layout: default
+---
+<h1>
+ {{ page.name }}
+</h1>
+<h2>
+ {{ page.position }}
+</h2>
+{{ content }}
+
+<h2>objave:</h2>
+<ul>
+ {% assign filtered_posts = site.posts | where: "author", page.short_name %}
+ {% assign author_not_specified = site.posts | where: 'author', nil %}
+ {% if page.short_name == "anonymous" %}
+ {% assign filtered_posts =
+ author_not_specified | concat: filtered_posts %}
+ {% endif %}
+ {% assign filtered_posts = filtered_posts | sort: "date" | reverse %}
+ {% for post in filtered_posts %}
+ <li>
+ <a href="{{ post.url | remove: ".html" }}">
+ {{ post.title }} @ {{ post.date | date: site.short_date_format }}
+ </a>
+ </li>
+ {% endfor %}
+</ul>
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..1f3aee4
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang=sl>
+ <head>
+ <meta charset=UTF-8 />
+ <title>
+ {{ page.title }}
+ </title>
+ <link rel=stylesheet href=/assets/css/styles.css />
+ <meta name=viewport content=width=device-width,initial-scale=1.0 />
+ {% feed_meta %}
+ {% seo %}
+ {% if jekyll.environment == "production" %}
+ <!-- this comment generates if JEKYLL_ENV=production -->
+ {% endif %}
+ </head>
+ <body>
+ {% include navigation.html %}
+ {{ content }}
+ {% include footer.html %}
+ </body>
+</html>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..4e63808
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,23 @@
+---
+layout: default
+---
+<h1>
+ {{ page.title }}
+</h1>
+<p>
+ {{ page.date | date: site.short_date_format }}
+ {% assign author = site.authors | where: 'short_name', page.author | first %}
+ {% assign anon = site.authors | where: 'short_name', "anonymous" | first %}
+ -
+ {% if author %}
+ <a href="{{ author.url | remove: ".html" }}">
+ {{ author.name }}
+ </a>
+ {% else %}
+ <a href="{{ anon.url | remove: ".html" }}">
+ {{ anon.name }}
+ </a>
+ {% endif %}
+</p>
+
+{{ content }}
diff --git a/_posts/2020-11-03-kivi.md b/_posts/2020-11-03-kivi.md
new file mode 100644
index 0000000..4908fd7
--- /dev/null
+++ b/_posts/2020-11-03-kivi.md
@@ -0,0 +1,4 @@
+---
+author: anonymous
+---
+Kivi je sadje, ki omogoča teleportacijo skozi čas.
diff --git a/_posts/2020-11-04-jabolka.md b/_posts/2020-11-04-jabolka.md
new file mode 100644
index 0000000..6d2dfaa
--- /dev/null
+++ b/_posts/2020-11-04-jabolka.md
@@ -0,0 +1,4 @@
+---
+author: anton
+---
+Jabolka rastejo na jablanah.
diff --git a/_posts/2020-11-05-bananas.md b/_posts/2020-11-05-bananas.md
new file mode 100644
index 0000000..dfb5e84
--- /dev/null
+++ b/_posts/2020-11-05-bananas.md
@@ -0,0 +1,3 @@
+---
+---
+Banana je užitno sadje.
diff --git a/_sass/main.scss b/_sass/main.scss
new file mode 100644
index 0000000..324a3c0
--- /dev/null
+++ b/_sass/main.scss
@@ -0,0 +1,10 @@
+.current {
+ color: red;
+}
+
+@media screen and (min-width: 600px) {
+ body {
+ margin-left: 10%;
+ margin-right: 10%;
+ }
+}
diff --git a/assets/css/styles.scss b/assets/css/styles.scss
new file mode 100644
index 0000000..9e5cbc6
--- /dev/null
+++ b/assets/css/styles.scss
@@ -0,0 +1,3 @@
+---
+---
+@import "main";
diff --git a/avtorji.html b/avtorji.html
new file mode 100644
index 0000000..70494f3
--- /dev/null
+++ b/avtorji.html
@@ -0,0 +1,22 @@
+---
+layout: default
+title: avtorji
+---
+<h1>avtorji</h1>
+<ul>
+ {% for author in site.authors %}
+ <li>
+ <h2>
+ <a href="{{ author.url | remove: ".html"}}">
+ {{ author.name }}
+ </a>
+ </h2>
+ <h3>
+ {{ author.position }}
+ </h3>
+ <p>
+ {{ author.content | markdownify }}
+ </p>
+ </li>
+ {% endfor %}
+</ul>
diff --git a/blog.html b/blog.html
new file mode 100644
index 0000000..8e05ef9
--- /dev/null
+++ b/blog.html
@@ -0,0 +1,19 @@
+---
+layout: default
+title: blog
+---
+<h1>
+ Zadnje objave
+</h1>
+<ul>
+ {% for post in site.posts %}
+ <li>
+ <h3>
+ <a href="{{ post.url | remove: ".html" }}">
+ {{ post.title }} @ {{ post.date | date: site.short_date_format }}
+ </a>
+ </h3>
+ {{ post.excerpt }}
+ </li>
+ {% endfor %}
+</ul>
diff --git a/index.md b/index.md
new file mode 100644
index 0000000..6f889f6
--- /dev/null
+++ b/index.md
@@ -0,0 +1,8 @@
+---
+layout: default
+title: glavna stran
+---
+Anton Luka Šijanec
+==================
+
+Dobrodošli na moji spletni strani!
diff --git a/o.md b/o.md
new file mode 100644
index 0000000..164969f
--- /dev/null
+++ b/o.md
@@ -0,0 +1,7 @@
+---
+layout: default
+title: O
+---
+# O
+
+Ta stran pove nekaj o meni