From dca685c79b587d17e13c5da51ef67aa2e71b891c Mon Sep 17 00:00:00 2001 From: Ariel Costas <94913521+arielcostas@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:24:28 +0100 Subject: Super basic start --- .gitignore | 35 ++++++++++++++++++++++++++++ archetypes/default.md | 5 ++++ content/_index.md | 13 +++++++++++ content/blog/_index.md | 3 +++ content/blog/post-1.md | 6 +++++ content/blog/post-2.md | 6 +++++ hugo.yaml | 7 ++++++ layouts/_default/_markup/render-heading.html | 4 ++++ layouts/_default/baseof.html | 19 +++++++++++++++ layouts/_default/list.html | 3 +++ layouts/_default/list.md | 1 + layouts/_default/single.html | 3 +++ layouts/blog/list.html | 11 +++++++++ layouts/partials/footer.html | 12 ++++++++++ layouts/partials/header.html | 1 + static/robots.txt | 2 ++ static/security.txt | 2 ++ 17 files changed, 133 insertions(+) create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 content/_index.md create mode 100644 content/blog/_index.md create mode 100644 content/blog/post-1.md create mode 100644 content/blog/post-2.md create mode 100644 hugo.yaml create mode 100644 layouts/_default/_markup/render-heading.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/list.md create mode 100644 layouts/_default/single.html create mode 100644 layouts/blog/list.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 static/robots.txt create mode 100644 static/security.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b7bd1a --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +# .gitignore for Hugo website + +# Ignore Hugo build output directory +/public/ + +# Ignore Hugo temp files +/resources/_gen/ + +# Ignore Hugo's build lock file +.hugo_build.lock + +# Ignore system files +.DS_Store +Thumbs.db + +# Ignore user-specific files +*.swp +*.swo +*.swn +.idea/ +*.iml +*.log +*.bak +*.orig +*.pyc +*.pyo +*.rej +*.save +*.swo +*.swp +*.tmproj +*.un~ +Session.vim +tags +netrwhist diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..faa9d24 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,13 @@ +--- +title: "Inici" +--- + +# Bon día mon + +Benvinguts i benvingudes a la meva web. Aquí trobareu informació sobre mi, els meus projectes i els meus interessos. + +Això es una prova del Hugo per a fer el meu web propi. A veure si funciona. + +## Qui sóc? + +Sóc un jove de 20 anys de Galícia que va estudiar un cicle superior i ara treballa de programador. M'agrada molt la informàtica i la tecnologia en general, i m'encanta aprendre coses noves. També estic aprendent català, per això aquesta web està en aquest idioma. \ No newline at end of file diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..ee163da --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,3 @@ +--- +title: "Blog" +--- \ No newline at end of file diff --git a/content/blog/post-1.md b/content/blog/post-1.md new file mode 100644 index 0000000..72c41de --- /dev/null +++ b/content/blog/post-1.md @@ -0,0 +1,6 @@ +--- +title: post 1 +date: 2023-11-10 +--- + +Això es el post 1. A veure si funciona. diff --git a/content/blog/post-2.md b/content/blog/post-2.md new file mode 100644 index 0000000..cc645d5 --- /dev/null +++ b/content/blog/post-2.md @@ -0,0 +1,6 @@ +--- +title: post 2 +date: 2023-11-10 +--- + +Aquest es el post 2. Si no funciona, em pegaré un tret a la boca. diff --git a/hugo.yaml b/hugo.yaml new file mode 100644 index 0000000..7231a57 --- /dev/null +++ b/hugo.yaml @@ -0,0 +1,7 @@ +baseURL: https://costas.dev/ +languageCode: es-ES +title: Ariel Costas + +outputs: + home: ["HTML", "AMP"] + posts: ["HTML", "RSS", "markdown"] \ No newline at end of file diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..6023eb1 --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,4 @@ + + # + {{ .Text | safeHTML }} + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..a4c2f56 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,19 @@ + + + + + + + {{ .Page.Title }} - Ariel Costas + + + + {{ partial "partials/header.html" . }} + + {{ block "main" . }} + {{ end }} + + {{ partial "partials/footer.html" . }} + + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..c1339be --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/layouts/_default/list.md b/layouts/_default/list.md new file mode 100644 index 0000000..a4ec683 --- /dev/null +++ b/layouts/_default/list.md @@ -0,0 +1 @@ +{{ .Content|markdownify}} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..c1339be --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..2cf4b0b --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,11 @@ +{{ define "main" }} + {{- .Content }} + + +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..7c568ad --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,12 @@ + + + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..13b2722 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1 @@ +

CostasDEV

\ No newline at end of file diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/static/security.txt b/static/security.txt new file mode 100644 index 0000000..c32ac9b --- /dev/null +++ b/static/security.txt @@ -0,0 +1,2 @@ +Canonical: https://costas.dev/security.txt +Preferred-Languages: es, en \ No newline at end of file -- cgit v1.3