Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 24, 2024
2 parents 0b45743 + a331445 commit aec0bbb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
20 changes: 6 additions & 14 deletions content/blog/My Website with Nuxt Content.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,22 @@ image: /blog-previews/probablyjassin.webp
What was clear from the start, is that I wanted to use [Nuxt.js](https://nuxt.com/) (based on [Vue](https://vuejs.org)), since that's what I know best and prefer.

::code-with-copy-button

```vue [page.vue]
<script setup>
import { ref } from "vue";
const count = ref(0);
import { ref } from "vue";
const count = ref(0);
</script>
<template>
<button @click="count++">Count is: {{ count }}</button>
<button @click="count++">Count is: {{ count }}</button>
</template>
<style scoped>
button {
font-weight: bold;
}
button {
font-weight: bold;
}
</style>
```

::

I find single-file components to be pretty simple and easy to get behind. It's not the most popular framework, but it has a great community with great support for what matters to me:
Expand Down Expand Up @@ -59,7 +57,6 @@ The challenge is that Nuxt Content seemingly requires [SSR (Server Side Renderin
So here is the current pipeline for how my Website is deployed:

::code-with-copy-button

```yaml [workflow.yml]
jobs:
  build-and-push:
Expand All @@ -80,13 +77,11 @@ jobs:
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
```
::
We log into the container registry and checkout the codebase to get ready for building
::code-with-copy-button
```yaml [workflow.yml]
- name: Check for existing cache
id: cache-check
Expand Down Expand Up @@ -121,13 +116,11 @@ We log into the container registry and checkout the codebase to get ready for bu
restore-keys: |
${{ runner.os }}-buildx-
```
::
We want to cache the Docker layers to improve the time it takes to run this workflow, but also have to manage deleting this cache if it became invalid. Same goes for old package versions. GitHub keeps these around by default, but for a project like this, I don't want that. So I made the workflow delete them.
::code-with-copy-button
```yaml [workflow.yml]
- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand All @@ -140,7 +133,6 @@ We want to cache the Docker layers to improve the time it takes to run this work
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
```
::
And at last, we build and push the Docker Image, to be pulled down by me and hosted.
Expand Down
16 changes: 14 additions & 2 deletions content/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# probablyjassin
# probablyjassin | Coding and Blogging

::prose-em
Jässin Aouani
::

---

Hi 👋, I'm 18 and I study computer science student and also working in IT.
Hi 👋, I'm 18 and I study computer science while also working in IT.

I enjoy coding things just because I'm interested.

Expand All @@ -18,3 +18,15 @@ I enjoy coding things just because I'm interested.
- a python library

This website is a place for me to present these things and write about them, or anything else I want to!

# About me

I finished school in June 2024, and since October of the same year I'm attending something called [vocational/dual education](https://en.wikipedia.org/wiki/Vocational_education), where I go to Uni for 3 months at a time, and then Work for 3 months to then swap back again, for 3 years total. I hope to learn a lot more about IT/Computer Science and eventually work there.

In Uni I learn the theoreticals of Computer Science

At work I will learn more about the Infrastructure and Security side of things

And in my free time, I code up all the interesting things I listed above

And now that I started writing about my journey, you can read about it [here](/blog)! I hope you enjoy\~

0 comments on commit aec0bbb

Please sign in to comment.