~lord/krasovs.ky

01e0c1eb32d12f85da35a3e7dc0e759b81af1aed — Savely Krasovsky 2 months ago 7da6f8a
IPFS support added
3 files changed, 10 insertions(+), 5 deletions(-)

M .build.yml
M config.toml
M layouts/index.html
M .build.yml => .build.yml +7 -5
@@ 1,4 1,4 @@
image: alpine/edge
image: alpine/latest
packages:
  - rsync
  - hugo


@@ 10,11 10,13 @@ triggers:
  - action: email
    condition: always
    to: Savely Krasovsky <savely@krasovs.ky>
environment:
  site: krasovs.ky
tasks:
  - build: |
      cd krasovs.ky
      hugo --minify
      cd $site
      hugo --minify -d ../public
  - upload: |
      cd krasovs.ky
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      rsync -rP public/ deploy@krasovs.ky:/var/www/krasovs.ky/
\ No newline at end of file
      rsync -rP public/ deploy@krasovs.ky:/var/www/$site/
      ssh deploy@krasovs.ky "ipfs add -Qr /var/www/$site | ipfs name publish"
\ No newline at end of file

M config.toml => config.toml +1 -0
@@ 2,6 2,7 @@ baseURL = "https://krasovs.ky/"
title = "Savely Krasovsky's blog"
copyright = "© 2021 Savely Krasovsky"

relativeURLS=true
uglyurls = true
disablePathToLower = true
defaultContentLanguage = "en"

M layouts/index.html => layouts/index.html +2 -0
@@ 50,6 50,8 @@
                <dd><a href="https://t.me/kraso">@kraso</a></dd>
                <dt>pgp</dt>
                <dd><a href="/key.asc">4C738201BCF07EA0</a></dd>
                <dt>ipfs mirror</dt>
                <dd><a href="ipfs://krasovsky.eth">krasovsky.eth</a></dd>
            </dl>

            <small>