From e64276f338d72c46039022d86ad4ef6a10020433 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Fri, 19 May 2023 12:47:46 +0300 Subject: [PATCH] Update theme --- .gitignore | 3 ++- assets/images/telegram.svg | 1 + config/_default/config.yaml | 7 ++++--- content/en/nginx-lifehacks/nginx-configs-examples.md | 7 +++---- content/ru/nginx-lifehacks/nginx-configs-examples.md | 7 +++---- static/admin/config.yml | 6 ++++++ themes/ds | 2 +- 7 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 assets/images/telegram.svg diff --git a/.gitignore b/.gitignore index 44ccf2b..a354aee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .hugo_build.lock /venv/ -/public/ \ No newline at end of file +/public/ +_gen \ No newline at end of file diff --git a/assets/images/telegram.svg b/assets/images/telegram.svg new file mode 100644 index 0000000..e2fa2f7 --- /dev/null +++ b/assets/images/telegram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/config/_default/config.yaml b/config/_default/config.yaml index dabc32e..ab4eca6 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -10,12 +10,16 @@ languages: params: author: Konstantin Shutkin description: Blog about Linux, DevOps and cloud technologies + github: digitalstudium ru: contentDir: content/ru languageName: Русский params: author: Константин Шуткин description: Блог о Linux, DevOps и облачных технологиях + github: digitalstudium + youtube: digitalstudium + telegram: digitalstudium params: authorPage: /about-author @@ -23,9 +27,6 @@ params: schemaType: TechArticle copyright: http://creativecommons.org/licenses/by/4.0/ includeJS: ['copy.js'] - github: digitalstudium - youtube: digitalstudium - telegram: digitalstudium # deployment: # targets: diff --git a/content/en/nginx-lifehacks/nginx-configs-examples.md b/content/en/nginx-lifehacks/nginx-configs-examples.md index 7fb3264..e027fbe 100644 --- a/content/en/nginx-lifehacks/nginx-configs-examples.md +++ b/content/en/nginx-lifehacks/nginx-configs-examples.md @@ -4,8 +4,7 @@ category: nginx-lifehacks filename: nginx-configs-examples date: 2023-03-26 --- -Sometimes there is a need to quickly create an nginx configuration file: for hosting a static website, -to create a simple proxy server, etc. +Sometimes there is a need to quickly create an nginx configuration file: for hosting a static website, for proxying requests to upstream server, etc. This article provides simple examples of Nginx configs for different purposes. @@ -47,7 +46,7 @@ server { listen 80; server_name example.com www.example.com; - access_log /var/log/nginx/example.com.log main; + access_log /var/log/nginx/example.com.log; location / { proxy_pass http://127.0.0.1:5000; @@ -77,7 +76,7 @@ server { listen 80; server_name example.com www.example.com; - access_log /var/log/nginx/example.com.log main; + access_log /var/log/nginx/example.com.log; location / { proxy_pass http://1.2.3.4; proxy_set_header Host $host; diff --git a/content/ru/nginx-lifehacks/nginx-configs-examples.md b/content/ru/nginx-lifehacks/nginx-configs-examples.md index e65a640..878027f 100644 --- a/content/ru/nginx-lifehacks/nginx-configs-examples.md +++ b/content/ru/nginx-lifehacks/nginx-configs-examples.md @@ -4,8 +4,7 @@ category: nginx-lifehacks filename: nginx-configs-examples date: 2023-03-26 --- -Иногда возникает потребность быстро создать конфигурационный файл nginx: для хостинга статического вебсайта, -для создания простого проксирующего сервера и т. п. +Иногда возникает потребность быстро создать конфигурационный файл nginx: для хостинга статического вебсайта, для проксирования запросов к какому-либо серверу и т. п. В данной статье приведены простые примеры конфигов Nginx для разных целей. @@ -47,7 +46,7 @@ server { listen 80; server_name example.com www.example.com; - access_log /var/log/nginx/example.com.log main; + access_log /var/log/nginx/example.com.log; location / { proxy_pass http://127.0.0.1:5000; @@ -77,7 +76,7 @@ server { listen 80; server_name example.com www.example.com; - access_log /var/log/nginx/example.com.log main; + access_log /var/log/nginx/example.com.log; location / { proxy_pass http://1.2.3.4; proxy_set_header Host $host; diff --git a/static/admin/config.yml b/static/admin/config.yml index c8b1370..3def80a 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -39,6 +39,12 @@ collections: name: filename widget: string i18n: duplicate + # - label: "Featured Image" + # name: "featured_image" + # widget: "image" + # media_folder: "/assets/images" + # public_folder: "/images" + # i18n: duplicate - label: Date name: date widget: datetime diff --git a/themes/ds b/themes/ds index 75ff4f4..b67fc5c 160000 --- a/themes/ds +++ b/themes/ds @@ -1 +1 @@ -Subproject commit 75ff4f492ed677651371c5bf506d4c66759d89ae +Subproject commit b67fc5c834c7a4b86b73a44e09e7d9499962951e