troggy / montelibero.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Source code for montelibero.me

Development

npm install
npm start

Structure

_data/metatada.json — common metadata for the website. List of languages is here

_data/navigation.json — top navigation for all the locales

_includes/layouts/base.njk — base layout (common parts for all the layouts)

_includes/layouts/home.njk — specific layout for home page

_includes/layout/secondary.njk — specific layout for all the secondary pages

content/en/ — content in English. Each *.md file renders as a page

content/en/en.toml - localized strings for English locale. Includes the page blocks for home page in English

content/ru/ — content in Russian. Each *.md file renders as a page

content/ru/ru.toml - localized strings for Russian locale. Includes the page blocks for home page in Russian

netlify.toml - config for Netlify deployment. Contains build settings and rules for language-specific redirects

eleventy.config.js - Eleventy config

Editing content

Редакторы работают c текстами только в файлами в папке content, а также дополнительно могут положить медиа-файлы в папку public/.

Базовый сценарий таков:

Редактор вносит правки в контент на русском языке в папке /content/ru/. Например, используя встроенный редактор гитхаба: https://github.com/troggy/montelibero.me/edit/master/content/ru/ru.toml (пример для стартовой страницы).

Для сохранения правок создаётся гит-ветка Screen Recording 2024-02-12 at 23 55 29

Production deployment

About


Languages

Language:CSS 54.1%Language:Nunjucks 25.9%Language:JavaScript 19.2%Language:HTML 0.7%