From 83655e3905201535e44cda41c0233ce86190e61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20Krau=C3=9Fe?= Date: Mon, 5 Aug 2024 13:35:29 +0200 Subject: [PATCH] moved the theme into the visible folder structure so that it may be modified easily. --- .editorconfig | 14 + .github/workflows/ci.yaml | 27 ++ .github/workflows/demo_site.yml | 48 +++ .gitignore | 25 +- 404.html | 3 +- CV.markdown => CV.md | 0 Gemfile | 40 +- Gemfile.lock | 227 +---------- LICENSE.txt | 21 + _config.yml | 109 ++++-- _includes/custom-head.html | 6 + _includes/disqus_comments.html | 20 + _includes/footer.html | 24 ++ _includes/google-analytics.html | 9 + _includes/head.html | 14 + _includes/header.html | 31 ++ _includes/social-icons/codeberg.svg | 11 + _includes/social-icons/devto.svg | 1 + _includes/social-icons/dribbble.svg | 1 + _includes/social-icons/facebook.svg | 1 + _includes/social-icons/flickr.svg | 1 + _includes/social-icons/github.svg | 1 + _includes/social-icons/gitlab.svg | 1 + _includes/social-icons/google_scholar.svg | 1 + _includes/social-icons/instagram.svg | 1 + _includes/social-icons/keybase.svg | 4 + _includes/social-icons/linkedin.svg | 1 + _includes/social-icons/mastodon.svg | 1 + _includes/social-icons/microdotblog.svg | 1 + _includes/social-icons/pinterest.svg | 1 + _includes/social-icons/rss.svg | 1 + _includes/social-icons/stackoverflow.svg | 1 + _includes/social-icons/telegram.svg | 1 + _includes/social-icons/twitter.svg | 1 + _includes/social-icons/whatsapp.svg | 4 + _includes/social-icons/x.svg | 3 + _includes/social-icons/youtube.svg | 1 + _includes/social-item.html | 7 + _includes/social.html | 5 + _includes/svg_symbol.html | 3 + _layouts/base.html | 20 + _layouts/home.html | 61 +++ _layouts/page.html | 14 + _layouts/post.html | 38 ++ _posts/2024-08-04-my-first-post.md | 15 +- _posts/2024-08-04-welcome-to-my-blog.markdown | 29 -- _posts/2024-08-05-How-to-create-a-blog.md | 90 +++++ _posts/2024-08-05-my-second-post.md | 6 + _sass/minima/_base.scss | 281 ++++++++++++++ _sass/minima/_layout.scss | 341 +++++++++++++++++ _sass/minima/custom-styles.scss | 2 + _sass/minima/custom-variables.scss | 1 + _sass/minima/initialize.scss | 50 +++ _sass/minima/skins/auto.scss | 361 ++++++++++++++++++ _sass/minima/skins/classic.scss | 5 + _sass/minima/skins/dark.scss | 5 + _sass/minima/skins/solarized-dark.scss | 5 + _sass/minima/skins/solarized-light.scss | 4 + _sass/minima/skins/solarized.scss | 201 ++++++++++ about.markdown | 7 - about.md | 9 + assets/css/style.scss | 7 + assets/minima-social-icons.liquid | 18 + index.markdown | 6 - index.md | 9 + minima.gemspec | 24 ++ notebooks/publish_notebook.sh | 7 +- script/bootstrap | 6 + script/build | 6 + script/cibuild | 15 + script/server | 3 + 71 files changed, 1973 insertions(+), 345 deletions(-) create mode 100644 .editorconfig create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/demo_site.yml rename CV.markdown => CV.md (100%) create mode 100644 LICENSE.txt create mode 100644 _includes/custom-head.html create mode 100644 _includes/disqus_comments.html create mode 100644 _includes/footer.html create mode 100644 _includes/google-analytics.html create mode 100644 _includes/head.html create mode 100644 _includes/header.html create mode 100644 _includes/social-icons/codeberg.svg create mode 100644 _includes/social-icons/devto.svg create mode 100644 _includes/social-icons/dribbble.svg create mode 100644 _includes/social-icons/facebook.svg create mode 100644 _includes/social-icons/flickr.svg create mode 100644 _includes/social-icons/github.svg create mode 100644 _includes/social-icons/gitlab.svg create mode 100644 _includes/social-icons/google_scholar.svg create mode 100644 _includes/social-icons/instagram.svg create mode 100644 _includes/social-icons/keybase.svg create mode 100644 _includes/social-icons/linkedin.svg create mode 100644 _includes/social-icons/mastodon.svg create mode 100644 _includes/social-icons/microdotblog.svg create mode 100644 _includes/social-icons/pinterest.svg create mode 100644 _includes/social-icons/rss.svg create mode 100644 _includes/social-icons/stackoverflow.svg create mode 100644 _includes/social-icons/telegram.svg create mode 100644 _includes/social-icons/twitter.svg create mode 100644 _includes/social-icons/whatsapp.svg create mode 100644 _includes/social-icons/x.svg create mode 100644 _includes/social-icons/youtube.svg create mode 100644 _includes/social-item.html create mode 100644 _includes/social.html create mode 100644 _includes/svg_symbol.html create mode 100644 _layouts/base.html create mode 100644 _layouts/home.html create mode 100644 _layouts/page.html create mode 100644 _layouts/post.html delete mode 100644 _posts/2024-08-04-welcome-to-my-blog.markdown create mode 100644 _posts/2024-08-05-How-to-create-a-blog.md create mode 100644 _sass/minima/_base.scss create mode 100644 _sass/minima/_layout.scss create mode 100644 _sass/minima/custom-styles.scss create mode 100644 _sass/minima/custom-variables.scss create mode 100644 _sass/minima/initialize.scss create mode 100644 _sass/minima/skins/auto.scss create mode 100644 _sass/minima/skins/classic.scss create mode 100644 _sass/minima/skins/dark.scss create mode 100644 _sass/minima/skins/solarized-dark.scss create mode 100644 _sass/minima/skins/solarized-light.scss create mode 100644 _sass/minima/skins/solarized.scss delete mode 100644 about.markdown create mode 100644 about.md create mode 100644 assets/css/style.scss create mode 100644 assets/minima-social-icons.liquid delete mode 100644 index.markdown create mode 100644 index.md create mode 100644 minima.gemspec create mode 100755 script/bootstrap create mode 100755 script/build create mode 100755 script/cibuild create mode 100755 script/server diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d5248e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..f2d6cd7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,27 @@ +name: Continuous Integration +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + name: "Test with Jekyll ${{ matrix.jekyll }}" + runs-on: "ubuntu-latest" + strategy: + matrix: + jekyll: ["~> 3.9", "~> 4.2"] + env: + JEKYLL_VERSION: ${{ matrix.jekyll }} + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Set Up Ruby 2.7 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + - name: Run tests + run: script/cibuild diff --git a/.github/workflows/demo_site.yml b/.github/workflows/demo_site.yml new file mode 100644 index 0000000..35037c6 --- /dev/null +++ b/.github/workflows/demo_site.yml @@ -0,0 +1,48 @@ +name: Build and Deploy Demo Site + +on: + # Run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + deploy_demo_site: + runs-on: "ubuntu-latest" + env: + BUNDLE_PATH: "vendor/bundle" + BUNDLE_JOBS: 4 + BUNDLE_RETRY: 3 + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + with: + repository: jekyll/minima + ref: demo-site + - name: Set up Ruby 2.7 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + - name: Clone target branch + run: | + REMOTE_BRANCH="${REMOTE_BRANCH:-gh-pages}" + REMOTE_REPO="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" + + echo "Publishing to ${GITHUB_REPOSITORY} on branch ${REMOTE_BRANCH}" + rm -rf _site/ + git clone --depth=1 --branch="${REMOTE_BRANCH}" --single-branch --no-checkout "${REMOTE_REPO}" _site/ + - name: Build site + run: bundle exec jekyll build --verbose --trace + - name: Deploy to GitHub Pages + run: | + SOURCE_COMMIT="$(git log -1 --pretty="%an: %B" "$GITHUB_SHA")" + pushd _site &>/dev/null + : > .nojekyll + + git add --all + git -c user.name="${GITHUB_ACTOR}" -c user.email="${GITHUB_ACTOR}@users.noreply.github.com" \ + commit --quiet \ + --message "Deploy demo-site from ${GITHUB_SHA}" \ + --message "$SOURCE_COMMIT" + git push + + popd &>/dev/null diff --git a/.gitignore b/.gitignore index f40fbd8..d96f072 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,22 @@ -_site -.sass-cache -.jekyll-cache +# Files generated by Jekyll +_site/ +.sass-cache/ +.jekyll-cache/ .jekyll-metadata -vendor + +# Files generated by Bundler +.bundle/ +vendor/ +Gemfile.lock + +# Gems +*.gem + +# Files generated by OS +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db diff --git a/404.html b/404.html index 086a5c9..70efccd 100644 --- a/404.html +++ b/404.html @@ -1,6 +1,5 @@ --- -permalink: /404.html -layout: default +layout: base ---