From 747c75dffc5cc5a993a25d74e8cfa7b81be00ac4 Mon Sep 17 00:00:00 2001 From: "Radu C. Martin" Date: Sun, 6 Apr 2025 18:16:14 +0200 Subject: [PATCH] WIP: streamline some stuff --- Dockerfile | 3 -- LICENSE | 21 ------------- README.md | 43 -------------------------- _config.yml | 8 ++--- _data/contact.yml | 6 +++- _data/share.yml | 48 ++++++++++++++--------------- _drafts/2025-04-06-hello-friend.md | 35 +++++++++++++++++++++ _tabs/about.md | 2 ++ assets/{ => img}/avatar.png | Bin docker-compose.yml | 16 ---------- 10 files changed, 70 insertions(+), 112 deletions(-) delete mode 100644 Dockerfile delete mode 100644 LICENSE delete mode 100644 README.md create mode 100644 _drafts/2025-04-06-hello-friend.md rename assets/{ => img}/avatar.png (100%) delete mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 234a92e..0000000 --- a/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM nginx:1.27.4@sha256:124b44bfc9ccd1f3cedf4b592d4d1e8bddb78b51ec2ed5056c52d3692baebc19 - -COPY _site /usr/share/nginx/html diff --git a/LICENSE b/LICENSE deleted file mode 100644 index a6f6c9f..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Cotes Chung - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index 793cd08..0000000 --- a/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# Chirpy Starter - -[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy)][gem]  -[![GitHub license](https://img.shields.io/github/license/cotes2020/chirpy-starter.svg?color=blue)][mit] - -When installing the [**Chirpy**][chirpy] theme through [RubyGems.org][gem], Jekyll can only read files in the folders -`_data`, `_layouts`, `_includes`, `_sass` and `assets`, as well as a small part of options of the `_config.yml` file -from the theme's gem. If you have ever installed this theme gem, you can use the command -`bundle info --path jekyll-theme-chirpy` to locate these files. - -The Jekyll team claims that this is to leave the ball in the user’s court, but this also results in users not being -able to enjoy the out-of-the-box experience when using feature-rich themes. - -To fully use all the features of **Chirpy**, you need to copy the other critical files from the theme's gem to your -Jekyll site. The following is a list of targets: - -```shell -. -├── _config.yml -├── _plugins -├── _tabs -└── index.html -``` - -To save you time, and also in case you lose some files while copying, we extract those files/configurations of the -latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes. - -## Usage - -Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki). - -## Contributing - -This repository is automatically updated with new releases from the theme repository. If you encounter any issues or want to contribute to its improvement, please visit the [theme repository][chirpy] to provide feedback. - -## License - -This work is published under [MIT][mit] License. - -[gem]: https://rubygems.org/gems/jekyll-theme-chirpy -[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/ -[CD]: https://en.wikipedia.org/wiki/Continuous_deployment -[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE diff --git a/_config.yml b/_config.yml index 3ab93e8..f4dc3c0 100644 --- a/_config.yml +++ b/_config.yml @@ -64,8 +64,8 @@ analytics: goatcounter: id: # fill in your GoatCounter ID umami: - id: # fill in your Umami ID - domain: # fill in your Umami domain + id: bce05e76-5cae-4688-a389-99bb87649d44 + domain: https://umami.martin.md matomo: id: # fill in your Matomo ID domain: # fill in your Matomo domain @@ -99,7 +99,7 @@ theme_mode: # [light | dark] cdn: # the avatar on sidebar, support local or CORS resources -avatar: '/assets/avatar.png' +avatar: '/assets/img/avatar.png' # The URL of the site-wide social preview image used in SEO `og:image` meta tag. # It can be overridden by a customized `page.image` in front matter. @@ -178,7 +178,7 @@ defaults: type: posts values: layout: post - comments: true # Enable comments in posts. + comments: false # Enable comments in posts. toc: true # Display TOC column in posts. # DO NOT modify the following parameter unless you are confident enough # to update the code of all other post links in this project. diff --git a/_data/contact.yml b/_data/contact.yml index 3574e11..103efaf 100644 --- a/_data/contact.yml +++ b/_data/contact.yml @@ -1,9 +1,13 @@ # The contact options. # icons powered by -# + - type: github icon: "fab fa-github" +- type: forgejo + icon: 'fab fa-git-alt' + url: 'https://git.martin.md/radu' + # - type: email # icon: "fas fa-envelope" # noblank: true # open link in current tab diff --git a/_data/share.yml b/_data/share.yml index 6f97568..a316a72 100644 --- a/_data/share.yml +++ b/_data/share.yml @@ -2,13 +2,13 @@ # Icons from platforms: - - type: Twitter - icon: "fa-brands fa-square-x-twitter" - link: "https://twitter.com/intent/tweet?text=TITLE&url=URL" - - - type: Facebook - icon: "fab fa-facebook-square" - link: "https://www.facebook.com/sharer/sharer.php?title=TITLE&u=URL" + # - type: Twitter + # icon: "fa-brands fa-square-x-twitter" + # link: "https://twitter.com/intent/tweet?text=TITLE&url=URL" + # + # - type: Facebook + # icon: "fab fa-facebook-square" + # link: "https://www.facebook.com/sharer/sharer.php?title=TITLE&u=URL" - type: Telegram icon: "fab fa-telegram" @@ -24,23 +24,23 @@ platforms: # icon: "fab fa-weibo" # link: "https://service.weibo.com/share/share.php?title=TITLE&url=URL" # - # - type: Mastodon - # icon: "fa-brands fa-mastodon" - # # See: https://github.com/justinribeiro/share-to-mastodon#properties - # instances: - # - label: mastodon.social - # link: "https://mastodon.social/" - # - label: mastodon.online - # link: "https://mastodon.online/" - # - label: fosstodon.org - # link: "https://fosstodon.org/" - # - label: photog.social - # link: "https://photog.social/" - # - # - type: Bluesky - # icon: "fa-brands fa-bluesky" - # link: "https://bsky.app/intent/compose?text=TITLE%20URL" - # + - type: Mastodon + icon: "fa-brands fa-mastodon" + # See: https://github.com/justinribeiro/share-to-mastodon#properties + instances: + - label: mastodon.social + link: "https://mastodon.social/" + - label: mastodon.online + link: "https://mastodon.online/" + - label: fosstodon.org + link: "https://fosstodon.org/" + - label: photog.social + link: "https://photog.social/" + + - type: Bluesky + icon: "fa-brands fa-bluesky" + link: "https://bsky.app/intent/compose?text=TITLE%20URL" + # - type: Reddit # icon: "fa-brands fa-square-reddit" # link: "https://www.reddit.com/submit?url=URL&title=TITLE" diff --git a/_drafts/2025-04-06-hello-friend.md b/_drafts/2025-04-06-hello-friend.md new file mode 100644 index 0000000..f26540c --- /dev/null +++ b/_drafts/2025-04-06-hello-friend.md @@ -0,0 +1,35 @@ +--- +title: Hello, Friend +description: So I've decided to have a blog +date: 2025-04-06 12:33 +0200 +categories: [Technology, Homelab] +tags: [selfhosted, blog, ci] +--- + +# First Heading + +## Second heading + +Some text + +### Third heading + +#### Fourth heading +How deep can we go? + +#### Fourth heading V2 + +### Third heading V2 + +#### Fourth heading V3 +`inline code` + +```c# + +private class Test() { + +private int TestValue {get; set;} + +} + +``` diff --git a/_tabs/about.md b/_tabs/about.md index ddb2bc4..0d12a82 100644 --- a/_tabs/about.md +++ b/_tabs/about.md @@ -6,3 +6,5 @@ order: 4 > Add Markdown syntax content to file `_tabs/about.md`{: .filepath } and it will show up on this page. {: .prompt-tip } + +TODO: Some info about me diff --git a/assets/avatar.png b/assets/img/avatar.png similarity index 100% rename from assets/avatar.png rename to assets/img/avatar.png diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index da804ee..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,16 +0,0 @@ -services: - - blog: - image: git.martin.md/radu/blog:latest@sha256:7de45b21e33343b58cf29036c4f0818cb4e2e28325f1cb51ee05884f437c36fc - restart: unless-stopped - labels: - - "traefik.enable=true" - - "traefik.http.routers.blog.rule=Host(`${DC_BLOG_HOSTNAME:-blog.martin.md}`)" - - "traefik.http.routers.blog.entrypoints=websecure" - networks: - - traefik - -networks: - traefik: - external: true -