From 26025cd8e12ddbf7fc0be9e251407d62653b0cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Alvari=C3=B1o?= Date: Thu, 8 Feb 2024 11:09:38 +0100 Subject: [PATCH] dev: First configuration of new FixIt theme --- config/_default/author.toml | 6 +- config/_default/config.toml | 9 +- config/_default/menus.toml | 24 +++- config/_default/params.toml | 203 ++++++++++++++-------------- content/posts/hello-world.md | 89 ------------- static/cerito.svg | 250 +++++++++++++++++++++++++++++++++++ 6 files changed, 386 insertions(+), 195 deletions(-) delete mode 100644 content/posts/hello-world.md create mode 100644 static/cerito.svg diff --git a/config/_default/author.toml b/config/_default/author.toml index 30681e2..eb51c25 100644 --- a/config/_default/author.toml +++ b/config/_default/author.toml @@ -2,7 +2,7 @@ # Author Configuration # ------------------------------------------------------------------------------------- -name = "Lruihao" -email = "1024@lruihao.cn" -link = "https://github.com/Lruihao" +name = "salvari" +email = "salvari@protonmail.com" +link = "https://comacero.com/" avatar = "" diff --git a/config/_default/config.toml b/config/_default/config.toml index ecf061e..18186e2 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -3,11 +3,12 @@ # See: https://gohugo.io/getting-started/configuration/ # ------------------------------------------------------------------------------------- -title = "Hugo FixIt Blog" -baseURL = "http://example.org/" +# title = "Hugo FixIt Blog" +title = "comacero" +baseURL = "http://comacero.com/" theme = "FixIt" -defaultContentLanguage = "en" -languageCode = "en" +defaultContentLanguage = "es" +languageCode = "es" hasCJKLanguage = true enableRobotsTXT = true enableEmoji = true diff --git a/config/_default/menus.toml b/config/_default/menus.toml index 5a3d85a..6a8bad4 100644 --- a/config/_default/menus.toml +++ b/config/_default/menus.toml @@ -28,7 +28,7 @@ identifier = "categories" pre = "" post = "" - name = "Categories" + name = "Categorias" url = "/categories/" title = "" weight = 2 @@ -38,9 +38,29 @@ identifier = "tags" pre = "" post = "" - name = "Tags" + name = "Etiquetas" url = "/tags/" title = "" weight = 3 [main.params] icon = "fa-solid fa-tags" +[[main]] + identifier = "links" + pre = "" + post = "" + name = "Enlaces" + url = "/links/" + title = "" + weight = 6 + [main.params] + icon = "fa-solid fa-link" +[[main]] + identifier = "about" + pre = "" + post = "" + name = "Acerca de" + url = "/about/" + title = "" + weight = 10 + [main.params] + icon = "fa-solid fa-info-circle" diff --git a/config/_default/params.toml b/config/_default/params.toml index 7102c9d..f55109e 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -6,13 +6,13 @@ # FixIt 0.2.15 | CHANGED FixIt theme version version = "0.2.X" # e.g. "0.2.X", "0.2.15", "v0.2.15" etc. # site description -description = "This is my new Hugo FixIt site" +description = "Notas personales sobre hardware y software libres" # site keywords keywords = ["Hugo", "FixIt"] # site default theme ["light", "dark", "auto"] -defaultTheme = "auto" +defaultTheme = "dark" # public git repo url only then enableGitInfo is true -gitRepo = "" +# gitRepo = "" # FixIt 0.1.1 | NEW which hash function used for SRI, when empty, no SRI is used # ["sha256", "sha384", "sha512", "md5"] fingerprint = "" @@ -31,7 +31,7 @@ disableThemeInject = false # FixIt 0.2.0 | NEW App icon config [app] # optional site title override for the app when added to an iOS home screen or Android launcher - title = "Hugo FixIt Blog" + title = "comacero" # whether to omit favicon resource links noFavicon = false # modern SVG favicon to use in place of older style .png and .ico files @@ -87,9 +87,9 @@ disableThemeInject = false # FixIt 0.2.0 | NEW Header title config [header.title] # URL of the LOGO - logo = "/fixit.min.svg" + logo = "/images/cerito.svg" # title name - name = "Hugo FixIt Blog" + name = "comacero" # you can add extra information before the name (HTML format is supported), such as icons pre = "" # you can add extra information after the name (HTML format is supported), such as icons @@ -99,7 +99,7 @@ disableThemeInject = false # FixIt 0.2.12 | NEW Header subtitle config [header.subtitle] # subtitle name - name = "" + name = "notas sobre hardware y software libres" # whether to use typeit animation for subtitle name typeit = false @@ -186,21 +186,21 @@ disableThemeInject = false [home.profile] enable = true # Gravatar Email for preferred avatar in home page - gravatarEmail = "xx@xx.com" + gravatarEmail = "" # URL of avatar shown in home page - avatarURL = "" + avatarURL = "/images/cerito.svg" # FixIt 0.2.17 | NEW identifier of avatar menu link avatarMenu = "" # FixIt 0.2.7 | CHANGED title shown in home page (HTML format is supported) title = "" # subtitle shown in home page - subtitle = "This is my new Hugo FixIt site" + subtitle = "Apuntes personales de hardware y software libres" # whether to use typeit animation for subtitle typeit = true # whether to show social links social = true # FixIt 0.2.0 | NEW disclaimer (HTML format is supported) - disclaimer = "" + disclaimer = "Sólo para autoconsumo (^_^)" # Home page posts [home.posts] enable = true @@ -209,93 +209,102 @@ disableThemeInject = false # FixIt 0.2.16 | CHANGED Social config about the author [social] - GitHub = "" - Linkedin = "" - Twitter = "" - Instagram = "" - Facebook = "" - Telegram = "" - Medium = "" - Gitlab = "" - Youtubelegacy = "" - Youtubecustom = "" - Youtubechannel = "" - Tumblr = "" - Quora = "" - Keybase = "" - Pinterest = "" - Reddit = "" - Codepen = "" - FreeCodeCamp = "" - Bitbucket = "" - Stackoverflow = "" - Weibo = "" - Odnoklassniki = "" - VK = "" - Flickr = "" - Xing = "" - Snapchat = "" - Soundcloud = "" - Spotify = "" - Bandcamp = "" - Paypal = "" - Fivehundredpx = "" - Mix = "" - Goodreads = "" - Lastfm = "" - Foursquare = "" - Hackernews = "" - Kickstarter = "" - Patreon = "" - Steam = "" - Twitch = "" - Strava = "" - Skype = "" - Whatsapp = "" - Zhihu = "" - Douban = "" - Angellist = "" - Slidershare = "" - Jsfiddle = "" - Deviantart = "" - Behance = "" - Dribbble = "" - Wordpress = "" - Vine = "" - Googlescholar = "" - Researchgate = "" - Mastodon = "" - Thingiverse = "" - Devto = "" - Gitea = "" - XMPP = "" - Matrix = "" - Bilibili = "" - ORCID = "" - Liberapay = "" - Ko-Fi = "" - BuyMeaCoffee = "" - Linktree = "" - QQ = "" - QQGroup = "" # https://qun.qq.com/join.html - Diaspora = "" - CSDN = "" - Discord = "" - DiscordInvite = "" - Lichess = "" - Pleroma = "" - Kaggle = "" - MediaWiki= "" - Plume = "" - HackTheBox = "" - RootMe = "" - Feishu = "" - TryHackMe = "" - Douyin = "" - TikTok = "" - Phone = "" - Email = "" + GitHub = "salvari" + Telegram = "salvari" + Gitlab = "salvari" + Bitbucket = "salvari" + Flickr = "salvari" +# Spotify = "salvari" + Email = "salvari@protonmail.com" RSS = true + [social.Mastodon] + id = "@salvari" + prefix = "https://mastodon.gal/" + title = "Mastodon" + [social.gitea] + id = "salvari" + prefix = "https://git.comacero.com/" + title = "Gitea" + +# Mastodon = "" +# Gitea = "" +# Linkedin = "" +# Twitter = "" +# Instagram = "" +# Facebook = "" +# Medium = "" +# Youtubelegacy = "" +# Youtubecustom = "" +# Youtubechannel = "" +# Tumblr = "" +# Quora = "" +# Keybase = "" +# Pinterest = "" +# Reddit = "" +# Codepen = "" +# FreeCodeCamp = "" +# Stackoverflow = "" +# Weibo = "" +# Odnoklassniki = "" +# VK = "" +# Xing = "" +# Snapchat = "" +# Soundcloud = "" +# Bandcamp = "" +# Paypal = "" +# Fivehundredpx = "" +# Mix = "" +# Goodreads = "" +# Lastfm = "" +# Foursquare = "" +# Hackernews = "" +# Kickstarter = "" +# Patreon = "" +# Steam = "" +# Twitch = "" +# Strava = "" +# Skype = "" +# Whatsapp = "" +# Zhihu = "" +# Douban = "" +# Angellist = "" +# Slidershare = "" +# Jsfiddle = "" +# Deviantart = "" +# Behance = "" +# Dribbble = "" +# Wordpress = "" +# Vine = "" +# Googlescholar = "" +# Researchgate = "" +# Thingiverse = "" +# Devto = "" +# XMPP = "" +# Matrix = "" +# Bilibili = "" +# ORCID = "" +# Liberapay = "" +# Ko-Fi = "" +# BuyMeaCoffee = "" +# Linktree = "" +# QQ = "" +# QQGroup = "" # https://qun.qq.com/join.html +# Diaspora = "" +# CSDN = "" +# Discord = "" +# DiscordInvite = "" +# Lichess = "" +# Pleroma = "" +# Kaggle = "" +# MediaWiki= "" +# Plume = "" +# HackTheBox = "" +# RootMe = "" +# Feishu = "" +# TryHackMe = "" +# Douyin = "" +# TikTok = "" +# Phone = "" # FixIt 0.2.0 | CHANGED Page config [page] diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md deleted file mode 100644 index a626567..0000000 --- a/content/posts/hello-world.md +++ /dev/null @@ -1,89 +0,0 @@ ---- -title: Hello World -date: 2022-09-29T17:06:11+08:00 -tags: -- hello -- FixIt -categories: -- hello -code: - maxShownLines: 11 -# See details front matter: https://fixit.lruihao.cn/documentation/content-management/introduction/#front-matter ---- - -Welcome to Hugo FixIt! This is your very first post. - - - -Head to the documentation page linked below for a complete guidence to get started with the [FixIt](https://github.com/hugo-fixit/FixIt) theme. - -{{< link href="https://fixit.lruihao.cn/documentation/" content="All Documentation - FixIt" title="documentation of FixIt Theme" card=true >}} - -## Quick Start - -For a complete quick start, see this [page](https://fixit.lruihao.cn/documentation/getting-started/). - -### Prerequisites - -[Hugo](https://gohugo.io/installation/): >= 0.109.0 (extended version) - -### Use this Template - -1. Click **Use this template**, and create your repository on GitHub. - - image - -2. Once the repository is created, just clone and enjoy it! - - ```bash - # Clone with your own repository url - git clone --recursive https://github.com//.git - ``` - -### Launching the Site - -```bash -# Development environment -hugo server -# Production environment -hugo server -e production -``` - -### Build the Site - -When your site is ready to deploy, run the following command: - -```bash -hugo -``` - -### Update theme - -Afterwards you can upgrade the theme with the following command: - -```bash -# Update theme manually -git submodule update --remote --merge themes/FixIt -``` - -
- Start via NPM script - - ```bash - # build the blog - npm run build - # run a local debugging server with watch - npm run server - # run a local debugging server in production environment - npm run server:production - # update theme submodules - npm run update:theme - ``` - -
- -## Feedback - -Whether it's questions, ideas, bugs or pull requests, all feedback is welcome! - -Head over to the [issues](https://github.com/hugo-fixit/FixIt/issues) or [discussions](https://github.com/hugo-fixit/FixIt/discussions) tracker. diff --git a/static/cerito.svg b/static/cerito.svg new file mode 100644 index 0000000..a6b9702 --- /dev/null +++ b/static/cerito.svg @@ -0,0 +1,250 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +