parent
bbbc0c97b4
commit
086eb5deaa
7 changed files with 1 additions and 164 deletions
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Pensamientos de Sofía</title>
|
||||
<link>https://sofiaritz.com/</link>
|
||||
<description>Pensamientos e ideas que salen de mi cabeza</description>
|
||||
<atom:link href="https://sofiaritz.com/blog/feed.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Primer post</title>
|
||||
<link>https://sofiaritz.com/blog</link>
|
||||
<guid>https://sofiaritz.com/blog/first-post</guid>
|
||||
<pubDate>Sun, 01 Jan 2023 21:54:25 GMT</pubDate>
|
||||
<description>Este es el primer post del weblog!</description>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
|
@ -4,10 +4,8 @@
|
|||
import Contact from "./lib/routes/Contact.svelte"
|
||||
import Navbar from "./lib/Navbar.svelte";
|
||||
import Recommendations from "./lib/routes/Recommendations.svelte";
|
||||
import Blog from "./lib/routes/Blog.svelte";
|
||||
import Projects from "./lib/routes/Projects.svelte";
|
||||
import Links from "./lib/routes/Links.svelte";
|
||||
import FirstPost from "./lib/posts/FirstPost.svelte";
|
||||
import NotFound from "./lib/routes/NotFound.svelte";
|
||||
import Skeletons from "./lib/Skeletons.svelte";
|
||||
</script>
|
||||
|
@ -22,13 +20,10 @@
|
|||
<main>
|
||||
<Route path="/" component={Home} primary={false}/>
|
||||
<Route path="/contact" component={Contact} primary={false}/>
|
||||
<Route path="/blog" component={Blog} primary={false}/>
|
||||
<Route path="/recommendations" component={Recommendations} primary={false}/>
|
||||
<Route path="/projects" component={Projects} primary={false}/>
|
||||
<Route path="/links" component={Links} primary={false}/>
|
||||
|
||||
<Route path="/blog/first-post" component={FirstPost}/>
|
||||
|
||||
<Route path="*" component={NotFound} primary={false}/>
|
||||
</main>
|
||||
</div>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<div>
|
||||
<i>mi cabeza</i>
|
||||
<ul>
|
||||
<li><Link to="/blog">weblog</Link></li>
|
||||
<li><a href="https://weblog.sofiaritz.com/">weblog</a></li>
|
||||
<li><Link to="/recommendations">recomendaciones</Link></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
<script>
|
||||
import {Link} from "svelte-navigator";
|
||||
|
||||
export let id
|
||||
export let name
|
||||
export let date
|
||||
</script>
|
||||
|
||||
<li>
|
||||
<Link to={id}>{date}<u>{name}</u></Link>
|
||||
</li>
|
||||
|
||||
<style>
|
||||
u {
|
||||
margin-left: 35px;
|
||||
}
|
||||
</style>
|
|
@ -1,42 +0,0 @@
|
|||
<script>
|
||||
import Post from "./Post.svelte";
|
||||
|
||||
const SUPPORTED_LANGS = ["es", "en"]
|
||||
</script>
|
||||
|
||||
<Post lang="es" langs={SUPPORTED_LANGS}>
|
||||
<svelte:fragment slot="title">Primer post!</svelte:fragment>
|
||||
<small slot="subtitle">01 Enero 2023 | Sofía Aritz</small>
|
||||
<div slot="post">
|
||||
<p>
|
||||
Este es el primer post del weblog! Puedes suscribirte al <a href="/blog/feed.rss">feed</a> para estar al tanto
|
||||
de lo que suba por aquí :)
|
||||
</p>
|
||||
<p>
|
||||
Mi idea es ir contando aquí mis experiencias mientras me muevo por los mundo de Internet y el desarrollo,
|
||||
tal vez en algún momento hago posts más técnicos y en otros simplemente hablo de la cosa que se me ha
|
||||
ocurrido en el momento o de alguna experiencia personal.
|
||||
</p>
|
||||
<p>
|
||||
Dicho esto, deseo a todo el mundo un feliz año nuevo! Nos vemos en breve ;p
|
||||
</p>
|
||||
</div>
|
||||
</Post>
|
||||
|
||||
<Post lang="en" langs={SUPPORTED_LANGS}>
|
||||
<svelte:fragment slot="title">First post!</svelte:fragment>
|
||||
<small slot="subtitle">01 January 2023 | Sofía Aritz</small>
|
||||
<div slot="post">
|
||||
<p>
|
||||
This is my first post! You can subscribe to the <a href="/blog/feed.rss">feed</a> to be up-to-date with
|
||||
whatever I add here :)
|
||||
</p>
|
||||
<p>
|
||||
The objective of this weblog is to talk about the things I find at the Internet and to talk about computer
|
||||
stuff. Some post may be quite technical while others may be quite personal.
|
||||
</p>
|
||||
<p>
|
||||
With that being said, I wish everyone one a happy new year ;p
|
||||
</p>
|
||||
</div>
|
||||
</Post>
|
|
@ -1,71 +0,0 @@
|
|||
<script>
|
||||
import {Link, useLocation} from "svelte-navigator";
|
||||
import {onMount} from "svelte";
|
||||
|
||||
const LIBRE_TRANSLATE_ENDPOINT = "https://libretranslate.com/?source=es&target=en"
|
||||
|
||||
export let lang = "es"
|
||||
export let langs = ["es"]
|
||||
|
||||
let location = useLocation()
|
||||
$: is_lang = lang === "es" ? ($location.search.includes(`lang=${lang}`) || !$location.search.includes("lang=")) : $location.search.includes(`lang=${lang}`)
|
||||
|
||||
let libre_translate_link = LIBRE_TRANSLATE_ENDPOINT
|
||||
onMount(() => {
|
||||
libre_translate_link = `${LIBRE_TRANSLATE_ENDPOINT}&q=${encodeURIComponent(document.getElementById("post").textContent)}`
|
||||
})
|
||||
</script>
|
||||
|
||||
{#if is_lang}
|
||||
<div>
|
||||
<h1><slot name="title"><i>Sin título</i></slot></h1>
|
||||
<slot name="subtitle"><small><i>Fecha desconocida</i> | <i>Autor desconocido</i></small></slot>
|
||||
{#if langs.length > 1}
|
||||
<div class="translation-container">
|
||||
{#each langs as lang}
|
||||
<small class="translation-link">
|
||||
<Link to={`${$location.pathname}?lang=${lang}`}>{lang.toUpperCase()}</Link>
|
||||
</small>
|
||||
{/each}
|
||||
</div>
|
||||
{:else}
|
||||
<div class="translation-container">
|
||||
<small class="translation-link">
|
||||
<Link to={`${$location.pathname}?lang=${langs[0]}`}>{langs[0].toUpperCase()}</Link>
|
||||
</small>
|
||||
<small class="translation-link">
|
||||
<a href={libre_translate_link}>LibreTranslate</a>
|
||||
</small>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="post">
|
||||
<slot name="post">
|
||||
<div>
|
||||
<i>Post vacío</i>
|
||||
</div>
|
||||
</slot>
|
||||
</div>
|
||||
{#if lang !== "es"}
|
||||
<hr>
|
||||
<small>
|
||||
<i>
|
||||
Note: I'm not native. If you find any weird grammar or any error, please
|
||||
<a href="https://codeberg.org/sofiaritz/website/issues">open an issue</a> :)
|
||||
</i>
|
||||
</small>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.translation-container {
|
||||
display: inline-block;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.translation-link {
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>
|
|
@ -1,12 +0,0 @@
|
|||
<script>
|
||||
import PostPreview from "../PostPreview.svelte";
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>blog - sofi web</title>
|
||||
</svelte:head>
|
||||
|
||||
<h1>blog | <a href="/blog/feed.rss">feed</a></h1>
|
||||
<ul>
|
||||
<PostPreview id="first-post" name="Primer post!" date="2023-01-01" />
|
||||
</ul>
|
Reference in a new issue