Compare commits

...

8 Commits

7 changed files with 75 additions and 14 deletions

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"

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

View File

@ -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
content/posts/_index.md Normal file
View File

@ -0,0 +1,6 @@
+++
title = "Posts"
description = "Blog posts accumulated over the time."
sort_by = "date"
paginate_by = 5
+++

19
flake.lock generated
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",

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}
'';

BIN
static/images/my_avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB