diff options
| -rw-r--r-- | .gitignore | 35 | ||||
| -rw-r--r-- | archetypes/default.md | 5 | ||||
| -rw-r--r-- | content/_index.md | 13 | ||||
| -rw-r--r-- | content/blog/_index.md | 3 | ||||
| -rw-r--r-- | content/blog/post-1.md | 6 | ||||
| -rw-r--r-- | content/blog/post-2.md | 6 | ||||
| -rw-r--r-- | hugo.yaml | 7 | ||||
| -rw-r--r-- | layouts/_default/_markup/render-heading.html | 4 | ||||
| -rw-r--r-- | layouts/_default/baseof.html | 19 | ||||
| -rw-r--r-- | layouts/_default/list.html | 3 | ||||
| -rw-r--r-- | layouts/_default/list.md | 1 | ||||
| -rw-r--r-- | layouts/_default/single.html | 3 | ||||
| -rw-r--r-- | layouts/blog/list.html | 11 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 12 | ||||
| -rw-r--r-- | layouts/partials/header.html | 1 | ||||
| -rw-r--r-- | static/robots.txt | 2 | ||||
| -rw-r--r-- | static/security.txt | 2 |
17 files changed, 133 insertions, 0 deletions
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 @@ +<h{{ .Level }} id="{{ .Anchor | safeURL }}"> + <a class="anchor" href="#{{ .Anchor | safeURL }}">#</a> + {{ .Text | safeHTML }} +</h{{ .Level }}> 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 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>{{ .Page.Title }} - Ariel Costas</title> +</head> + +<body> + {{ partial "partials/header.html" . }} + + {{ block "main" . }} + {{ end }} + + {{ partial "partials/footer.html" . }} +</body> + +</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 }} + + <ul> + {{ range .Pages.ByLastmod }} + <li> + <a href="{{ .Permalink }}">{{ .Page.Title }}</a> + </li> + {{ end }} + </ul> +{{ 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 @@ +<div role="none" aria-hidden="true" id="main-footer-separator"></div> + +<footer> + <p> + Copyright (C) {{ .Date.Year }} Ariel Costas Guerrero. + Tots els drets reservats. + + Tots els continguts de aquest web estan sota llicència CC BY-SA 4.0, + per tant, es poden compartir i modificar, sempre que es reconegui la + autoria i es mantingui la mateixa llicència. + </span> +</footer>
\ 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 @@ +<h1>CostasDEV</h1>
\ 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 |
