diff --git a/go.mod b/go.mod deleted file mode 100644 index 00422b3..0000000 --- a/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module pmi.komisc.ru - -go 1.22.2 diff --git a/hugo.toml b/hugo.toml deleted file mode 100644 index 674ca31..0000000 --- a/hugo.toml +++ /dev/null @@ -1,3 +0,0 @@ -baseURL = 'https://pmi.komisc.ru/' -languageCode = 'en-us' -title = 'Институт физики и математики' diff --git a/hugo.yaml b/hugo.yaml deleted file mode 100644 index cc21d66..0000000 --- a/hugo.yaml +++ /dev/null @@ -1,38 +0,0 @@ -title: "Институт физики и математики" -baseURL: "https://pmi.komisc.ru/" -languageCode: ru -module: - imports: - - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify - - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal - - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 -theme: hugo-blox-builder -enableRobotsTXT: true - -params: - math: - enable: true # поддержка LaTeX-формул - description: "Официальный сайт Института" - -menu: - main: - - name: Главная - url: / - weight: 1 - - name: Сотрудники - url: /authors/ - weight: 2 - - name: Новости - url: /post/ - weight: 3 - - name: Наука - url: /research/ - weight: 4 - - name: Контакты - url: /contact/ - weight: 5 - -markup: - goldmark: - renderer: - unsafe: true # нужно для рендеринга HTML внутри Markdown diff --git a/public/admin/config.yml b/public/admin/config.yml new file mode 100644 index 0000000..7511f9a --- /dev/null +++ b/public/admin/config.yml @@ -0,0 +1,39 @@ +backend: + name: gitea + repo: "pmi/pmi-site" # Например: rmn/pmi-site или komisc/pmi-website + gitea_domain: "https://gitea.komisc.ru" # Адрес вашего Gitea сервера + branch: main + auth_type: pkce + app_id: "06c80b30-fe28-4966-81e7-b6d59c5b4a87" # Вставьте сюда Client ID из настроек Gitea + +# Папка, куда будут сохраняться загруженные картинки +media_folder: "static/uploads" +public_folder: "/uploads" + +# Настройка раздела "Новости" +collections: + - name: "post" + label: "Новости и события" + folder: "content/post" + create: true + slug: "{{year}}-{{month}}-{{day}}-{{slug}}/index" + fields: + - {label: "Заголовок", name: "title", widget: "string"} + - {label: "Дата публикации", name: "date", widget: "datetime"} + - {label: "Категория", name: "categories", widget: "list", default: ["Новости"]} + - {label: "Текст (формулы через $$...$$)", name: "body", widget: "markdown"} + + # Настройка раздела "Сотрудники" + - name: "authors" + label: "Сотрудники" + folder: "content/authors" + create: true + slug: "{{slug}}/_index" + fields: + - {label: "ФИО", name: "title", widget: "string"} + - {label: "Должность", name: "role", widget: "string"} + - {label: "Ученая степень", name: "degree", widget: "string", required: false} + - {label: "Email", name: "email", widget: "string", required: false} + - {label: "ORCID", name: "orcid", widget: "string", required: false} + - {label: "Научные интересы", name: "interests", widget: "list", required: false} + - {label: "Краткая биография", name: "body", widget: "markdown", required: false} \ No newline at end of file diff --git a/public/admin/index.html b/public/admin/index.html new file mode 100644 index 0000000..6c6ef70 --- /dev/null +++ b/public/admin/index.html @@ -0,0 +1,13 @@ + + + + + + Админ-панель PMI + + + + + + + diff --git a/public/sitemap.xml b/public/sitemap.xml index 1fa3401..1634a38 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -7,15 +7,15 @@ http://localhost:1313/post/ 2026-07-20T00:00:00+00:00 - - http://localhost:1313/ - 2026-07-20T00:00:00+00:00 http://localhost:1313/post/2026-07-20-seminar/ 2026-07-20T00:00:00+00:00 http://localhost:1313/categories/%D1%81%D0%B5%D0%BC%D0%B8%D0%BD%D0%B0%D1%80%D1%8B/ 2026-07-20T00:00:00+00:00 + + http://localhost:1313/ + 2026-07-20T00:00:00+00:00 http://localhost:1313/authors/ diff --git a/public/webfonts/fa-brands-400.ttf b/public/webfonts/fa-brands-400.ttf new file mode 100644 index 0000000..5efb1d4 Binary files /dev/null and b/public/webfonts/fa-brands-400.ttf differ diff --git a/public/webfonts/fa-brands-400.woff2 b/public/webfonts/fa-brands-400.woff2 new file mode 100644 index 0000000..36fbda7 Binary files /dev/null and b/public/webfonts/fa-brands-400.woff2 differ diff --git a/public/webfonts/fa-regular-400.ttf b/public/webfonts/fa-regular-400.ttf new file mode 100644 index 0000000..838b4e2 Binary files /dev/null and b/public/webfonts/fa-regular-400.ttf differ diff --git a/public/webfonts/fa-regular-400.woff2 b/public/webfonts/fa-regular-400.woff2 new file mode 100644 index 0000000..b6cabba Binary files /dev/null and b/public/webfonts/fa-regular-400.woff2 differ diff --git a/public/webfonts/fa-solid-900.ttf b/public/webfonts/fa-solid-900.ttf new file mode 100644 index 0000000..ec24749 Binary files /dev/null and b/public/webfonts/fa-solid-900.ttf differ diff --git a/public/webfonts/fa-solid-900.woff2 b/public/webfonts/fa-solid-900.woff2 new file mode 100644 index 0000000..824d518 Binary files /dev/null and b/public/webfonts/fa-solid-900.woff2 differ diff --git a/public/webfonts/fa-v4compatibility.ttf b/public/webfonts/fa-v4compatibility.ttf new file mode 100644 index 0000000..b175aa8 Binary files /dev/null and b/public/webfonts/fa-v4compatibility.ttf differ diff --git a/public/webfonts/fa-v4compatibility.woff2 b/public/webfonts/fa-v4compatibility.woff2 new file mode 100644 index 0000000..e09b5a5 Binary files /dev/null and b/public/webfonts/fa-v4compatibility.woff2 differ diff --git a/starter.zip b/starter.zip new file mode 100644 index 0000000..e69de29