From a02c1a24043a67e90475b3073f0b9290afdb320c Mon Sep 17 00:00:00 2001 From: Syed Zayyan Masud Date: Sat, 29 Oct 2022 09:52:12 +0100 Subject: [PATCH] markdown 2 --- .github/workflows/build.yaml | 35 +++++++++++++++++++++++++++++++++++ README.md | 14 +++++++++++--- config.toml | 2 +- 3 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..3d6c0a4 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,35 @@ +env: + ZOLA_VERSION: "0.16.1" + SOURCE_BRANCH: "main" + TARGET_BRANCH: "gh-pages" + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v2 + - name: Install zola + run: | + set -x + wget -O - \ + "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" \ + | sudo tar xzf - -C /usr/local/bin + - name: Generate HTML & CNAME + run: | + zola build + - name: Deploy to gh-pages + if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', env.SOURCE_BRANCH) }} + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public + force_orphan: true \ No newline at end of file diff --git a/README.md b/README.md index 28594ed..d9b22c7 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,19 @@ # Shadharon -Simple blog theme powered by [Zola](getzola.org). See a live preview [here](https://github.com/syedzayyan/shadharon). +Simple blog theme powered by [Zola](getzola.org). See a live preview [here](https://syedzayyan.github.io/shadharon). > Name derived from the Bengali Word - সাধারণ which translates to "generic"
Dark theme - ![blog-dark]() + ![blog-dark](https://raw.githubusercontent.com/syedzayyan/shadharon/main/screenshot-dark.png) +
+ +
+ Light theme + + ![light-dark](https://raw.githubusercontent.com/syedzayyan/shadharon/main/screenshot-light.png)
## Features @@ -20,9 +26,11 @@ Simple blog theme powered by [Zola](getzola.org). See a live preview [here](http ## Installation +0. Initialize Git Repo if not initialized + 1. Download the theme ``` -git submodule add xxxxx themes/apollo +git submodule add https://github.com/syedzayyan/shadharon themes/shadharon ``` 2. Add `theme = "shadharon"` to your `config.toml` diff --git a/config.toml b/config.toml index 0bac017..a23d86e 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -base_url = "https://syedzayyan.com" +base_url = "https://syedzayyan.github.io/shadharon" title = "Heisenberg" description = "Walter is kind, caring and timid, but also demanding, calculating, and ruthless. His invented pseudonym, Heisenberg, becomes an alter ego – a fantasy for him to live out a love of power. Beneath both sides of his dual personality, he views the world in the rarefied scientific terms of chemistry."