diff --git a/README.md b/README.md index 976a08b..f84a153 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ This command will create a new markdown file in the `content/blog` directory wit title = '' description = '' author = '' -date = date of creation +date = 2022-08-29T00:00:00+00:00 draft = true tags = [''] slug = '' @@ -87,10 +87,15 @@ You can see your blog post in `http://localhost:1313/blog/your-post-slug` ### Images For adding images, you can use the `assets/images` directory. -### Image optmization +### Image in md files For optimizing images in markdown files use image shortcode: \ -`{{< image url="/images/image.png" optimize="1000x webp q50">}}` +`{{}}` \ +for class parameter check [tailwindcss](https://tailwindcss.com/) or just leave it empty +### Image in html files +For optimizing images in html files use image shortcode: \ +`{{partial "image.html" (dict "src" "images/image.png" "alt" "image title" "class" "")}}` \ +for class parameter check [tailwindcss](https://tailwindcss.com/) or just leave it empty ### Static assets For adding static assets, you can use the `static` directory. @@ -138,12 +143,6 @@ First you need Install [yarn](https://yarnpkg.com/). yarn run htmlproofer ``` -- Remove all metadata from PNG images using [ExifTool](https://exiftool.org/): - - ```bash - yarn run exif - ``` - ## Markdown Markdown is a lightweight markup language that uses plain text formatting syntax to convert text into HTML, diff --git a/content/blog/2022-10-30-dev-meeting.md b/content/blog/2022-10-30-dev-meeting.md index 96b2691..141923c 100644 --- a/content/blog/2022-10-30-dev-meeting.md +++ b/content/blog/2022-10-30-dev-meeting.md @@ -19,7 +19,8 @@ with team members from different time zones joining to discuss key aspects of th The meeting started in memory of [Mahsa Amini](https://en.wikipedia.org/wiki/Death_of_Mahsa_Amini). We in the Pactus family stand in solidarity with courageous people who are fighting for equality, equity and freedom in Iran. -![Woman Life Freedom](/images/women-life-freedom.png) +{{< image url="/images/women-life-freedom.png" title="Woman Life Freedom" >}} + ### Launching Block explorer diff --git a/content/blog/2023-05-08-release-0-10-0.md b/content/blog/2023-05-08-release-0-10-0.md index b7c686f..d57e6e0 100644 --- a/content/blog/2023-05-08-release-0-10-0.md +++ b/content/blog/2023-05-08-release-0-10-0.md @@ -23,7 +23,7 @@ that allows users to interact with the blockchain without the need to sync the e The main update in this version allows users to set up multiple validators in one node. Users can set up to 32 validators in a single node, and each validator can stake up to 1,000 coins. -![Multi validators](/images/multi-validators.png) +{{< image url="/images/multi-validators.png" title="Multi validators" class="" >}} ## Download diff --git a/content/blog/2023-05-29-release-0-11-0.md b/content/blog/2023-05-29-release-0-11-0.md index 33be23e..d036be2 100644 --- a/content/blog/2023-05-29-release-0-11-0.md +++ b/content/blog/2023-05-29-release-0-11-0.md @@ -29,7 +29,7 @@ Another significant update is that sending a [Bond transaction](https://docs.pac is now more user-friendly. Users no longer need to set the validator public key if they want to bond Test PAC coins to their validators. -![Bond transaction dialog](/images/bond-transaction-dialog.png) +{{< image url="/images/bond-transaction-dialog.png" title="Bond transaction dialog" class="" >}} ## Download diff --git a/content/blog/2023-06-19-release-0-12-0.md b/content/blog/2023-06-19-release-0-12-0.md index 7ff5f8d..df1b92c 100644 --- a/content/blog/2023-06-19-release-0-12-0.md +++ b/content/blog/2023-06-19-release-0-12-0.md @@ -24,7 +24,8 @@ This version is focused on improving the sync time to make it faster. This is achieved by implementing a caching mechanism that executes transactions more quickly and improves the calculation of total power (stake) of the blockchain in a more effective way. -![Syncing progress](/images/syncing-progress.png) +{{< image url="/images/syncing-progress.png" title="Syncing progress" class="" >}} + ## Download diff --git a/content/blog/2023-07-01-release-0-13-0.md b/content/blog/2023-07-01-release-0-13-0.md index 2f144a8..a8c460e 100644 --- a/content/blog/2023-07-01-release-0-13-0.md +++ b/content/blog/2023-07-01-release-0-13-0.md @@ -24,7 +24,7 @@ Users can now restore the `default_wallet` during the node initialization. If users have a backup of the seed phrase (mnemonic) for the `default_wallet`, they can now restore it and re-initialize the node. -![Restore mode](/images/restore-mode.png) +{{< image url="/images/restore-mode.png" title="Restore mode" class="" >}} ## Download diff --git a/content/blog/2023-08-01-testnet-1-concluded.md b/content/blog/2023-08-01-testnet-1-concluded.md index 8f0f1c2..82c015d 100644 --- a/content/blog/2023-08-01-testnet-1-concluded.md +++ b/content/blog/2023-08-01-testnet-1-concluded.md @@ -32,18 +32,19 @@ The size of the blockchain is about 300 megabytes. About 300,000 coins were staked during this period, it was almost 50% of the total generated coins. It shows that users, even in Testnet, tend to stake their coins. -![Staking chart](/images/staked-coins.png) +{{< image url="/images/staked-coins.png" title="Staking chart" class="" >}} We were able to extract the confirmation time of transactions. More than 97% of transactions were confirmed in just one block after submission. This indicates that the transaction pool and broadcasting models are working fine. -![Transaction confirmation chart](/images/transaction-confirmation.png) +{{< image url="/images/transaction-confirmation.png" title="Transaction confirmation chart" class="" >}} + Based on logs from one of the validators, the time for creating a block is about 3 seconds in normal cases. More than 97% of blocks are committed in the first rounds. -![Consensus round chart](/images/consensus-round.png) +{{< image url="/images/consensus-round.png" title="Consensus round chart" class="" >}} ## Major updates diff --git a/content/blog/2023-09-04-introduction-to-pips.md b/content/blog/2023-09-04-introduction-to-pips.md index 66484c8..480c854 100644 --- a/content/blog/2023-09-04-introduction-to-pips.md +++ b/content/blog/2023-09-04-introduction-to-pips.md @@ -48,4 +48,4 @@ Without approval from Pactus Laboratory team, changes won't be approved and adde For a complete list of Pactus Improvement Proposals, visit [this link](https://pips.pactus.org/). The corresponding GitHub repository is accessible [here](https://github.com/pactus-project/piPs/). -![PIPs repository on Github](/images/repository.png) \ No newline at end of file +{{< image url="/images/repository.png" title="PIPs repository on Github" class="" >}} diff --git a/content/blog/2023-09-28-how-sspos-works-in-simple-word.md b/content/blog/2023-09-28-how-sspos-works-in-simple-word.md index b8131be..4ad749f 100644 --- a/content/blog/2023-09-28-how-sspos-works-in-simple-word.md +++ b/content/blog/2023-09-28-how-sspos-works-in-simple-word.md @@ -22,7 +22,7 @@ Pactus Blockchain uses the SSPoS (Solid State Proof of State) which is a new con To explain how it works let's start with explaining one of the first and simplest consensus mechanisms (or if you already know them, just jump into the last part named SSPoS). -![Solid State Proof of Stake](/images/SSPoS.png) +{{< image url="/images/SSPoS.png" title="Solid State Proof of Stake" class="" >}} ## PoW (Proof of Work) diff --git a/content/blog/2023-10-15-release-0-15-0.md b/content/blog/2023-10-15-release-0-15-0.md index f2b808f..2d88690 100644 --- a/content/blog/2023-10-15-release-0-15-0.md +++ b/content/blog/2023-10-15-release-0-15-0.md @@ -18,7 +18,7 @@ is suitable for both beginners and experienced users. It also includes a command-line interface (CLI) for advanced users and wallet software that allows users to interact with the blockchain without the need to sync the entire blockchain. -![Splash screen](/images/splash-screen.png) +{{< image url="/images/splash-screen.png" title="Splash screen" class="" >}} ## Download diff --git a/content/blog/2023-10-29-release-0-16-0.md b/content/blog/2023-10-29-release-0-16-0.md index 05653db..018613c 100644 --- a/content/blog/2023-10-29-release-0-16-0.md +++ b/content/blog/2023-10-29-release-0-16-0.md @@ -24,7 +24,7 @@ This version allows users to create new addresses for both validators and accoun The networking module has been improved, and users can now set limits on the number of connections. A random crash on the agreement protocol has been fixed in this version. -![New address dialog](/images/new-address-dialog.png) +{{< image url="/images/new-address-dialog.png" title="New address dialog" class="" >}} ## Download diff --git a/content/blog/2024-01-11-release-0-20-0.md b/content/blog/2024-01-11-release-0-20-0.md index d694597..819f3d8 100644 --- a/content/blog/2024-01-11-release-0-20-0.md +++ b/content/blog/2024-01-11-release-0-20-0.md @@ -24,7 +24,8 @@ that allows users to interact with the blockchain without the need to sync the e The new GUI application enables users to easily Unbond and Withdraw their validator's stake. -![Withdraw dialog](/images/withdraw-dialog.png) +{{< image url="/images/withdraw-dialog.png" title="Withdraw dialog" class="" >}} + ### Improving Network Connectivity diff --git a/hugo.toml b/hugo.toml index 7c550bd..373ba80 100644 --- a/hugo.toml +++ b/hugo.toml @@ -72,3 +72,9 @@ relativeURLs = true hardWraps = false unsafe = true xhtml = false +[imaging] + [imaging.exif] + disableDate = false + disableLatLong = false + excludeFields = '' + includeFields = '' \ No newline at end of file diff --git a/layouts/about/roadmap.html b/layouts/about/roadmap.html index 95611dd..d412218 100644 --- a/layouts/about/roadmap.html +++ b/layouts/about/roadmap.html @@ -28,7 +28,7 @@

- + {{partial "image.html" (dict "src" "/images/gate2.png" "alt" "" "class" "relative max-w-[81%]")}}