Compare commits

..

8 Commits

Author SHA1 Message Date
asmir b455eaa882 restore content index 2023-11-15 19:55:20 +01:00
asmir d35a5e6bc3 restore index from previous theme 2023-11-15 18:49:58 +01:00
asmir 4de0fa9980 avatar: rename and resize canvas to 720 2023-11-15 18:07:00 +01:00
asmir 1c259e05b3 theme: set avatar, username, content 2023-11-15 17:22:15 +01:00
asmir d36083c44f config: adjust for new theme 2023-11-15 16:49:27 +01:00
asmir 3212d72cf7 content/blog -> content/posts 2023-11-15 16:49:00 +01:00
asmir 2383c813c1 theme: anemone -> DeepThought 2023-11-15 16:43:50 +01:00
asmir aacdd3b2cc post: start post about gpg publik key usage 2023-11-15 16:42:42 +01:00
7 changed files with 75 additions and 14 deletions
+16 -6
View File
@@ -7,17 +7,27 @@ compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false
theme = "anemone"
theme = "DeepThought"
minify_html = true
[markdown]
highlight_code = true
[extra]
list_pages = true
header_nav = [
{ url = "/", name_en = "/home/"},
{ url = "/blog", name_en = "/blog/"},
{ url = "https://git.project-cloud.net", name_en = "/git/"},
{ url = "https://cloud.project-cloud.net", name_en = "/cloud/"}
navbar_items = [
{ code = "en", nav_items = [
{ url = "/", name = "/home/"},
{ url = "/posts", name = "/posts/"},
{ url = "https://git.project-cloud.net", name = "/git/"},
{ url = "https://cloud.project-cloud.net", name = "/cloud/"}
]},
]
[extra.social]
# Author details
[extra.author]
name = "Asmir Abdulahovic"
avatar = "/images/my_avatar.png"
+2 -5
View File
@@ -1,11 +1,8 @@
+++
title = "project cloud"
description = "Cloud and blog platform for personal and consulting projects."
+++
## Project Cloud
Cloud and blog platform for personal and consulting projects.
## Public Key
WP
@@ -0,0 +1,25 @@
+++
title = "Using GPG Public Key"
+++
GNU Privacy Guart (GPG) is an pupular two factor encrytpion system often used for signing or encrypting emails, files or even git commits.
This post foruces on using provided public key to check signature validity for files signed using complementary public key.
## Importing Key
One way to keep prublic keys is by using a keyserver such as _hkps://keyserver.ubuntu.com_.
To import key with ID **3BDD542C9B0BE180D5802DFF020C42B7A9ABA3E2** from _hkps://keyserver.ubuntu.com_ keyserver
issue command:
```bash
$ gpg2 --keyserver hkps://keyserver.ubuntu.com --recv-key 3BDD542C9B0BE180D5802DFF020C42B7A9ABA3E2
```
It's also possible to use "short" ID by using only the last 8 digits of hexadecimal
ID representation, in our case **A9ABA3E2** - but it's discourages because of possible ID collisions.
To search and import a key using email, example _asmir.abdulahovic@gmail.com_ issue command:
```bash
$ gpg2 --keyserver hkps://keyserver.ubuntu.com \
--search-keys "asmir.abdulahovic@gmail.com"
```
Note **hkps** protocol selection acts simmilary as **https** for **http**,
prefferably use it to avoid **MITM** and other attacks.
+6
View File
@@ -0,0 +1,6 @@
+++
title = "Posts"
description = "Blog posts accumulated over the time."
sort_by = "date"
paginate_by = 5
+++
Generated
+18 -1
View File
@@ -19,7 +19,8 @@
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"theme_anemone": "theme_anemone"
"theme_anemone": "theme_anemone",
"theme_deepthought": "theme_deepthought"
}
},
"theme_anemone": {
@@ -37,6 +38,22 @@
"repo": "anemone",
"type": "github"
}
},
"theme_deepthought": {
"flake": false,
"locked": {
"lastModified": 1681035730,
"narHash": "sha256-dzhfGmhuNCbloqknM7lVnFbNYmf2/ue7az6DQok44yM=",
"owner": "RatanShreshtha",
"repo": "DeepThought",
"rev": "430c1d5085dd6bea4cd6bd2d55003db67ba6bea0",
"type": "github"
},
"original": {
"owner": "RatanShreshtha",
"repo": "DeepThought",
"type": "github"
}
}
},
"root": "root",
+8 -2
View File
@@ -5,10 +5,16 @@
flake = false;
};
inputs.theme_deepthought = {
url = "github:RatanShreshtha/DeepThought";
flake = false;
};
outputs = {
self,
nixpkgs,
theme_anemone,
theme_deepthought,
}: let
supportedSystems = ["x86_64-linux" "aarch64-linux"];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
@@ -16,7 +22,7 @@
url_deploy = "https://project-cloud.net";
url_local = "http://localhost:8080";
name = "project-cloud";
theme = theme_anemone;
theme = theme_deepthought;
package = system: url:
pkgs.${system}.stdenv.mkDerivation {
inherit name;
@@ -26,7 +32,7 @@
submodules = true;
buildPhase = ''
ln -s ${theme} themes/anemone
ln -s ${theme} themes/DeepThought
zola build -u ${url}
'';
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB