Compare commits
2 Commits
renovate/a
...
header
| Author | SHA1 | Date | |
|---|---|---|---|
|
118112f0b7
|
|||
|
47a0acab13
|
@@ -1,17 +1,2 @@
|
||||
---
|
||||
type Props = {
|
||||
readonly title: string;
|
||||
};
|
||||
|
||||
const path = Astro.url.pathname;
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
||||
<!-- AppMetrix -->
|
||||
<script is:inline src="https://appmetrix.com/pixel/T5X0z12SoASBV8Dv"></script>
|
||||
|
||||
<!-- GoatCounter -->
|
||||
<script is:inline data-goatcounter="https://analytics.popov.link/count" src="//gc.zgo.at/count.js"></script>
|
||||
<noscript>
|
||||
<img alt="pixel" src={`https://analytics.popov.link/count?p=${encodeURI(path)}&t=${encodeURI(title)}`} />
|
||||
</noscript>
|
||||
|
||||
@@ -1,14 +1,27 @@
|
||||
<style lang="scss">
|
||||
@use "../scss/variables" as *;
|
||||
@use "../scss/variables" as *;
|
||||
|
||||
header {
|
||||
padding-bottom: 1rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.site-title {
|
||||
color: $colorText;
|
||||
font-weight: bold;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
text-decoration: none;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
margin-right: 1.5rem;
|
||||
text-decoration: none;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
@@ -17,6 +30,9 @@
|
||||
</style>
|
||||
|
||||
<header>
|
||||
<a href="/">Home</a>
|
||||
<a href="/blog/">Blog</a>
|
||||
<a class="site-title" href="/">{import.meta.env.DEFAULT_TITLE}</a>
|
||||
<div class="nav-links">
|
||||
<a href="/">Home</a>
|
||||
<a href="/blog/">Blog</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -12,7 +12,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
|
||||
---
|
||||
|
||||
<style lang="scss">
|
||||
@use "../scss/variables" as *;
|
||||
@use "../scss/variables" as *;
|
||||
|
||||
small {
|
||||
font-size: $fontSizeBase * 0.75;
|
||||
|
||||
@@ -12,7 +12,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
|
||||
---
|
||||
|
||||
<style lang="scss">
|
||||
@use "../scss/variables" as *;
|
||||
@use "../scss/variables" as *;
|
||||
|
||||
a {
|
||||
color: $colorText;
|
||||
|
||||
@@ -14,8 +14,8 @@ const { description, title } = Astro.props;
|
||||
|
||||
<html lang="ru">
|
||||
<Head
|
||||
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
|
||||
title={title ?? import.meta.env.DEFAULT_TITLE}
|
||||
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
|
||||
/>
|
||||
|
||||
<body>
|
||||
@@ -26,6 +26,6 @@ const { description, title } = Astro.props;
|
||||
|
||||
<slot />
|
||||
</main>
|
||||
<Analytics title={title ?? import.meta.env.DEFAULT_TITLE} />
|
||||
<Analytics />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -23,7 +23,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
|
||||
---
|
||||
|
||||
<style lang="scss">
|
||||
@use "../../scss/variables" as *;
|
||||
@use "../../scss/variables" as *;
|
||||
|
||||
p {
|
||||
opacity: 0.5;
|
||||
|
||||
Reference in New Issue
Block a user