Multi blog blog for Swarm. Uses Multilanguage as a solution to host multiple blogs in one site.
Content is hosted on Forestry.
- Install
nodeandnpm - Install Hugo
- Linux , WSL on windows:
sudo snap install hugo - Mac:
brew install hugo - Windows: Using
scooporchocochoco install hugo-extendedscoop install hugo-extended
- Linux , WSL on windows:
git clone https://github.com/ethersphere/ethswarm-blog-hugo.git
cd ethswarm-blog-hugo
hugo serverBrowse to http://localhost:1313/ to view the blog.
Run the commands in the theme directory themes/swarm-blog:
npm install
npm run devRun the command in the theme directory themes/swarm-blog:
npm run buildRun the command in the project root directory:
hugo -D --gc && npx -y pagefind --site publichttps://pagefind.app/ Pagefind is used to generate the local search index and perform the search. Their UI component is styled to match the blog.
The index should be rebuilt every time the content changes.
npx pagefind --source "public" --force_language "en"{{< image src="path/to/image.jpg" alt="Alt text" caption="Caption" >}}It can contain markdown content. Default type is note. We have note, tip, info, warning and danger to choose from. The type is the first argument.
{{< admonition note >}}
**bold**
- list
- item nr 2
{{< /admonition >}}