Skip to content

Commit

Permalink
fix: local related issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Clovis committed Nov 3, 2024
1 parent 4ae6702 commit 3028970
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ENV WWW_GROUP=www-data
COPY . $NOIRCIR_FOLDER

# install deps
RUN apk add gettext gum nginx nginx-mod-http-lua nginx-mod-http-dav-ext openssl nodejs-current npm jq curl \
RUN apk add gettext gum nginx nginx-mod-http-lua nginx-mod-http-dav-ext openssl nodejs-current npm jq curl icu-libs icu-data-full \
&& corepack enable \
&& mkdir -p $NGINX_FOLDER \
&& mkdir -p /tools && cp $NOIRCIR_FOLDER/tools/* /tools
Expand Down
14 changes: 11 additions & 3 deletions template/src/Index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react';

import { Line, Block } from '@bdxtown/canaille';
import { Line, Block, createUseStyles } from '@bdxtown/canaille';
import { Blog } from 'types/src/Blog';
import { Post } from 'types/src/Post';
import { Footer } from './Footer'
import sanitizeHTML from './sanitize';
import { withI18n } from './withI18n';



Expand All @@ -20,8 +21,15 @@ interface Collection {
}>
}

const useStyle = createUseStyles({
title: {
lineHeight: 1.20,
}
})


const Index: React.FC<Blog & Collection> = ({ blogName, blogDescription, blogCover, pages, lang }) => {
const { title } = useStyle();
return (
<div className='mx-auto max-w-[800px]'>
<header className='p-3'>
Expand All @@ -44,7 +52,7 @@ const Index: React.FC<Blog & Collection> = ({ blogName, blogDescription, blogCov
page.data.cover && <img className='w-full h-[100px] object-cover' src={page.data.cover} />
}
<div className='p-3'>
<h2 className='m-0 mb-3'>
<h2 className={`m-0 mb-3 ${title}`}>
{ page.data.title }
</h2>
<p className='m-0'>
Expand All @@ -65,4 +73,4 @@ const Index: React.FC<Blog & Collection> = ({ blogName, blogDescription, blogCov
);
}

export default (Index);
export default withI18n(Index);

0 comments on commit 3028970

Please sign in to comment.