From a58794830c64fcd15b8957519c547397691fb914 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 6 Feb 2024 15:15:40 +0000 Subject: [PATCH] Add blog --- _config.yml | 11 ++++ _includes/header.html | 9 ++++ _includes/pagination.html | 17 ++++++ _layouts/post.html | 38 +------------- _posts/2022-11-24-github-copilot.md | 77 ++++++++++++++++++++++++++++ _sass/_base.scss | 60 ++++++++++++++++++++++ assets/img/copilot.png | Bin 0 -> 255761 bytes blog/index.html | 49 ++++++++++++++++++ 8 files changed, 225 insertions(+), 36 deletions(-) create mode 100644 _includes/pagination.html create mode 100644 _posts/2022-11-24-github-copilot.md create mode 100644 assets/img/copilot.png create mode 100644 blog/index.html diff --git a/_config.yml b/_config.yml index 7eb6eb2..41de483 100644 --- a/_config.yml +++ b/_config.yml @@ -45,6 +45,17 @@ contact_note: google_site_verification: +# ----------------------------------------------------------------------------- +# Blog +# ----------------------------------------------------------------------------- + +blog_name: blog +blog_description: blog +permalink: /blog/:year/:title/ + +pagination: + enabled: true + # ----------------------------------------------------------------------------- # Collections # ----------------------------------------------------------------------------- diff --git a/_includes/header.html b/_includes/header.html index 2f6663d..c12dd71 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -25,6 +25,15 @@ {%- endif -%} + {% if site.blog_name %} + + {%- endif %} {%- assign sorted_pages = site.pages | sort: "title" -%} {%- for p in sorted_pages -%} diff --git a/_includes/pagination.html b/_includes/pagination.html new file mode 100644 index 0000000..4b8d27e --- /dev/null +++ b/_includes/pagination.html @@ -0,0 +1,17 @@ +{%- if paginator.total_pages > 1 -%} + +{%- endif -%} diff --git a/_layouts/post.html b/_layouts/post.html index 7210157..6391421 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,8 +2,6 @@ layout: default --- {%- assign year = page.date | date: "%Y" -%} -{%- assign tags = page.tags | join: "" -%} -{%- assign categories = page.categories | join: "" -%} {% if page._styles %}