mirror of
https://github.com/HerrCraziDev/faoilean.git
synced 2026-04-20 15:24:22 +02:00
Site title config, cleaning
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import Tag from '$lib/components/Tag.svelte';
|
import Tag from '$lib/components/Tag.svelte';
|
||||||
|
import { config } from '$lib/config/settings.json'
|
||||||
|
|
||||||
export let title;
|
export let title;
|
||||||
export let author;
|
export let author;
|
||||||
@@ -10,7 +11,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>{title} - Faoilean</title>
|
<title>{title} - {config.sitename}</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div id="article-head">
|
<div id="article-head">
|
||||||
|
|||||||
13
src/lib/components/Head.svelte
Normal file
13
src/lib/components/Head.svelte
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<script>
|
||||||
|
import { config } from '../config/settings.json';
|
||||||
|
|
||||||
|
export let title;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
{#if title}
|
||||||
|
<title>{title} - {config.sitename}</title>
|
||||||
|
{:else}
|
||||||
|
<title>{config.sitename}</title>
|
||||||
|
{/if}
|
||||||
|
</svelte:head>
|
||||||
@@ -1,12 +1,21 @@
|
|||||||
<script>
|
<script>
|
||||||
import { config } from '../config/settings.json';
|
import { config } from '../config/settings.json';
|
||||||
|
|
||||||
|
export let title;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
{#if title}
|
||||||
|
<title>{title} - {config.sitename}</title>
|
||||||
|
{/if}
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<div id="site-title">
|
<div id="site-title">
|
||||||
<img src="/faoilean_icon_transparent.png" alt="" class="site-icon">
|
<img src="{config.siteicon}" alt="" class="site-icon">
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<h1>{config.sitename}</h1>
|
<h1>{config.sitename}</h1>
|
||||||
|
<span id="site-subtitle">{config.sitedesc}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -28,7 +37,7 @@
|
|||||||
|
|
||||||
height: 3em;
|
height: 3em;
|
||||||
|
|
||||||
background: linear-gradient(15deg, #3d74c5, #d872b6);
|
background: linear-gradient(15deg, #3d74c5, #c0589d);
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
box-shadow: 0 0 10px #0000008a;
|
box-shadow: 0 0 10px #0000008a;
|
||||||
@@ -36,22 +45,37 @@
|
|||||||
|
|
||||||
header h1 {
|
header h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: white;
|
font-size: 1em;
|
||||||
font-size: 1.2em;
|
|
||||||
font-family: "OPTIVagRound-Bold";
|
|
||||||
text-transform: initial;
|
text-transform: initial;
|
||||||
font-variant: small-caps;
|
/* font-variant: small-caps; */
|
||||||
}
|
}
|
||||||
|
|
||||||
#site-title {
|
#site-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#site-title a {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#site-title a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#site-title #site-subtitle {
|
||||||
|
font-size: 0.65em;
|
||||||
|
letter-spacing: .08em;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
#site-title .site-icon {
|
#site-title .site-icon {
|
||||||
height: 2em;
|
height: 2em;
|
||||||
|
margin-right: 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#links {
|
#links {
|
||||||
@@ -61,7 +85,7 @@
|
|||||||
margin-right: 3em;
|
margin-right: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#links a {
|
header * {
|
||||||
color: white;
|
color: white;
|
||||||
font-family: "OPTIVagRound-Bold";
|
font-family: "OPTIVagRound-Bold";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { browser, dev } from '$app/env';
|
import { browser, dev } from '$app/env';
|
||||||
|
import { config } from '$lib/config/settings.json'
|
||||||
|
|
||||||
// we don't need any JS on this page, though we'll load
|
// we don't need any JS on this page, though we'll load
|
||||||
// it in dev so that we get hot module replacement...
|
// it in dev so that we get hot module replacement...
|
||||||
@@ -15,7 +16,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>About</title>
|
<title>About - {config.sitename}</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
<script context="module">
|
|
||||||
console.log("Here");
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { config } from '$lib/config/settings.json'
|
||||||
|
|
||||||
export const layout = '';
|
export const layout = '';
|
||||||
export let articles;
|
export let articles;
|
||||||
|
|
||||||
@@ -15,10 +13,15 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Articles - {config.sitename}</title>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
|
<h1>All Articles</h1>
|
||||||
|
There are {articles.length} articles on this blog.
|
||||||
|
|
||||||
Tada
|
|
||||||
<ul>
|
<ul>
|
||||||
<button on:click={printArticles}>Debug Articles</button>
|
<!-- <button on:click={printArticles}>Debug Articles</button> -->
|
||||||
|
|
||||||
{#each articles as { title, author, path }}
|
{#each articles as { title, author, path }}
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
|
import { config } from '$lib/config/settings.json'
|
||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -6,14 +7,15 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>Faoilean</title>
|
<title>{config.sitename}</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h1>Look at me !</h1>
|
<h1>Welcome !</h1>
|
||||||
wait what this shit really works?
|
wait what this shit really works?
|
||||||
|
|
||||||
<a href="articles" sveltekit:prefetch>All articles</a>
|
<br>
|
||||||
|
<a href="articles" sveltekit:prefetch>All articles</a><br>
|
||||||
<a href="articles/test" sveltekit:prefetch>Test article</a>
|
<a href="articles/test" sveltekit:prefetch>Test article</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user