mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	Update launch configuration and enhance PostSummary component layout
This commit is contained in:
		
							
								
								
									
										2
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							@@ -2,7 +2,7 @@
 | 
				
			|||||||
  "version": "0.2.0",
 | 
					  "version": "0.2.0",
 | 
				
			||||||
  "configurations": [
 | 
					  "configurations": [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "command": "./node_modules/.bin/astro dev",
 | 
					      "command": "./node_modules/.bin/astro dev --host 0.0.0.0",
 | 
				
			||||||
      "name": "Development server",
 | 
					      "name": "Development server",
 | 
				
			||||||
      "request": "launch",
 | 
					      "request": "launch",
 | 
				
			||||||
      "type": "node-terminal"
 | 
					      "type": "node-terminal"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,9 @@ import sitemap from "@astrojs/sitemap";
 | 
				
			|||||||
export default defineConfig({
 | 
					export default defineConfig({
 | 
				
			||||||
	site: "https://popov.link",
 | 
						site: "https://popov.link",
 | 
				
			||||||
	output: "hybrid",
 | 
						output: "hybrid",
 | 
				
			||||||
	adapter: cloudflare(),
 | 
						adapter: cloudflare({
 | 
				
			||||||
 | 
							imageService: "compile",
 | 
				
			||||||
 | 
						}),
 | 
				
			||||||
	integrations: [sitemap()],
 | 
						integrations: [sitemap()],
 | 
				
			||||||
	markdown: {
 | 
						markdown: {
 | 
				
			||||||
		remarkPlugins: [remarkReadingTime],
 | 
							remarkPlugins: [remarkReadingTime],
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,45 +7,39 @@ type Props = {
 | 
				
			|||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const { post } = Astro.props;
 | 
					const { post } = Astro.props;
 | 
				
			||||||
 | 
					const { remarkPluginFrontmatter } = await post.render();
 | 
				
			||||||
 | 
					const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY");
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss">
 | 
					<style lang="scss">
 | 
				
			||||||
	@import "../scss/_variables.scss";
 | 
						@import "../scss/_variables.scss";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Post */
 | 
						a {
 | 
				
			||||||
	.post {
 | 
							color: $colorText;
 | 
				
			||||||
 | 
							display: block;
 | 
				
			||||||
		padding-bottom: 3rem;
 | 
							padding-bottom: 3rem;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.link {
 | 
						h2 {
 | 
				
			||||||
		color: $colorText;
 | 
							color: $colorBlossom;
 | 
				
			||||||
 | 
							font-size: 1.25em;
 | 
				
			||||||
 | 
							margin: 0.5em 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Meta */
 | 
						div {
 | 
				
			||||||
	.meta {
 | 
							font-size: $fontSizeBase * 0.75;
 | 
				
			||||||
		padding-bottom: 1.5rem;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	.date {
 | 
					 | 
				
			||||||
		opacity: 0.5;
 | 
							opacity: 0.5;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	.tag {
 | 
					 | 
				
			||||||
		display: none;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<article class="post">
 | 
					<a href={`/blog/${post.slug}`}>
 | 
				
			||||||
	<h2><a class="link" href={`/blog/${post.slug}`}>{post.data.title}</a></h2>
 | 
						<article>
 | 
				
			||||||
	<div class="meta">
 | 
							<div>
 | 
				
			||||||
		<time class="date" datetime={post.data.pubDate.toISOString()}>
 | 
								<time datetime={post.data.pubDate.toISOString()}>{formattedDate}</time>
 | 
				
			||||||
			{dayjs(post.data.pubDate.toString()).format("YYYY-MM-DD")}
 | 
								<span>•</span>
 | 
				
			||||||
		</time>
 | 
								<span>{remarkPluginFrontmatter.minutesRead}</span>
 | 
				
			||||||
		<ul class="tag">
 | 
					 | 
				
			||||||
			<li><a href="#">tag1</a></li>
 | 
					 | 
				
			||||||
			<li><a href="#">tag2</a></li>
 | 
					 | 
				
			||||||
		</ul>
 | 
					 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
 | 
							<h2>{post.data.title}</h2>
 | 
				
			||||||
		<p>{post.data.description}</p>
 | 
							<p>{post.data.description}</p>
 | 
				
			||||||
	<a href={`/blog/${post.slug}`}>Read More</a>
 | 
					 | 
				
			||||||
	</article>
 | 
						</article>
 | 
				
			||||||
 | 
					</a>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user