Skip to content

Commit

Permalink
установлен плагин для генерации карты сайта
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegSanych committed Nov 11, 2024
1 parent 1b2119c commit 147e31e
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gem "jekyll-theme-chirpy", "~> 7.0", ">= 7.0.1" # установка темы
gem 'jekyll-compose', group: [:jekyll_plugins] # создание заготовки поста
gem 'jekyll-seo-tag' # добавляет поддержку seo тэгов
gem 'jekyll-relative-links' # добовляет относительные ссылки
gem 'jekyll-sitemap' # генератор sitemap.xml

group :test do
gem "html-proofer", "~> 5.0"
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ jekyll-archives:
plugins:
- jekyll-seo-tag
- jekyll-relative-links
- jekyll-sitemap

# jekyll_compose:
# default_front_matter:
Expand Down
3 changes: 1 addition & 2 deletions _posts/2024-09-20-find-poisk-fajlov-i-direktorij.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ description: Команда find в Linux используется для пои
# image: X975K.jpg
categories:
- Linux
- Консольные приложения
- Console
tags:
- linux
- find
- поиск
- bash
date: 2024-09-20 14:43 +0300
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2024-09-20-linux-filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Linux. Справочник. Иерархия файловой си
# image: X97LH.jpg
categories:
- Linux
- Справочник
- TLDR
tags:
- linux
- pocketbook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Curl - работа с HTTP запросами из командной с
description: Утилита curl – это мощный инструмент для работы с HTTP-запросами и взаимодействия с различными API
categories:
- Linux
- Консольные приложения
- Console
tags:
- linux
- curl
Expand Down
14 changes: 14 additions & 0 deletions assets/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: page
title: "404: Page not found"
permalink: /404.html

redirect_from:
- /norobots/
- /assets/
- /posts/
---

{% include lang.html %}

<p class="lead">{{ site.data.locales[lang].not_found.statement }}</p>
54 changes: 54 additions & 0 deletions assets/feed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
layout: compress
permalink: /feed.xml
# Atom Feed, reference: https://validator.w3.org/feed/docs/atom.html
---

{% capture source %}
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ "/" | absolute_url }}</id>
<title>{{ site.title }}</title>
<subtitle>{{ site.description }}</subtitle>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<author>
<name>{{ site.social.name }}</name>
<uri>{{ "/" | absolute_url }}</uri>
</author>
<link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/>
<link rel="alternate" type="text/html" hreflang="{{ site.alt_lang | default: site.lang }}"
href="{{ '/' | absolute_url }}"/>
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights>
<icon>{{ site.baseurl }}/assets/img/favicons/favicon.ico</icon>
<logo>{{ site.baseurl }}/assets/img/favicons/favicon-96x96.png</logo>

{% for post in site.posts limit: 5 %}
{% assign post_absolute_url = post.url | absolute_url %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ post_absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.last_modified_at %}
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
{% else %}
<updated>{{ post.date | date_to_xmlschema }}</updated>
{% endif %}
<id>{{ post_absolute_url }}</id>
<content type="text/html" src="{{ post_absolute_url }}" />
<author>
<name>{{ post.author | default: site.social.name }}</name>
</author>

{% if post.categories %}
{% for category in post.categories %}
<category term="{{ category }}" />
{% endfor %}
{% endif %}

<summary>{% include post-description.html max_length=400 %}</summary>

</entry>
{% endfor %}
</feed>
{% endcapture %}
{{ source | replace: '&', '&amp;' }}
10 changes: 10 additions & 0 deletions assets/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
permalink: /robots.txt
# The robots rules
---

User-agent: *

Disallow: /norobots/

Sitemap: {{ '/sitemap.xml' | absolute_url }}

0 comments on commit 147e31e

Please sign in to comment.