Skip to content

Commit

Permalink
7 blog images should be organized into folders (#22)
Browse files Browse the repository at this point in the history
* add asset shortcode

* remove unwanted things

* ignore image duplication

* orgonize assets by blog post name

* update doc

* update doc
  • Loading branch information
alidevjimmy authored Oct 4, 2024
1 parent 1374d18 commit c4b34b3
Show file tree
Hide file tree
Showing 69 changed files with 107 additions and 90 deletions.
45 changes: 26 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ To contribute, simply edit the relevant page or open a pull request.
## Running Locally

For running the website locally, you need to have the following installed on your machine:

- [Hugo](https://gohugo.io/)
- [Yarn](https://yarnpkg.com/) or [npm](https://www.npmjs.com/)

Expand Down Expand Up @@ -46,37 +47,43 @@ title = ''
description = ''
author = ''
date = 2022-08-29T00:00:00+00:00
draft = true
tags = ['']
slug = ''
image = "/images/pic.jpg"
image = "pic.jpg"
+++
```

Make sure to fill all the fields carefully as they are important for SEO and user-friendly URLs.\
After creating the file, you can start writing your blog post.\
You can see your blog post in `http://localhost:1313/blog/your-post-slug` \
**Note that description field is optional**
- **Note that description field is optional**

- **Note that for image only use the image name, the image should be in the `/assets/blog/{post-filename}/pic.jpg` directory**

### Blog assets

### Images
create a directory in `/assets/blog/{post-filename}/` and put all the images in that directory.

**IMPORTANT:** Your blog post file name and the directory you create for its asssets should have the same name

### Static assets

For adding images, you can use the `assets/images` directory.
For adding static assets, you can use the `/assets/blog/post-filename/image.png` directory.

### Image in md files
### Image

For optimizing images in markdown files use image shortcode: \
`{{<image url="/images/image.png" title="image title" class="">}}` \
for class parameter check [tailwindcss](https://tailwindcss.com/) or just leave it empty
`{{<image "image.png">}}`

### Image in html files
Also you can specify full image url like: \
`{{<image "/images/image.png">}}`

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.

### asset url

`{{<asset "asset.pdf">}}`

example use:

`[link]({{<asset "asset.pdf">}})`

### Style change

Expand Down Expand Up @@ -150,4 +157,4 @@ This command will check all documents in the `content` folder for any linting is
## Deployment

Updating the main branch will automatically deploy this repository through
[deploy](.github/workflows/deploy.yml) Github action.
[deploy](.github/workflows/deploy.yml) Github action.
2 changes: 1 addition & 1 deletion archetypes/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description = ''
author = ''
date = {{ .Date }}
tags = ['']
image = "/images/pic.jpg"
image = "pic.jpg"
+++
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 1 addition & 2 deletions content/blog/2022-10-30-dev-meeting.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ 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.

{{< image url="/images/women-life-freedom.png" title="Woman Life Freedom" >}}

![Woman Life Freedom]({{<image "women-life-freedom.png">}})

### Launching Block explorer

Expand Down
2 changes: 1 addition & 1 deletion content/blog/2022-11-24-release-0-9-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ This version includes several changes and improvements, such as:
- The GUI displays committee information

You can find the [full list of changes on Github](https://github.com/pactus-project/pactus/compare/v0.9.0...v0.9.1),
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v0.9.1)
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v0.9.1)
2 changes: 1 addition & 1 deletion content/blog/2023-03-31-what-is-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ for every individual who installs Pactus-GUI and starts a node in Testnet.
There are other positive conditions you may experience as an early contributor.

- Advanced and very responsive support for your issues (we dedicate more time to provide you with solutions)
- Embracing your suggestions, improvement ideas, needs and information you may require to have a better user experience.
- Embracing your suggestions, improvement ideas, needs and information you may require to have a better user experience.
2 changes: 1 addition & 1 deletion content/blog/2023-04-21-testnet-0-concluded.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ will receive bounty PAC coins to set up their validators.

We are grateful to all those who participated in Testnet-0, and
we encourage them to join our next Testnet to help us improve Pactus.
As a community-based project, we rely on the support of our community members, and we value any help we receive.
As a community-based project, we rely on the support of our community members, and we value any help we receive.
5 changes: 3 additions & 2 deletions content/blog/2023-05-08-release-0-10-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ 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.

{{< image url="/images/multi-validators.png" title="Multi validators" class="" >}}
![Multi validators]({{<image "multi-validators.png">}})


## Download

Expand Down Expand Up @@ -58,4 +59,4 @@ This version includes several changes and improvements, such as:
- using 2^256 for the vrf denominator ([#445](https://github.com/pactus-project/pactus/pull/445))

You can find the [full list of changes on Github](https://github.com/pactus-project/pactus/compare/v0.9.1...v0.10.0),
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v0.10.0)
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v0.10.0)
2 changes: 1 addition & 1 deletion content/blog/2023-05-29-release-0-11-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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.

{{< image url="/images/bond-transaction-dialog.png" title="Bond transaction dialog" class="" >}}
![Bond transaction dialog]({{<image "bond-transaction-dialog.png">}})

## Download

Expand Down
3 changes: 1 addition & 2 deletions content/blog/2023-06-19-release-0-12-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ 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.

{{< image url="/images/syncing-progress.png" title="Syncing progress" class="" >}}

![Syncing progress]({{<image "syncing-progress.png" >}})

## Download

Expand Down
2 changes: 1 addition & 1 deletion content/blog/2023-07-01-release-0-13-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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.

{{< image url="/images/restore-mode.png" title="Restore mode" class="" >}}
![Restore mode]({{<image "restore-mode.png">}})

## Download

Expand Down
4 changes: 2 additions & 2 deletions content/blog/2023-07-05-testnet-500-validators.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = '500 validators joined Testnet'
author = 'Pactus Team'
date = 2023-07-05T00:00:00+00:00
tags = ['announcement', 'pactus', 'testnet']
image = "/images/500-validators.png"
image = "500-validators.png"
+++

For a [Proof of Stake](https://docs.pactus.org/protocol/consensus/proof-of-stake/) blockchain, validators are important for
Expand All @@ -15,7 +15,7 @@ in less than 2 months.
This accomplishment proves that Pactus is reliable, resilient, and trustworthy. More importantly, it sets new standards
in the blockchain world. In fact, **the Pactus Testnet is even more decentralized than some well-known blockchains.**

![500 validators of Testnet]({% image_url %}/500-validators.png)
{{<image url="500-validators.png" title="500 validators of Testnet" class="">}}

One key reason why Pactus can accommodate more validators is its powerful
[consensus mechanism](https://docs.pactus.org/protocol/consensus/protocol/).
Expand Down
2 changes: 1 addition & 1 deletion content/blog/2023-07-09-dev-meeting.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The team discussed the relay nodes that enable communication for nodes behind NA
Upon receiving a message, the module publishes an event.
The two types of events are Gossip events and Steam events.

![Network messages]({% image_url %}/network-messages.png)
![Network messages]({{<image "network-messages.png">}})

The team discussed the issue of Relay connections resetting, and explored solutions such as
[hole punching](https://docs.libp2p.io/concepts/nat/hole-punching/) or using UDP and IPv6.
Expand Down
9 changes: 4 additions & 5 deletions content/blog/2023-08-01-testnet-1-concluded.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,18 @@ 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.

{{< image url="/images/staked-coins.png" title="Staking chart" class="" >}}
![Staking chart]({{<image "staked-coins.png">}})

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.

{{< image url="/images/transaction-confirmation.png" title="Transaction confirmation chart" class="" >}}

![Transaction confirmation chart]({{<image "transaction-confirmation.png">}})

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.

{{< image url="/images/consensus-round.png" title="Consensus round chart" class="" >}}
![Consensus round chart]({{<image "consensus-round.png">}})

## Major updates

Expand Down Expand Up @@ -73,4 +72,4 @@ will receive bounty PAC coins to set up their validators.

We are grateful to all those who participated in Testnet-1, and
we encourage them to join our next Testnet to help us improve Pactus.
As a community-based project, we rely on the support of our community members, and we value any help we receive.
As a community-based project, we rely on the support of our community members, and we value any help we receive.
4 changes: 2 additions & 2 deletions content/blog/2023-08-22-dev-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = 'Dev report'
author = 'Pactus Team'
date = 2023-08-22T00:00:00+00:00
tags = ['pactus', 'dev-report']
image = "/images/github-pactus.png"
image = "github-pactus.png"
+++

## Abstract
Expand Down Expand Up @@ -37,4 +37,4 @@ if you wish you can learn more about Pactus [consensus](https://docs.pactus.org/
some of previous Pactus dependencies was so old, so we start refactoring them and use new libraries.
also we used some libraries with higher performance which is make Pactus full node more faster in mainnet.

[one of refactors](https://github.com/pactus-project/pactus/pull/613)
[one of refactors](https://github.com/pactus-project/pactus/pull/613)
4 changes: 2 additions & 2 deletions content/blog/2023-09-04-introduction-to-pips.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = 'Introduction to PIPs'
author = 'Pactus Team'
date = 2023-09-04T00:00:00+00:00
tags = ['pactus', 'pip']
image = "/images/PIP.png"
image = "PIP.png"
+++

## Introduction to PIPs
Expand Down Expand Up @@ -45,4 +45,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/).

{{< image url="/images/repository.png" title="PIPs repository on Github" class="" >}}
![PIPs repository on Github]({{<image "repository.png">}})
2 changes: 1 addition & 1 deletion content/blog/2023-09-24-dev-report-pre-testnet-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = 'Dev Report pre-testnet2'
author = 'Pactus Team'
date = 2023-09-24T00:00:00+00:00
tags = ['pactus', 'dev-report']
image = "/images/github-pactus.png"
image = "github-pactus.png"
+++

## Abstract
Expand Down
7 changes: 4 additions & 3 deletions content/blog/2023-09-28-how-sspos-works-in-simple-word.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags = ['pactus', 'sspos']
image = "/images/pactus-blog-post-default.jpg"
+++

# Abstract
## Abstract

In all Blockchain protocols, there is a concept called a consensus mechanism.
This mechanism is used to enable nodes to reach an agreement
Expand All @@ -19,7 +19,8 @@ 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).

{{< image url="/images/SSPoS.png" title="Solid State Proof of Stake" class="" >}}
![Solid State Proof of Stake]({{<image "SSPoS.png">}})


## PoW (Proof of Work)

Expand Down Expand Up @@ -91,4 +92,4 @@ than the validator’s stake, they can enter the committee and replace the oldes
So, in SSPoS models which are a variant of PoS, we can reach a consensus,
without using high computation resources, having an inefficient
validation process by increasing validator numbers,
and also without breaking the principle of “don’t trust, verify”.
and also without breaking the principle of “don’t trust, verify”.
2 changes: 1 addition & 1 deletion content/blog/2023-10-15-release-0-15-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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.

{{< image url="/images/splash-screen.png" title="Splash screen" class="" >}}
![Splash screen]({{<image "splash-screen.png">}})

## Download

Expand Down
2 changes: 1 addition & 1 deletion content/blog/2023-10-29-release-0-16-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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.

{{< image url="/images/new-address-dialog.png" title="New address dialog" class="" >}}
![New address dialog]({{<image "new-address-dialog.png">}})

## Download

Expand Down
2 changes: 1 addition & 1 deletion content/blog/2023-11-12-release-0-17-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This gossip option is disabled by default but can be enabled in the configuratio
If you are running Pactus on a stable and reliable server, we recommend enabling this option for your node.
Please note that this option is still experimental and subject to potential changes in future releases.

![Node gossip in config file]({% image_url %}/node-gossip-config.png)
![Node gossip in config file]({{<image "node-gossip-config.png">}})

## Download

Expand Down
3 changes: 1 addition & 2 deletions content/blog/2024-01-11-release-0-20-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ 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.

{{< image url="/images/withdraw-dialog.png" title="Withdraw dialog" class="" >}}

![Withdraw dialog]({{<image "withdraw-dialog.png">}})

### Improving Network Connectivity

Expand Down
4 changes: 2 additions & 2 deletions content/blog/2024-01-31-release-1-0-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = 'Pactus 1.0.0 (Beijing) Released'
author = 'Pactus Team'
date = 2024-01-31T00:00:00+00:00
tags = ['announcement', 'release', 'pactus', 'beijing']
image = "/images/pactus-1-0-0-beijing.png"
image = "pactus-1-0-0-beijing.png"
+++

## Overview
Expand Down Expand Up @@ -69,4 +69,4 @@ This version includes several changes and improvements, such as:
- **consensus**: detect if the system time is behind the network ([#939](https://github.com/pactus-project/pactus/pull/939))

You can find the [full list of changes on Github](https://github.com/pactus-project/pactus/compare/v0.20.0...v1.0.0),
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v1.0.0)
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v1.0.0)
4 changes: 2 additions & 2 deletions content/blog/2024-02-10-release-1-0-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author = 'Pactus Team'
date = 2024-02-10T00:00:00+00:00
drat = false
tags = ['announcement', 'release', 'pactus', 'beijing']
image = "/images/pactus-1-0-1-beijing.png"
image = "pactus-1-0-1-beijing.png"
+++

## Overview
Expand Down Expand Up @@ -52,4 +52,4 @@ This version includes several changes and improvements, such as:
- **network**: redefine resource limits ([#1086](https://github.com/pactus-project/pactus/pull/1086))

You can find the [full list of changes on Github](https://github.com/pactus-project/pactus/compare/v1.0.0...v1.0.1),
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v1.0.1)
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v1.0.1)
4 changes: 2 additions & 2 deletions content/blog/2024-02-18-release-1-0-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = 'Pactus 1.0.2 (Istanbul) Released'
author = 'Pactus Team'
date = 2024-02-18T00:00:00+00:00
tags = ['announcement', 'release', 'pactus', 'istanbul']
image = "/images/pactus-1-0-2-istanbul.png"
image = "pactus-1-0-2-istanbul.png"
+++

## Overview
Expand Down Expand Up @@ -44,4 +44,4 @@ This version includes several changes and improvements, such as:
- **network**: remove disconnected peers from peerMgr ([#1110](https://github.com/pactus-project/pactus/pull/1110))

You can find the [full list of changes on Github](https://github.com/pactus-project/pactus/compare/v1.0.1...v1.0.2),
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v1.0.2)
as well as the [source code](https://github.com/pactus-project/pactus/releases/tag/v1.0.2)
2 changes: 1 addition & 1 deletion content/blog/2024-03-16-testnet-phoenix-launched.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = 'Pactus Permanent Phoenix Testnet Launched'
author = 'Pactus Team'
date = 2024-03-16T00:00:00+00:00
tags = ['announcement', 'testnet', 'pactus']
image = "/images/pactus-public-testnet-phoenix.png"
image = "pactus-public-testnet-phoenix.png"
+++

## Overview
Expand Down
4 changes: 1 addition & 3 deletions content/blog/2024-04-18-release-1-1-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ title = 'Pactus 1.1.1 (Jakarta) Released'
author = 'Pactus Team'
date = 2024-04-18T00:00:00+00:00
tags = ['announcement', 'release']
image = "/images/pactus-1-1-1-jakarta.png"
image = "pactus-1-1-1-jakarta.png"
+++

## Overview

## Overview

Pactus Blockchain [Version 1.1.1 (Jakarta)](https://github.com/pactus-project/pactus/releases/tag/v1.1.1)
is now available for download.
This release includes the following applications:
Expand Down
Loading

0 comments on commit c4b34b3

Please sign in to comment.