Skip to content

Commit

Permalink
new domain + releases
Browse files Browse the repository at this point in the history
  • Loading branch information
voischev committed Apr 8, 2022
1 parent fa79d40 commit 1dad261
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 93 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[Перейти на сайт](https://voischev.ru)
[Перейти на сайт](https://ivan.voischev.ru)
9 changes: 5 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

npm run make
yaspeller ./src
./make.js

rm -rf build
cp -a src/. build
Expand All @@ -13,7 +14,7 @@ echo "Создаём Sitemap"
cd build
SITEMAP=sitemap.txt
touch $SITEMAP
echo "https://voischev.ru/" > $SITEMAP
find ./{t,invest} -type d | sed "s/^\./https:\/\/voischev.ru/" | sed "s/$/\//" >> $SITEMAP
find ./{t,invest} -name "*.pdf" | sed "s/^./https:\/\/voischev.ru/" >> $SITEMAP
echo "https://ivan.voischev.ru/" > $SITEMAP
find ./{t,invest} -type d | sed "s/^\./https:\/\/ivan.voischev.ru/" | sed "s/$/\//" >> $SITEMAP
find ./{t,invest} -name "*.pdf" | sed "s/^./https:\/\/ivan.voischev.ru/" >> $SITEMAP
cd ..
2 changes: 1 addition & 1 deletion make.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const makeHead = function(tree, options = {}) {
publishedTime
} = options

const url = 'https://voischev.ru' + canonical
const url = 'https://ivan.voischev.ru' + canonical

tree.walk.bind(head)(function(node) {
if (title === undefined) {
Expand Down
10 changes: 1 addition & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 3 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,17 @@
{
"name": "voischev.ru",
"version": "1.0.0",
"description": "Личный сайт",
"main": "index.html",
"scripts": {
"make": "yaspeller ./src && ./make.js",
"server": "http-server src",
"test": "echo \"Error: no test specified\" && exit 1"
"server": "http-server src"
},
"repository": {
"type": "git",
"url": "git+https://github.com/voischev/voischev.github.io.git"
"url": "git+https://github.com/voischev/site.git"
},
"keywords": [
"html",
"site",
"posthtml",
"build",
"static"
],
"author": "[email protected]",
"author": "[email protected]",
"license": "CC-BY-SA-4.0",
"bugs": {
"url": "https://github.com/voischev/voischev.github.io/issues"
},
"homepage": "https://github.com/voischev/voischev.github.io#readme",
"dependencies": {
"marked": "^4.0.0",
"posthtml": "^0.12.0",
"posthtml-toc": "^1.0.3",
"yaspeller": "^8.0.1"
},
"devDependencies": {
"@types/node": "^16.3.3"
}
}
10 changes: 1 addition & 9 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

./build.sh

echo "Создаём архив"
tar -P -czf /tmp/voischev.ru.tar.gz build/
rm -rf build

echo "Отправка на сервер"
scp /tmp/voischev.ru.tar.gz voischev@voischev:/tmp/

echo "Публикация на сервере"
ssh voischev bash -s < scripts/server_publish
s3cmd put --recursive build/ s3://ivan.voischev.ru

echo "Успешно"
10 changes: 0 additions & 10 deletions scripts/server_publish

This file was deleted.

4 changes: 2 additions & 2 deletions src/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<title>Ошибка 404. Нет такой страницы</title>
<meta name="description" content="Ошибка 404. Нет такой страницы">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="https://voischev.ru/">
<link rel="canonical" href="https://ivan.voischev.ru/">
</head>
<body>
<h1>Ошибка 404. Нет такой страницы</h1>
Начните поиск с <a href="https://voischev.ru/">главной страницы</a>, или напишите на <a href="mailto:ivan@voischev.ru">почту</a>.
Начните поиск с <a href="https://ivan.voischev.ru/">главной страницы</a>, или напишите на <a href="mailto:voischev.ivan@ya.ru">почту</a>.
</body>
</html>
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Ваня Воищев</title>
<meta name="description" content="Заметки о программировании и итогах инвестиций">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="https://voischev.ru/">
<link rel="canonical" href="https://ivan.voischev.ru/">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="stylesheet" href="/style.css">
Expand All @@ -25,7 +25,7 @@ <h1>Привет мир!</h1>
<aside>
<h3>Облако ссылок</h3>
<a href="https://music.yandex.ru/users/voischev-ivan/playlists/3" target="_blank">Мой плейлист</a>
<a href="https://t.me/voischev_ru" target="_blank">Избранное</a>
<a href="https://t.me/voischev_favourites" target="_blank">Избранное</a>
<a href="https://github.com/voischev" target="_blank">Гитхаб</a>
<a href="/timer.html" target="_blank">Таймер</a>
<a href="/genpass.html" target="_blank">Генератор паролей</a>
Expand Down
2 changes: 1 addition & 1 deletion src/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
User-agent: *
Disallow: /CNAME
Disallow: /yandex_399494b1911614a5.html
Sitemap: https://voischev.ru/sitemap.txt
Sitemap: https://ivan.voischev.ru/sitemap.txt
31 changes: 0 additions & 31 deletions templates/voischev.ru.nginx.conf

This file was deleted.

0 comments on commit 1dad261

Please sign in to comment.