Skip to content

Commit d3645d4

Browse files
committed
Add photography layout and post filtering functionality
- Created a new photography index page to showcase travel and street photographs. - Implemented a new layout for photography posts, filtering them based on categories and tags. - Added a PostCard component to display individual photography posts with metadata. - Updated the blog layout to filter and display blog posts based on the 'blogs' category.
1 parent 9568a8a commit d3645d4

File tree

19 files changed

+565
-102
lines changed

19 files changed

+565
-102
lines changed

_config.icarus.yml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ logo: /img/logo.svg
77
# Page metadata configurations
88
head:
99
# URL or path to the website's icon
10-
favicon: /img/favicon.svg
10+
favicon: /img/favicon.png
1111
# Web application manifests configuration
1212
# https://developer.mozilla.org/en-US/docs/Web/Manifest
1313
manifest:
@@ -107,9 +107,10 @@ navbar:
107107
menu:
108108
Home: /
109109
Archives: /archives
110+
Blogs: /blogs
111+
Photography: /photography
110112
Categories: /categories
111113
Tags: /tags
112-
About: /about
113114
# Links to be shown on the right of the navigation bar
114115
links:
115116
Download on GitHub:
@@ -119,8 +120,6 @@ navbar:
119120
dark_mode_toggle: true
120121
# Page footer configurations
121122
footer:
122-
# Copyright text
123-
copyright: © 2019
124123
# Links to be shown on the right of the footer section
125124
links:
126125
Creative Commons:
@@ -208,7 +207,7 @@ donates:
208207
# Share plugin configurations
209208
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share/
210209
share:
211-
type: sharethis
210+
type: addtoany
212211
# URL to the ShareThis share plugin script
213212
install_url: ''
214213
# Sidebar configurations.
@@ -292,35 +291,35 @@ widgets:
292291
amount:
293292
# Whether to show tags count, i.e. number of posts in the tag.
294293
show_count: true
295-
# Google FeedBurner email subscription widget configurations
296-
-
297-
# Where should the widget be placed, left sidebar or right sidebar
298-
position: left
299-
type: subscribe_email
300-
# Hint text under the email input
301-
description:
302-
# Feedburner ID
303-
feedburner_id: ''
304-
# Google AdSense unit configurations
305-
-
306-
# Where should the widget be placed, left sidebar or right sidebar
307-
position: left
308-
type: adsense
309-
# AdSense client ID
310-
client_id: ''
311-
# AdSense AD unit ID
312-
slot_id: ''
313-
# Follow.it email subscription widget configurations
314-
-
315-
# Where should the widget be placed, left sidebar or right sidebar
316-
position: left
317-
type: followit
318-
# Hint text under the email input
319-
description:
320-
# Subscription form action URL
321-
action_url: ''
322-
# Feed claiming verification code
323-
verification_code: ''
294+
# Google FeedBurner email subscription widget configurations - DISABLED
295+
# -
296+
# # Where should the widget be placed, left sidebar or right sidebar
297+
# position: left
298+
# type: subscribe_email
299+
# # Hint text under the email input
300+
# description:
301+
# # Feedburner ID
302+
# feedburner_id: ''
303+
# Google AdSense unit configurations - DISABLED
304+
# -
305+
# # Where should the widget be placed, left sidebar or right sidebar
306+
# position: left
307+
# type: adsense
308+
# # AdSense client ID
309+
# client_id: ''
310+
# # AdSense AD unit ID
311+
# slot_id: ''
312+
# Follow.it email subscription widget configurations - DISABLED
313+
# -
314+
# # Where should the widget be placed, left sidebar or right sidebar
315+
# position: left
316+
# type: followit
317+
# # Hint text under the email input
318+
# description:
319+
# # Subscription form action URL
320+
# action_url: ''
321+
# # Feed claiming verification code
322+
# verification_code: ''
324323
# Plugin configurations
325324
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/
326325
plugins:

source/_posts/hello-world.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

source/_posts/python-pixi.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Python Pixi - Python Package Manager
3+
date: 2025-11-08 13:27:21
4+
categories: blogs
5+
tags:
6+
- python
7+
- pixi
8+
---
9+
10+
<!-- more -->
11+
12+
I've tried several Python package managers (pip, conda, Poetry). While trying Pixi, I found its features particularly useful for production setups.
13+
14+
In `pyproject.toml` you can define dependency groups for different environments (dev, test, prod). When installing, specify the environment so only the required dependencies are installed.
15+
16+
This helps keep production environments clean by excluding unnecessary packages.
17+
18+
You can also define reusable tasks and run them with `pixi run <task-name>`. This is a convenient way to run common commands defined in `pyproject.toml`.
19+
20+
## How to use Pixi for running a task
21+
pixi.toml
22+
23+
```toml
24+
[tasks]
25+
# Format code (black)
26+
format = "black src/"
27+
# Lint (ruff)
28+
lint = "ruff src/ --fix"
29+
```
30+
31+
Quick add commands:
32+
33+
```
34+
pixi task add format "black src/"
35+
pixi task add lint "ruff src/ --fix"
36+
```
37+
38+
Notes:
39+
40+
- Run a single task: `pixi run <task-name>`
41+
- Make tasks depend on each other if needed (e.g., run format before lint)

source/blogs/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Blogs
3+
layout: blogs
4+
date: 2025-01-01 00:00:00
5+
---
6+
Welcome to my blog section! Here you'll find various articles and posts on different topics. Stay tuned for updates!

source/img/favicon.png

1.28 KB
Loading

source/img/favicon.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

source/img/me.png

587 KB
Loading

source/photography/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Photography
3+
layout: photography
4+
date: 2025-11-08 00:00:00
5+
---
6+
7+
Collection of my travel and street photographs.

themes/icarus/include/style/base.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $menu-item-active-background-color ?= hsl(219, 70%, 96%)
4646
$content-heading-weight ?= $weight-normal
4747

4848

49-
$logo-height ?= 2.75rem
49+
$logo-height ?= 4rem
5050

5151
// FIXME: https://github.com/groenroos/bulma-stylus/issues/11
5252
@import bulma-stylus-root + '/utilities/initial-variables'

themes/icarus/include/style/navbar.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* ---------------------------------
22
* Top Navigation
33
* --------------------------------- */
4-
$navbar-item-padding-v ?= 1.25rem
4+
$navbar-item-padding-v ?= 0.375rem
55
$navbar-item-padding-h ?= .75rem
66
$navbar-item-margin-v ?= 0
77
$navbar-item-margin-h ?= 0

0 commit comments

Comments
 (0)