modified: components/navigation-bar.tsx

modified:   components/search-input.tsx
	modified:   components/toolbar.tsx
	modified:   contentlayer.config.ts
	modified:   package.json
	modified:   public/sitemap-0.xml
main
joker 2 years ago
parent bbb611d207
commit eb366343fe
  1. 3
      components/navigation-bar.tsx
  2. 2
      components/search-input.tsx
  3. 10
      components/toolbar.tsx
  4. 2
      contentlayer.config.ts
  5. 2
      package.json
  6. 15
      public/sitemap-0.xml

@ -4,11 +4,14 @@ import { BlogTitle } from '@/components/blog-title';
import { cn } from '@/lib/utils';
import { allPages } from '../.contentlayer/generated';
type NavigationBarProps = {
className?: string;
};
export function NavigationBar({ className }: NavigationBarProps) {
return (
<nav
className={cn(

@ -29,7 +29,7 @@ export function SearchInput({ hasResults }: SearchInputProps) {
'border-slate-400 bg-slate-100 text-slate-700',
'dark:border-slate-500 dark:bg-slate-700 dark:text-rose-50',
)}
aria-label="Search Posts"
aria-label="Поиск"
/>
{query && (
<button

@ -59,8 +59,8 @@ export function Toolbar({ fontControls, className }: ToolbarProps) {
'icon-base h-5 w-5 mix-blend-color-dodge xs:h-6 xs:w-6',
isSearching && 'text-accent/60 dark:text-accent-dark/80',
)}
aria-label="Search Posts"
data-tooltip-content="Search Posts"
aria-label="Поиск по тегам"
data-tooltip-content="Поиск по тегам"
data-tooltip-id="toolbar-tooltip"
/>
</button>
@ -117,18 +117,18 @@ export function Toolbar({ fontControls, className }: ToolbarProps) {
<button
onClick={toggleDarkAndApply}
id="theme-toggle"
data-tooltip-content={`Switch to ${isDark ? 'light' : 'dark'} mode`}
data-tooltip-content={`Смена темы на ${isDark ? 'светлую' : 'темную'}`}
data-tooltip-id="toolbar-tooltip"
>
{isDark ? (
<Moon
className="icon-base h-5 w-5 mix-blend-color-dodge xs:h-6 xs:w-6"
aria-label="Switch to light mode"
aria-label="Светлая тема"
/>
) : (
<Sun
className="icon-base h-5 w-5 mix-blend-color-dodge xs:h-6 xs:w-6"
aria-label="Switch to dark mode"
aria-label="Тёмная тема"
/>
)}
</button>

@ -54,7 +54,7 @@ export const Informatics = defineDocumentType(() => ({
url: {
type: 'string',
description: 'The URL of the post, e.g. /posts/my-post',
resolve: (post) => `/posts/informatics/${post._raw.flattenedPath}`,
resolve: (post) => `/posts/${post._raw.flattenedPath}`,
},
...computedFields,
},

@ -1,6 +1,6 @@
{
"name": "blog",
"version": "1.3.0",
"version": "1.3.4",
"scripts": {
"dev": "next dev",
"test": "npx vitest",

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://edu.krasnikov.pro/about</loc><lastmod>2023-09-12T22:31:35.044Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/informatics/python-data-types-solution</loc><lastmod>2023-09-12T22:31:35.045Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/informatics/word-creating-tables</loc><lastmod>2023-09-12T22:31:35.045Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/olimp/practice-test-10-11-robotics</loc><lastmod>2023-09-12T22:31:35.045Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/olimp/practice-test-5-6-robotics</loc><lastmod>2023-09-12T22:31:35.045Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts</loc><lastmod>2023-09-12T22:31:35.045Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro</loc><lastmod>2023-09-12T22:31:35.045Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts</loc><lastmod>2023-09-17T02:23:01.952Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro</loc><lastmod>2023-09-17T02:23:01.953Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/about</loc><lastmod>2023-09-17T02:23:01.953Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/informatics/python-data-types-solution</loc><lastmod>2023-09-17T02:23:01.953Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/informatics/python-if-condition</loc><lastmod>2023-09-17T02:23:01.953Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/informatics/word-creating-tables</loc><lastmod>2023-09-17T02:23:01.953Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/olimp/practice-test-10-11-robotics</loc><lastmod>2023-09-17T02:23:01.953Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://edu.krasnikov.pro/posts/olimp/practice-test-5-6-robotics</loc><lastmod>2023-09-17T02:23:01.953Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
Loading…
Cancel
Save