From b988c504d45995a6facd0da094187ae25732e91e Mon Sep 17 00:00:00 2001 From: Surya Date: Sun, 28 Nov 2021 14:11:13 +0530 Subject: [PATCH] Change look --- Gemfile.lock | 7 +++++++ _config-dev.yml | 25 +++++++++++++++++++++++++ _includes/head.html | 11 ----------- _layouts/post.html | 4 ++-- _scripts/build-dev.sh | 2 ++ _scripts/run-dev.sh | 1 + index.html | 23 ++++++++++------------- public/css/custom.css | 13 +++++++++++++ public/css/poole.css | 2 +- 9 files changed, 61 insertions(+), 27 deletions(-) create mode 100644 _config-dev.yml create mode 100644 _scripts/build-dev.sh create mode 100644 _scripts/run-dev.sh diff --git a/Gemfile.lock b/Gemfile.lock index e0adb55..73cd280 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -15,10 +15,12 @@ GEM eventmachine (>= 0.12.9) http_parser.rb (~> 0.6.0) eventmachine (1.2.7) + eventmachine (1.2.7-x64-mingw32) faraday (1.1.0) multipart-post (>= 1.2, < 3) ruby2_keywords ffi (1.13.1) + ffi (1.13.1-x64-mingw32) forwardable-extended (2.6.0) gemoji (3.0.1) html-pipeline (2.14.0) @@ -69,6 +71,8 @@ GEM multipart-post (2.1.1) nokogiri (1.10.10) mini_portile2 (~> 2.4.0) + nokogiri (1.10.10-x64-mingw32) + mini_portile2 (~> 2.4.0) octokit (4.19.0) faraday (>= 0.9) sawyer (~> 0.8.0, >= 0.5.3) @@ -84,6 +88,8 @@ GEM safe_yaml (1.0.5) sassc (2.4.0) ffi (~> 1.9) + sassc (2.4.0-x64-mingw32) + ffi (~> 1.9) sawyer (0.8.2) addressable (>= 2.3.5) faraday (> 0.8, < 2.0) @@ -96,6 +102,7 @@ GEM PLATFORMS ruby + x64-mingw32 DEPENDENCIES jekyll diff --git a/_config-dev.yml b/_config-dev.yml new file mode 100644 index 0000000..96d4ec6 --- /dev/null +++ b/_config-dev.yml @@ -0,0 +1,25 @@ +# Setup +title: The Neophyte +tagline: 'Blog' +description: 'Article subjects all over the place, for fellow neophytes!' +url: https://localhost:4000 +baseurl: '' +paginate: 5 +permalink: pretty + +# About/contact +author: + name: Surya + email: n.suryap@gmail.com + +# Gems +plugins: + - jekyll-paginate + - jemoji + +# Serving +host: localhost +port: 4000 + +# Custom vars +version: 1.1.0 diff --git a/_includes/head.html b/_includes/head.html index 07b25c2..937e855 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -22,15 +22,4 @@ - - {% if site.google_analytics_id %} - - {% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index a57a9ec..01b6c88 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -11,7 +11,7 @@ layout: default {{ content }} -{% if site.related_posts.size >= 1 %} + diff --git a/_scripts/build-dev.sh b/_scripts/build-dev.sh new file mode 100644 index 0000000..f7fd051 --- /dev/null +++ b/_scripts/build-dev.sh @@ -0,0 +1,2 @@ +bundle install +jekyll build --config _config-dev.yml diff --git a/_scripts/run-dev.sh b/_scripts/run-dev.sh new file mode 100644 index 0000000..96e0126 --- /dev/null +++ b/_scripts/run-dev.sh @@ -0,0 +1 @@ +jekyll serve --config _config-dev.yml diff --git a/index.html b/index.html index 2af1734..664737c 100644 --- a/index.html +++ b/index.html @@ -5,20 +5,17 @@ title: Home
{% for post in paginator.posts %} -
-

- + +
+

{{ post.title }} - -

- - - - {% capture content %}{{ post.content }}{% endcapture %}{% include minutes_to_read.html %} - - {{ post.excerpt }} -

Read more...

-
+

+ + + {% capture content %}{{ post.content }}{% endcapture %}{% include minutes_to_read.html %} + {{ post.excerpt }} +
+ {% endfor %}
diff --git a/public/css/custom.css b/public/css/custom.css index 7beffb8..d259dce 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -46,3 +46,16 @@ a.navbar-link:active{ display: inline-block; } +.paginated-post { + display: inline-block; + margin: 1rem; + box-shadow: 0.1rem 0.1rem 0.3rem 0.1rem rgba(0,0,0,0.2); + border-radius: 0.5rem; + padding: 1rem; + color: rgba(1, 19, 27, 0.712); +} + +.paginated-post:hover { + box-shadow: 0.2rem 0.2rem 0.3rem 0.1rem rgba(0, 11, 15, 0.616); +} + diff --git a/public/css/poole.css b/public/css/poole.css index 15b94a0..1f16afd 100644 --- a/public/css/poole.css +++ b/public/css/poole.css @@ -76,7 +76,7 @@ a strong { /* `:focus` is linked to `:hover` for basic accessibility */ a:hover, a:focus { - text-decoration: underline; + text-decoration: none; } /* Headings */