diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 12d40f6..1775986 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,18 +1,11 @@ -# Please see the documentation for all configuration options: -# - https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - version: 2 updates: - # Enable version updates for Docker - package-ecosystem: "docker" # Look for a `Dockerfile` in the `root` directory directory: "/" schedule: - interval: "weekly" - day: "friday" - time: "07:00" - timezone: "Asia/Yekaterinburg" + interval: "monthly" labels: - "dependencies" @@ -20,10 +13,7 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" - day: "friday" - time: "07:00" - timezone: "Asia/Yekaterinburg" + interval: "monthly" labels: - "dependencies" @@ -31,9 +21,13 @@ updates: - package-ecosystem: "npm" directory: "/" schedule: - interval: "weekly" - day: "friday" - time: "07:00" - timezone: "Asia/Yekaterinburg" + interval: "monthly" labels: - "dependencies" + + - package-ecosystem: bundler + directory: / + schedule: + interval: monthly + allow: + - dependency-type: direct diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 0000000..acbffde --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,64 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 + with: + ruby-version: '3.1' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production + - name: Upload artifact + # Automatically uploads an artifact from the './_site' directory by default + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index 2d105c4..5a15a1d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,12 @@ -.DS_Store -_site +# Ignore metadata generated by Jekyll +_site/ +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata -# PHPStorm +# IDEs .idea -node_modules +.vscode + +# OS X +.DS_Store diff --git a/404.html b/404.html index afe10a6..c472b4e 100644 --- a/404.html +++ b/404.html @@ -1,9 +1,24 @@ --- -layout: not_found -title: 404 -permalink: /404.html +layout: default --- -
Page not found :(
+The requested page could not be found.
++ {{ post.excerpt | strip_html | strip_newlines | truncate: 186}} +
+ + In + {% for category in post.categories %} + {{ category }}, + {% endfor %} + + + + {{ post.date | date: '%d.%m.%Y' }} + +" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "" %}
{% endif %}{% unless _pre_before contains "" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = "
Step | Bytes |
raw | {{ content | size }}{% if _profile_endings %} |
endings | {{ _profile_endings }}{% endif %}{% if _profile_startings %} |
startings | {{ _profile_startings }}{% endif %}{% if _profile_comments %} |
comments | {{ _profile_comments }}{% endif %}{% if _profile_collapse %} |
collapse | {{ _profile_collapse }}{% endif %}{% if _profile_clippings %} |
clippings | {{ _profile_clippings }}{% endif %} |
+ + {% for category in page.categories %} + {{ category | downcase }} + + {% endfor %} + +
+Этот блог хостится на платформе GitHub Pages и автоматически публикуется при внесении правок + в репозиторий проекта. Если хотите узнавать о новых публикациях, перейдите в репозиторий проекта на GitHub и поставьте ☆ звезду.
+ + Перейти в репозиторий на GitHub + ++ {{ latest_post.excerpt | strip_html | strip_newlines | truncate: 136 }} +
++ {{ post.excerpt | strip_html | strip_newlines | truncate: 136 }} +
+ Читать дальше +