From 0a267e4172dc893963feb27fc5d1f405f9e6d7b1 Mon Sep 17 00:00:00 2001 From: sijanec Date: Thu, 5 Nov 2020 18:44:37 +0100 Subject: initial commit --- .gitignore | 4 +++ Gemfile | 13 ++++++++ Gemfile.lock | 76 ++++++++++++++++++++++++++++++++++++++++++++ _authors/anonymous.md | 6 ++++ _authors/anton.md | 6 ++++ _config.yml | 29 +++++++++++++++++ _data/navigation.yml | 8 +++++ _includes/footer.html | 4 +++ _includes/navigation.html | 11 +++++++ _layouts/author.html | 28 ++++++++++++++++ _layouts/default.html | 21 ++++++++++++ _layouts/post.html | 23 ++++++++++++++ _posts/2020-11-03-kivi.md | 4 +++ _posts/2020-11-04-jabolka.md | 4 +++ _posts/2020-11-05-bananas.md | 3 ++ _sass/main.scss | 10 ++++++ assets/css/styles.scss | 3 ++ avtorji.html | 22 +++++++++++++ blog.html | 19 +++++++++++ index.md | 8 +++++ o.md | 7 ++++ 21 files changed, 309 insertions(+) create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 _authors/anonymous.md create mode 100644 _authors/anton.md create mode 100644 _config.yml create mode 100644 _data/navigation.yml create mode 100644 _includes/footer.html create mode 100644 _includes/navigation.html create mode 100644 _layouts/author.html create mode 100644 _layouts/default.html create mode 100644 _layouts/post.html create mode 100644 _posts/2020-11-03-kivi.md create mode 100644 _posts/2020-11-04-jabolka.md create mode 100644 _posts/2020-11-05-bananas.md create mode 100644 _sass/main.scss create mode 100644 assets/css/styles.scss create mode 100644 avtorji.html create mode 100644 blog.html create mode 100644 index.md create mode 100644 o.md 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 @@ +
+

+ Vse pravice pridržane. © {{ site.name }}, 2020 +

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 @@ + +
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 +--- +

+ {{ page.name }} +

+

+ {{ page.position }} +

+{{ content }} + +

objave:

+ 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 @@ + + + + + + {{ page.title }} + + + + {% feed_meta %} + {% seo %} + {% if jekyll.environment == "production" %} + + {% endif %} + + + {% include navigation.html %} + {{ content }} + {% include footer.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 +--- +

+ {{ page.title }} +

+

+ {{ 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 %} + + {{ author.name }} + + {% else %} + + {{ anon.name }} + + {% endif %} +

+ +{{ 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 +--- +

avtorji

+ 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 +--- +

+ Zadnje objave +

+ 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 -- cgit v1.2.3