Compare commits
2 Commits
dependabot
...
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 -->
|
<!-- AppMetrix -->
|
||||||
<script is:inline src="https://appmetrix.com/pixel/T5X0z12SoASBV8Dv"></script>
|
<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">
|
<style lang="scss">
|
||||||
@use "../scss/variables" as *;
|
@use "../scss/variables" as *;
|
||||||
|
|
||||||
header {
|
header {
|
||||||
padding-bottom: 1rem;
|
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;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
|
||||||
margin-right: 1.5rem;
|
margin-right: 1.5rem;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
@@ -17,6 +30,9 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<a href="/">Home</a>
|
<a class="site-title" href="/">{import.meta.env.DEFAULT_TITLE}</a>
|
||||||
<a href="/blog/">Blog</a>
|
<div class="nav-links">
|
||||||
|
<a href="/">Home</a>
|
||||||
|
<a href="/blog/">Blog</a>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
|
|||||||
---
|
---
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@use "../scss/variables" as *;
|
@use "../scss/variables" as *;
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: $fontSizeBase * 0.75;
|
font-size: $fontSizeBase * 0.75;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
|
|||||||
---
|
---
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@use "../scss/variables" as *;
|
@use "../scss/variables" as *;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: $colorText;
|
color: $colorText;
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ const { description, title } = Astro.props;
|
|||||||
|
|
||||||
<html lang="ru">
|
<html lang="ru">
|
||||||
<Head
|
<Head
|
||||||
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
|
|
||||||
title={title ?? import.meta.env.DEFAULT_TITLE}
|
title={title ?? import.meta.env.DEFAULT_TITLE}
|
||||||
|
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -26,6 +26,6 @@ const { description, title } = Astro.props;
|
|||||||
|
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
<Analytics title={title ?? import.meta.env.DEFAULT_TITLE} />
|
<Analytics />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
|
|||||||
---
|
---
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@use "../../scss/variables" as *;
|
@use "../../scss/variables" as *;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
|||||||
Reference in New Issue
Block a user