diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f40fbd8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +_site +.sass-cache +.jekyll-cache +.jekyll-metadata +vendor diff --git a/404.html b/404.html new file mode 100644 index 0000000..086a5c9 --- /dev/null +++ b/404.html @@ -0,0 +1,25 @@ +--- +permalink: /404.html +layout: default +--- + + + +
+

404

+ +

Page not found :(

+

The requested page could not be found.

+
diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..ee059da --- /dev/null +++ b/Gemfile @@ -0,0 +1,31 @@ +source "https://rubygems.org" +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! +# gem "jekyll", "~> 4.2.1" +# This is the default theme for new Jekyll sites. You may change this to anything you like. +#gem "minima", "~> 2.5" +gem "jekyll-swiss", "~> 1.0.0" +# If you want to use GitHub Pages, remove the "gem "jekyll"" above and +# uncomment the line below. To upgrade, run `bundle update github-pages`. +gem "github-pages", "~> 223", group: :jekyll_plugins +# If you have any plugins, put them here! +group :jekyll_plugins do + gem "jekyll-feed", "~> 0.12" +end + +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem +# and associated library. +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo", "~> 1.2" + gem "tzinfo-data" +end + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] + diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..be274e1 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,291 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (6.0.4.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + zeitwerk (~> 2.2, >= 2.2.2) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.11.1) + colorator (1.1.0) + commonmarker (0.17.13) + ruby-enum (~> 0.5) + concurrent-ruby (1.1.9) + dnsruby (1.61.9) + simpleidn (~> 0.1) + em-websocket (0.5.3) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0) + ethon (0.15.0) + ffi (>= 1.15.0) + eventmachine (1.2.7) + execjs (2.8.1) + faraday (1.9.3) + faraday-em_http (~> 1.0) + faraday-em_synchrony (~> 1.0) + faraday-excon (~> 1.1) + faraday-httpclient (~> 1.0) + faraday-multipart (~> 1.0) + faraday-net_http (~> 1.0) + faraday-net_http_persistent (~> 1.0) + faraday-patron (~> 1.0) + faraday-rack (~> 1.0) + faraday-retry (~> 1.0) + ruby2_keywords (>= 0.0.4) + faraday-em_http (1.0.0) + faraday-em_synchrony (1.0.0) + faraday-excon (1.1.0) + faraday-httpclient (1.0.1) + faraday-multipart (1.0.3) + multipart-post (>= 1.2, < 3) + faraday-net_http (1.0.1) + faraday-net_http_persistent (1.2.0) + faraday-patron (1.0.0) + faraday-rack (1.0.0) + faraday-retry (1.0.3) + ffi (1.15.5) + forwardable-extended (2.6.0) + gemoji (3.0.1) + github-pages (223) + github-pages-health-check (= 1.17.9) + jekyll (= 3.9.0) + jekyll-avatar (= 0.7.0) + jekyll-coffeescript (= 1.1.1) + jekyll-commonmark-ghpages (= 0.1.6) + jekyll-default-layout (= 0.1.4) + jekyll-feed (= 0.15.1) + jekyll-gist (= 1.5.0) + jekyll-github-metadata (= 2.13.0) + jekyll-include-cache (= 0.2.1) + jekyll-mentions (= 1.6.0) + jekyll-optional-front-matter (= 0.3.2) + jekyll-paginate (= 1.1.0) + jekyll-readme-index (= 0.3.0) + jekyll-redirect-from (= 0.16.0) + jekyll-relative-links (= 0.6.1) + jekyll-remote-theme (= 0.4.3) + jekyll-sass-converter (= 1.5.2) + jekyll-seo-tag (= 2.7.1) + jekyll-sitemap (= 1.4.0) + jekyll-swiss (= 1.0.0) + jekyll-theme-architect (= 0.2.0) + jekyll-theme-cayman (= 0.2.0) + jekyll-theme-dinky (= 0.2.0) + jekyll-theme-hacker (= 0.2.0) + jekyll-theme-leap-day (= 0.2.0) + jekyll-theme-merlot (= 0.2.0) + jekyll-theme-midnight (= 0.2.0) + jekyll-theme-minimal (= 0.2.0) + jekyll-theme-modernist (= 0.2.0) + jekyll-theme-primer (= 0.6.0) + jekyll-theme-slate (= 0.2.0) + jekyll-theme-tactile (= 0.2.0) + jekyll-theme-time-machine (= 0.2.0) + jekyll-titles-from-headings (= 0.5.3) + jemoji (= 0.12.0) + kramdown (= 2.3.1) + kramdown-parser-gfm (= 1.1.0) + liquid (= 4.0.3) + mercenary (~> 0.3) + minima (= 2.5.1) + nokogiri (>= 1.12.5, < 2.0) + rouge (= 3.26.0) + terminal-table (~> 1.4) + github-pages-health-check (1.17.9) + addressable (~> 2.3) + dnsruby (~> 1.60) + octokit (~> 4.0) + public_suffix (>= 3.0, < 5.0) + typhoeus (~> 1.3) + html-pipeline (2.14.0) + activesupport (>= 2) + nokogiri (>= 1.4) + http_parser.rb (0.8.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.9.0) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (>= 1.17, < 3) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-avatar (0.7.0) + jekyll (>= 3.0, < 5.0) + jekyll-coffeescript (1.1.1) + coffee-script (~> 2.2) + coffee-script-source (~> 1.11.1) + jekyll-commonmark (1.3.1) + commonmarker (~> 0.14) + jekyll (>= 3.7, < 5.0) + jekyll-commonmark-ghpages (0.1.6) + commonmarker (~> 0.17.6) + jekyll-commonmark (~> 1.2) + rouge (>= 2.0, < 4.0) + jekyll-default-layout (0.1.4) + jekyll (~> 3.0) + jekyll-feed (0.15.1) + jekyll (>= 3.7, < 5.0) + jekyll-gist (1.5.0) + octokit (~> 4.2) + jekyll-github-metadata (2.13.0) + jekyll (>= 3.4, < 5.0) + octokit (~> 4.0, != 4.4.0) + jekyll-include-cache (0.2.1) + jekyll (>= 3.7, < 5.0) + jekyll-mentions (1.6.0) + html-pipeline (~> 2.3) + jekyll (>= 3.7, < 5.0) + jekyll-optional-front-matter (0.3.2) + jekyll (>= 3.0, < 5.0) + jekyll-paginate (1.1.0) + jekyll-readme-index (0.3.0) + jekyll (>= 3.0, < 5.0) + jekyll-redirect-from (0.16.0) + jekyll (>= 3.3, < 5.0) + jekyll-relative-links (0.6.1) + jekyll (>= 3.3, < 5.0) + jekyll-remote-theme (0.4.3) + addressable (~> 2.0) + jekyll (>= 3.5, < 5.0) + jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) + rubyzip (>= 1.3.0, < 3.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.7.1) + jekyll (>= 3.8, < 5.0) + jekyll-sitemap (1.4.0) + jekyll (>= 3.7, < 5.0) + jekyll-swiss (1.0.0) + jekyll-theme-architect (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-cayman (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-dinky (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-hacker (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-leap-day (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-merlot (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-midnight (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-minimal (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-modernist (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-primer (0.6.0) + jekyll (> 3.5, < 5.0) + jekyll-github-metadata (~> 2.9) + jekyll-seo-tag (~> 2.0) + jekyll-theme-slate (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-tactile (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-theme-time-machine (0.2.0) + jekyll (> 3.5, < 5.0) + jekyll-seo-tag (~> 2.0) + jekyll-titles-from-headings (0.5.3) + jekyll (>= 3.3, < 5.0) + jekyll-watch (2.2.1) + listen (~> 3.0) + jemoji (0.12.0) + gemoji (~> 3.0) + html-pipeline (~> 2.2) + jekyll (>= 3.0, < 5.0) + kramdown (2.3.1) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.3) + listen (3.7.1) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.3.6) + mini_portile2 (2.7.1) + minima (2.5.1) + jekyll (>= 3.5, < 5.0) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + minitest (5.15.0) + multipart-post (2.1.1) + nokogiri (1.13.1) + mini_portile2 (~> 2.7.0) + racc (~> 1.4) + octokit (4.22.0) + faraday (>= 0.9) + sawyer (~> 0.8.0, >= 0.5.3) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (4.0.6) + racc (1.6.0) + rb-fsevent (0.11.1) + rb-inotify (0.10.1) + ffi (~> 1.0) + rexml (3.2.5) + rouge (3.26.0) + ruby-enum (0.9.0) + i18n + ruby2_keywords (0.0.5) + rubyzip (2.3.2) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) + simpleidn (0.2.1) + unf (~> 0.1.4) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + thread_safe (0.3.6) + typhoeus (1.4.0) + ethon (>= 0.9.0) + tzinfo (1.2.9) + thread_safe (~> 0.1) + unf (0.1.4) + unf_ext + unf_ext (0.0.8) + unicode-display_width (1.8.0) + zeitwerk (2.5.4) + +PLATFORMS + ruby + +DEPENDENCIES + github-pages (~> 223) + jekyll-feed (~> 0.12) + jekyll-swiss (~> 1.0.0) + tzinfo (~> 1.2) + tzinfo-data + wdm (~> 0.1.1) + +BUNDLED WITH + 2.1.4 diff --git a/_config.yml b/_config.yml index c419263..15ccd42 100644 --- a/_config.yml +++ b/_config.yml @@ -1 +1,46 @@ -theme: jekyll-theme-cayman \ No newline at end of file +# Welcome to Jekyll! +# +# This config file is meant for settings that affect your whole blog, values +# which you are expected to set up once and rarely edit after that. If you find +# yourself editing this file very often, consider using Jekyll's data files +# feature for the data you need to update frequently. +# +# For technical reasons, this file is *NOT* reloaded automatically when you use +# 'bundle exec jekyll serve'. If you change this file, please restart the server process. +# +# If you need help with YAML syntax, here are some quick references for you: +# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml +# https://learnxinyminutes.com/docs/yaml/ +# +# Site settings +# These are used to personalize your new site. If you look in the HTML files, +# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. +# You can create any custom variable you would like, and they will be accessible +# in the templates via {{ site.myvariable }}. + +title: mediarepo +email: me@trivernis.net +description: >- # this means to ignore newlines until "baseurl:" + Mediarepo is a tool for managing media files. It works similar to image boards + (boorus) as it allows one to assign tags to media entries and search for entries by using those tags. +baseurl: "" # the subpath of your site, e.g. /blog +url: "" # the base hostname & protocol for your site, e.g. http://example.com +github_username: Trivernis +badges: + - img: https://img.shields.io/github/v/release/trivernis/mediarepo?include_prereleases&style=for-the-badge + href: https://github.com/Trivernis/mediarepo/releases + - img: https://img.shields.io/aur/version/mediarepo?style=for-the-badge + href: https://aur.archlinux.org/packages/mediarepo + - img: https://img.shields.io/github/workflow/status/trivernis/mediarepo/Build%20and%20test?style=for-the-badge + href: https://github.com/Trivernis/mediarepo/actions/workflows/build.yml + - img: https://img.shields.io/aur/license/mediarepo?style=for-the-badge + href: https://github.com/Trivernis/mediarepo/blob/main/LICENSE + +# Build settings +plugins: + - jekyll-feed + +collections: + docs: + output: true + sort_by: sort_key \ No newline at end of file diff --git a/_docs/doc1.md b/_docs/doc1.md new file mode 100644 index 0000000..90d342d --- /dev/null +++ b/_docs/doc1.md @@ -0,0 +1,18 @@ +--- +layout: page +title: doc1 +sort_key: 2 +draft: true +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut diam quam nulla porttitor massa id. Venenatis lectus magna fringilla urna porttitor rhoncus dolor. Purus gravida quis blandit turpis cursus in hac habitasse platea. Mauris augue neque gravida in fermentum et sollicitudin ac orci. Non consectetur a erat nam at lectus. Egestas integer eget aliquet nibh praesent. Quisque id diam vel quam elementum. Ullamcorper velit sed ullamcorper morbi tincidunt ornare massa. Purus sit amet volutpat consequat mauris nunc congue nisi vitae. Vulputate dignissim suspendisse in est ante in nibh mauris. + +In aliquam sem fringilla ut. Aenean pharetra magna ac placerat vestibulum. Augue mauris augue neque gravida in fermentum et. Quis auctor elit sed vulputate mi sit. Praesent elementum facilisis leo vel fringilla est ullamcorper eget nulla. Ut faucibus pulvinar elementum integer enim. Turpis egestas sed tempus urna et pharetra pharetra massa. Et ligula ullamcorper malesuada proin libero nunc consequat interdum. Risus commodo viverra maecenas accumsan. Id diam maecenas ultricies mi eget mauris. + +![](/assets/images/screenshot-1.png) + +Vitae aliquet nec ullamcorper sit amet risus. Posuere lorem ipsum dolor sit. Sodales neque sodales ut etiam sit. Enim nunc faucibus a pellentesque sit amet porttitor. Justo laoreet sit amet cursus sit amet dictum. Nunc sed velit dignissim sodales ut. At lectus urna duis convallis convallis tellus id interdum. Mauris commodo quis imperdiet massa tincidunt nunc. Nisl nisi scelerisque eu ultrices vitae auctor eu augue ut. Nunc sed id semper risus. Phasellus faucibus scelerisque eleifend donec pretium. + +Viverra vitae congue eu consequat ac felis donec et odio. Convallis a cras semper auctor. Faucibus vitae aliquet nec ullamcorper sit amet risus nullam. Mollis aliquam ut porttitor leo. Ante metus dictum at tempor commodo ullamcorper a lacus vestibulum. Aliquam ultrices sagittis orci a scelerisque purus. Eros in cursus turpis massa tincidunt dui ut ornare lectus. Elementum pulvinar etiam non quam. Scelerisque viverra mauris in aliquam sem fringilla ut. Varius sit amet mattis vulputate enim nulla aliquet. Cras semper auctor neque vitae. Purus semper eget duis at tellus at urna condimentum mattis. Est ultricies integer quis auctor. + +Suspendisse potenti nullam ac tortor. Tellus mauris a diam maecenas sed enim. Tempor nec feugiat nisl pretium fusce id velit ut tortor. Nec feugiat nisl pretium fusce id velit. Eget velit aliquet sagittis id consectetur purus. Eget velit aliquet sagittis id consectetur purus ut. Lorem donec massa sapien faucibus et molestie ac. Hac habitasse platea dictumst vestibulum rhoncus. Eleifend quam adipiscing vitae proin sagittis nisl rhoncus mattis. Neque convallis a cras semper auctor neque vitae tempus. Elementum curabitur vitae nunc sed velit dignissim sodales ut eu. Dignissim enim sit amet venenatis urna cursus. Convallis a cras semper auctor neque vitae tempus quam. Dictum varius duis at consectetur. Sed tempus urna et pharetra pharetra massa massa ultricies mi. Ac odio tempor orci dapibus ultrices in. Pharetra pharetra massa massa ultricies mi. Tincidunt vitae semper quis lectus nulla. Aliquam eleifend mi in nulla posuere sollicitudin aliquam. Lacus sed turpis tincidunt id. \ No newline at end of file diff --git a/_docs/doc2.md b/_docs/doc2.md new file mode 100644 index 0000000..b393d06 --- /dev/null +++ b/_docs/doc2.md @@ -0,0 +1,6 @@ +--- +layout: page +title: doc2 +sort_key: 1 +draft: true +--- \ No newline at end of file diff --git a/_includes/dot-accent.html b/_includes/dot-accent.html new file mode 100644 index 0000000..c329351 --- /dev/null +++ b/_includes/dot-accent.html @@ -0,0 +1,3 @@ + diff --git a/_includes/dot.html b/_includes/dot.html new file mode 100644 index 0000000..3c0cfca --- /dev/null +++ b/_includes/dot.html @@ -0,0 +1,3 @@ + diff --git a/_includes/dribbble.html b/_includes/dribbble.html new file mode 100644 index 0000000..fabf932 --- /dev/null +++ b/_includes/dribbble.html @@ -0,0 +1,5 @@ + + + diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..ee4f77c --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,15 @@ +
+
+

This project is maintained by {{ site.github_username }}

+ +
+
\ No newline at end of file diff --git a/_includes/github.html b/_includes/github.html new file mode 100644 index 0000000..5398249 --- /dev/null +++ b/_includes/github.html @@ -0,0 +1,4 @@ + + + diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..cc35426 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,17 @@ + + + + + + {% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %} + + + {% assign user_url = site.url | append: site.baseurl %} + {% assign full_base_url = user_url | default: site.github.url %} + + + + + + + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..4dbfeb8 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,20 @@ +
+
+ + {{ site.title }} + +
+
+ +
+
diff --git a/_includes/instagram.html b/_includes/instagram.html new file mode 100644 index 0000000..530a050 --- /dev/null +++ b/_includes/instagram.html @@ -0,0 +1,18 @@ + + + diff --git a/_includes/medium.html b/_includes/medium.html new file mode 100644 index 0000000..05a6bc4 --- /dev/null +++ b/_includes/medium.html @@ -0,0 +1,9 @@ + + + diff --git a/_includes/post_block.html b/_includes/post_block.html new file mode 100644 index 0000000..7f6ed43 --- /dev/null +++ b/_includes/post_block.html @@ -0,0 +1,8 @@ + +
+ {{ post.date | date: "%b %-d, %Y" }} +

+ {{ post.title }} +

+

{{ post.content | strip_html | truncatewords:30 }}

+
diff --git a/_includes/previous-next.html b/_includes/previous-next.html new file mode 100644 index 0000000..3ac67a4 --- /dev/null +++ b/_includes/previous-next.html @@ -0,0 +1,21 @@ + +{% assign user_url = site.url | append: site.baseurl %} +{% assign full_base_url = user_url | default: site.github.url %} +{% if page.previous.url %} +
+ + Previous + +

{{ page.previous.content | strip_html | truncatewords:20 }}

+
+
+ {% endif %} + {% if page.next.url %} +
+ + Next + +

{{ page.next.content | strip_html | truncatewords:20 }}

+
+
+{% endif %} diff --git a/_includes/previous-next_has-categories.html b/_includes/previous-next_has-categories.html new file mode 100644 index 0000000..55bd883 --- /dev/null +++ b/_includes/previous-next_has-categories.html @@ -0,0 +1,39 @@ + +{% if page.categories %} + {% assign category = page.categories[0] %} + {% assign posts = site.categories[category] %} + {% for post in posts %} + {% if post.url == page.url %} + {% assign post_index0 = forloop.index0 %} + {% assign post_index1 = forloop.index %} + {% endif %} + {% endfor %} + {% for post in posts %} + {% if post_index0 == forloop.index %} + {% assign next_post = post %} + {% endif %} + {% if post_index1 == forloop.index0 %} + {% assign prev_post = post %} + {% endif %} + {% endfor %} +{% endif %} +{% assign user_url = site.url | append: site.baseurl %} +{% assign full_base_url = user_url | default: site.github.url %} +{% if prev_post %} +
+ + Previous + +

{{ page.previous.content | strip_html | truncatewords:20 }}

+
+
+{% endif %} +{% if next_post %} +
+ + Next + +

{{ page.next.content | strip_html | truncatewords:20 }}

+
+
+{% endif %} diff --git a/_layouts/category-post.html b/_layouts/category-post.html new file mode 100644 index 0000000..550e761 --- /dev/null +++ b/_layouts/category-post.html @@ -0,0 +1,18 @@ +--- +layout: default +--- +
+

{{ page.title }}

+
+

+
+ +
+ {{ content }} +
+ +
+ +
+ {% include previous-next_has-categories.html %} +
diff --git a/_layouts/category_index.html b/_layouts/category_index.html new file mode 100644 index 0000000..3e1ee61 --- /dev/null +++ b/_layouts/category_index.html @@ -0,0 +1,13 @@ +--- +layout: page +--- + +{% if page.category_name %} + {% assign category_name = page.category_name %} +{% endif %} + +
+ {% for post in site.categories[category_name] %} + {% include post_block.html %} + {% endfor %} +
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..4176004 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,18 @@ + + + + {% include head.html %} + + + + {% include header.html %} + +
+ {{ content }} +
+ + {% include footer.html %} + + + + diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..bab2958 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,59 @@ + + + +{% include head.html %} + + + +
+ +
+ +
+
    + {% for my_page in site.pages %} + {% if my_page.title %} +
  • + {{ + my_page.title }} +
  • + {% endif %} + {% endfor %} +
+
+ +
+

{{ site.title }}

+ +
+
+
+ {% for badge in site.badges %} +
+ + + +
+ {% endfor %} +
+ +

{{ site.description }}

+
+
+ +
+
+ +
+
+ {{ content }} +
+
+ +
+ + {% include footer.html %} + + + + \ No newline at end of file diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..a488210 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,13 @@ +--- +layout: default +--- +
+
+

{{ page.title }}

+
+
+
+
+ {{ content }} +
+
diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..d6ab497 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,19 @@ +--- +layout: default +--- +
+

{{ page.title }}

+
+

+
+ +
+ {{ content }} +
+ +
+ +
+ {% include previous-next.html %} +
\ No newline at end of file diff --git a/_posts/2022-02-16-im-still-working-on-it.md b/_posts/2022-02-16-im-still-working-on-it.md new file mode 100644 index 0000000..abc76c3 --- /dev/null +++ b/_posts/2022-02-16-im-still-working-on-it.md @@ -0,0 +1,6 @@ +--- +title: I'm still working on it +layout: post +--- + +I'm still working on this github pages site. \ No newline at end of file diff --git a/_sass/_base.scss b/_sass/_base.scss new file mode 100644 index 0000000..68b91b6 --- /dev/null +++ b/_sass/_base.scss @@ -0,0 +1,62 @@ +/** + * Reset some basic elements +*/ + +* { + box-sizing: border-box !important; + margin: 0; } + +input, +select, +textarea, +button { + font-family: inherit; + font-size: inherit; + line-height: inherit; +} + + +body, h1, h2, h3, h4, h5, h6, +p, blockquote, pre, hr, +dl, dd, ol, ul, figure { + margin: 0; + padding: 0; +} + + +/** + * Basic styling + */ +body { + font-family: $body-font-family; + font-size: $body-font-size; + line-height: 1.5; + color: $color-body-text; + background-color: rgb(33, 30, 43); +} + +p { + margin-top: 0; + margin-bottom: 0.5em; +} + +h1, h2, h3, h4, h5, h6 { + margin-top: 1em; + margin-bottom: 0.25em; +} + +h1, .h1 { font-size: $h1-size; } +h2, .h2 { font-size: $h2-size; } +h3, .h3 { font-size: $h3-size; } +h4, .h4 { font-size: $h4-size; } +h5, .h5 { font-size: $h5-size; } +h6, .h6 { font-size: $h6-size; text-transform: uppercase; letter-spacing: 0.02em; } + +a { + color: inherit; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} diff --git a/_sass/_components.scss b/_sass/_components.scss new file mode 100644 index 0000000..a21ef35 --- /dev/null +++ b/_sass/_components.scss @@ -0,0 +1,139 @@ +// Styling markdown output + +// Code formatting +pre { + border-left: $spacer-1 solid $color-border; + margin: $spacer-3 0; + padding-left: 16px; + width: (9 / 12 * 100%); // matches col-9 + overflow-x: auto; +} + +code { + color: $color-code; + font-size: $body-font-size; + padding: 1px 0px; +} + + +.prose { + + a { + text-decoration: underline dotted; + + &:hover { + text-decoration: underline; + } + } + + p, ol, ul { + font-size: $prose-font-size; + margin-bottom: 1em; + width: 100%; + + @media (min-width: $breakpoint-lg) { + width: (10 / 12 * 100%); // matches col-10 + } + + } + + ul, ol { + padding-left: 40px; + } + + li { + margin-bottom: 0.5em; + + ul li, ol li { + margin-bottom: 0; + } + } + + img { + + max-width: 100%; + + @media (min-width: $breakpoint-lg) { + max-width: (12 / 10 * 100%); // make image fill width of container on desktop + } + + } + + blockquote { + line-height: 1.375; + padding-left: 20px; + margin: 40px 0 40px -16px; + border-left: $spacer-1 solid $color-border; + font-style: italic; + + p { + font-size: 24px; + } + + @media (min-width: $breakpoint-lg) { + padding-left: $spacer-3; + margin: $spacer-4 0 $spacer-4 -40px; + max-width: (11 / 10 * 100%); + + p { + font-size: 32px; + } + + } + + } + + hr { + color: $color-body-text; + border-style: solid; + border-width: thin; + margin-top: 0.5em; + margin-bottom: 0.5em; + } + + dt { + font-weight: bold; + font-style: italic; + line-height: 1.25; + } + + dd { + font-style: italic; + margin-bottom: 0.5em; + } + + // Markdown tables + table { + border-collapse: collapse; + display: block; + width: 100%; + margin-bottom: 1.5em; + overflow: auto; + // For Firefox to horizontally scroll wider tables. + word-break: normal; + word-break: keep-all; + + th { + font-weight: bold; + text-align: left; + } + + th, + td { + padding: $spacer-2 $spacer-3 $spacer-2 2px; + border-top: 1px solid $color-body-text; + border-bottom: 1px solid $color-body-text; + } + + tr { + background-color: #fff; + border-top: 1px solid $color-body-text; + } + + tr th { + border-top: 2px solid $color-body-text; + border-bottom: 2px solid $color-body-text; + } + } + +} diff --git a/_sass/_theme.scss b/_sass/_theme.scss new file mode 100644 index 0000000..354c9f7 --- /dev/null +++ b/_sass/_theme.scss @@ -0,0 +1,32 @@ +// Default black theme + +// Color variables +$black-alt: rgb(25, 0, 49); +$magenta: #ff00f2; +$magenta-small: rgb(236, 0, 205); +$white: rgb(255, 255, 255); +$white-text: rgb(238, 238, 238); + +// Config +$color-background: $black-alt!default; +$color-dot-accent: $magenta !default; +$color-foreground: $white !default; +$color-title: $white !default; +$color-body-text: $white !default; +$color-text-accent: $magenta !default; +$color-code: $magenta-small !default; +$color-nav-link: $magenta !default; +$color-primary-link: $magenta !default; + +.font-smoothing { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +// Import sass partials (used in all themes) +@import + "variables", + "base", + "components", + "utilities" +; diff --git a/_sass/_utilities.scss b/_sass/_utilities.scss new file mode 100644 index 0000000..98fbcf0 --- /dev/null +++ b/_sass/_utilities.scss @@ -0,0 +1,183 @@ +/* Type utilities */ +.h0 { + font-size: $h0-mobile; + line-height: 1.0125; + margin-top: 0.85em; + word-wrap: break-word; + + @media (min-width: $breakpoint-lg) { + font-size: $h0-desktop; + } +} + +.text-right { text-align: right; } +.text-centered { text-align: center; } + +.no-underline { + text-decoration: none !important; + + &:hover { + text-decoration: none !important; + } +} + +.bold { font-weight: bold; } +.uppercase { text-transform: uppercase; } + +.lh-condensed { line-height: 1.25; } + +.list-reset { + list-style: none; + padding-left: 0; +} + +/* Border utilities */ +.border-bottom-thick { border-bottom: 2px solid; border-color: currentColor; } +.border-bottom-thin { border-bottom: 1px solid; border-color: currentColor; } +.border-top-thick { border-top: 2px solid; border-color: currentColor; } +.border-top-thin { border-top: 1px solid; border-color: currentColor; } +.border-0 { border: 0; } + + +/* Theme color utilities */ +.header-background { background-color: $color-background; } +.header-border { border-color: $color-foreground; } +.header-title { color: $color-title; } +.header-text { color: $color-foreground; } +.header-social { fill: $color-foreground; } +.header-social-accent { fill: $color-dot-accent; } +.header-link:hover { color: $color-nav-link !important; } // used for navigation links on homepage +.text-accent { color: $color-text-accent; } // used for date in post list and home link + +/* Layout utilities */ +.container { max-width: $container-width; } + +.col-1 { width: (1 / 12 * 100%); } +.col-2 { width: (2 / 12 * 100%); } +.col-3 { width: (3 / 12 * 100%); } +.col-4 { width: (4 / 12 * 100%); } +.col-5 { width: (5 / 12 * 100%); } +.col-6 { width: (6 / 12 * 100%); } +.col-7 { width: (7 / 12 * 100%); } +.col-8 { width: (8 / 12 * 100%); } +.col-9 { width: (9 / 12 * 100%); } +.col-10 { width: (10 / 12 * 100%); } +.col-11 { width: (11 / 12 * 100%); } +.col-12 { width: 100%; } + +@media (max-width: $breakpoint-lg) { + .sm-width-full { width: 100% !important; } +} + +.block { display: block !important; } +.inline-block { display: inline-block !important; } + +.table { display: table !important; } + +.left { float: left; } +.right { float: right; } + +.clearfix:before, +.clearfix:after { + content: " "; + display: table +} +.clearfix:after { clear: both } + +.align-middle { vertical-align: middle; } + +/* Padding */ +.px-0 { padding-left: 0; padding-right: 0 } +.py-0 { padding-top: 0; padding-bottom: 0 } + +.px-1 { padding-left: $spacer-1; padding-right: $spacer-1 } +.py-1 { padding-top: $spacer-1; padding-bottom: $spacer-1 } + +.px-2 { padding-left: $spacer-2; padding-right: $spacer-2; } +.py-2 { padding-top: $spacer-2; padding-bottom: $spacer-2; } + +.px-3 { padding-left: $spacer-3; padding-right: $spacer-3; } +.py-3 { padding-top: $spacer-3; padding-bottom: $spacer-3; } + +.px-4 { padding-left: $spacer-4; padding-right: $spacer-4; } +.py-4 { padding-top: $spacer-4; padding-bottom: $spacer-4; } + +/* Margin */ +.mx-auto { margin-left: auto; margin-right: auto; } + +.mt-0 { margin-top: 0; } +.mr-0 { margin-right: 0; } +.mb-0 { margin-bottom: 0; } +.ml-0 { margin-left: 0; } + +.mt-1 { margin-top: $spacer-1; } +.mr-1 { margin-right: $spacer-1; } +.mb-1 { margin-bottom: $spacer-1; } +.ml-1 { margin-left: $spacer-1; } + +.mt-2 { margin-top: $spacer-2; } +.mr-2 { margin-right: $spacer-2; } +.mb-2 { margin-bottom: $spacer-2; } +.ml-2 { margin-left: $spacer-2; } + +.mt-3 { margin-top: $spacer-3; } +.mr-3 { margin-right: $spacer-3; } +.mb-3 { margin-bottom: $spacer-3; } +.ml-3 { margin-left: $spacer-3; } + +.mt-4 { margin-top: $spacer-4; } +.mr-4 { margin-right: $spacer-4; } +.mb-4 { margin-bottom: $spacer-4; } +.ml-4 { margin-left: $spacer-4; } + +// Responsive margin +@media (min-width: 52em) { + .mx-lg-auto { margin-left: auto; margin-right: auto; } + + .mt-lg-0 { margin-top: 0; } + .mr-lg-0 { margin-right: 0; } + .mb-lg-0 { margin-bottom: 0; } + .ml-lg-0 { margin-left: 0; } + + .mt-lg-1 { margin-top: $spacer-1; } + .mr-lg-1 { margin-right: $spacer-1; } + .mb-lg-1 { margin-bottom: $spacer-1; } + .ml-lg-1 { margin-left: $spacer-1; } + + .mt-lg-2 { margin-top: $spacer-2; } + .mr-lg-2 { margin-right: $spacer-2; } + .mb-lg-2 { margin-bottom: $spacer-2; } + .ml-lg-2 { margin-left: $spacer-2; } + + .mt-lg-3 { margin-top: $spacer-3; } + .mr-lg-3 { margin-right: $spacer-3; } + .mb-lg-3 { margin-bottom: $spacer-3; } + .ml-lg-3 { margin-left: $spacer-3; } + + .mt-lg-4 { margin-top: $spacer-4; } + .mr-lg-4 { margin-right: $spacer-4; } + .mb-lg-4 { margin-bottom: $spacer-4; } + .ml-lg-4 { margin-left: $spacer-4; } +} + +// Link styles for social icons +.link-social { + text-decoration: none; + font-weight: bold; + line-height: 1; + + &:hover { + text-decoration: none !important; + } +} + +// Link styles for navigation +.link-primary { + font-weight: bold; + text-decoration: none !important; + + &:hover { + color: $color-primary-link; + text-decoration: none !important; + } +} diff --git a/_sass/_variables.scss b/_sass/_variables.scss new file mode 100644 index 0000000..66b0361 --- /dev/null +++ b/_sass/_variables.scss @@ -0,0 +1,35 @@ + +// Font family +$body-font-family: "Helvetica Neue", Arial, sans-serif; +$body-font-size: 16px; +$prose-font-size: 20px; + + +// Type scale +$h0-mobile: 64px; +$h0-desktop: 128px; + +$h1-size: 40px !default; +$h2-size: 32px !default; +$h3-size: 24px !default; +$h4-size: 20px !default; +$h5-size: 16px !default; +$h6-size: 12px !default; + +// Default border color +$color-border: #ddd !default; + +// Container width +$container-width: 64em; + +// Large breakpoint +$breakpoint-lg: 52em; + +// Spacing unit +$spacer: 8px !default; + +// Spacing scale +$spacer-1: $spacer !default; // 8px +$spacer-2: ($spacer * 2) !default; // 16px +$spacer-3: ($spacer * 4) !default; // 32px +$spacer-4: ($spacer * 8) !default; // 64px diff --git a/about.markdown b/about.markdown new file mode 100644 index 0000000..6ba9ea5 --- /dev/null +++ b/about.markdown @@ -0,0 +1,8 @@ +--- +layout: page +title: About +permalink: /about/ +--- + +The theme of this page is based on the [swiss](https://github.com/broccolini/swiss) jekyll +theme with a few modifications in colour and style. \ No newline at end of file diff --git a/assets/style.scss b/assets/style.scss new file mode 100644 index 0000000..0eb2774 --- /dev/null +++ b/assets/style.scss @@ -0,0 +1,7 @@ +--- +# Only the main Sass file needs front matter (the dashes are enough) +--- +@charset "utf-8"; + +// Import partials from `sass_dir` and set theme here +@import "theme.scss"; diff --git a/docs.html b/docs.html new file mode 100644 index 0000000..f29f08a --- /dev/null +++ b/docs.html @@ -0,0 +1,15 @@ +--- +layout: page +title: Docs +permalink: /docs/ +--- + +
+ {% for doc in site.docs %} + {% if doc.draft != true %} +

+ {{ doc.title }} +

+ {% endif %} + {% endfor %} +
\ No newline at end of file diff --git a/index.markdown b/index.markdown new file mode 100644 index 0000000..f5fc7f7 --- /dev/null +++ b/index.markdown @@ -0,0 +1,10 @@ +--- +# Feel free to add content and custom Front Matter to this file. +# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults + +layout: home +--- + +Coming soon™ + +![](/assets/images/screenshot-1.png) \ No newline at end of file diff --git a/index.md b/index.md deleted file mode 100644 index dd930d4..0000000 --- a/index.md +++ /dev/null @@ -1,5 +0,0 @@ -## mediarepo - -Coming soon™ - -![](/assets/images/screenshot-1.png) \ No newline at end of file diff --git a/posts.html b/posts.html new file mode 100644 index 0000000..2ceb185 --- /dev/null +++ b/posts.html @@ -0,0 +1,11 @@ +--- +layout: page +title: Posts +permalink: /posts/ +--- + +
+ {% for post in site.posts %} + {% include post_block.html %} + {% endfor %} +
\ No newline at end of file