diff --git a/content/_index.md b/content/_index.md index a4a993f..d864658 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,3 +1,3 @@ --- -date: '2024-12-17T00:00:00+01:00' # date in which the content is created - defaults to "today" ---- \ No newline at end of file +date: '2025-01-06T00:00:00+01:00' # date in which the content is created - defaults to "today" +--- diff --git a/data/homepage.yml b/data/homepage.yml index 7dd6598..dbe1b94 100755 --- a/data/homepage.yml +++ b/data/homepage.yml @@ -57,10 +57,13 @@ education: experience: enable: true button: + enable: true icon: "icon-linkedin" button2: + enable: true icon: "icon-square-github" button3: + enable: false icon: "" # Client & Work @@ -81,4 +84,4 @@ contact: # newsletter newsletter: - enable: false \ No newline at end of file + enable: false diff --git a/hugo.toml b/hugo.toml index 5246af8..d0a4f0e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -5,6 +5,34 @@ theme = "adritian-free-hugo-theme" disableKinds = ["taxonomy", "term", "rss"] enableRobotsTXT = true +[params] + + # Open Graph + images = ['/android-chrome-512x512.png'] + + sections = ["showcase", "experience", "education", "client-and-work", "testimonial"] + + homepageExperienceCount = 3 + + [params.analytics] + ## Analytics parameters. + ### Supported so far: Vercel (Page Insights, Analytics) + ### And Google (Tag Manager, Analytics) + + # controls vercel page insights - disabled by default + # to enable, just set to true + vercelPageInsights = false + vercelAnalytics = false + + # google analytics and tag manager. to enable, set "enabled" to true + # and add the tracking code (UA-something for analytics, GTM-something for tag manager) + [params.analytics.googleAnalytics] + code = "UA-XXXXX-Y" + enabled = false + [params.analytics.googleTagManager] + code = "GTM-XXXXX" + enabled = false + [build] [build.buildStats] disableClasses = false @@ -116,6 +144,7 @@ enableRobotsTXT = true # Plugins [params.plugins] + # CSS Plugins [[params.plugins.css]] URL = "css/custom.css" @@ -134,6 +163,7 @@ enableRobotsTXT = true [[params.plugins.scss]] URL = "scss/adritian.scss" + # theme/color style [params.colorTheme] @@ -149,24 +179,3 @@ enableRobotsTXT = true ## by default we allow override AND automatic selection - - -[params] - # Open Graph - images = ['/android-chrome-512x512.png'] - - #sections = ["showcase", "about", "education", "experience", "client-and-work", "testimonial", "contact", "newsletter"] - sections = ["showcase", "experience", "education", "client-and-work", "testimonial"] - - homepageExperienceCount = 3 - - # controls vercel page insights - disabled by default - vercelPageInsights = false - vercelAnalytics = false - - [params.google_analytics] - code = "UA-XXXXX-Y" - enabled = false - [params.google_tag_manager] - code = "GTM-XXXXX" - enabled = false diff --git a/i18n/en.yaml b/i18n/en.yaml index 6b15ef2..680c754 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -89,7 +89,7 @@ translation: "Experience" - id: "experience_description" - translation: "Here a list of my professional experience along with the companies I've worked for and the projects I've been involved in. Also you can check my LinkedIn profile." + translation: "Here a list of my professional experience along with the companies I've worked for and the projects I've been involved in. Also you can check my LinkedIn and GitHub profiles." - id: "experience_button" translation: "LinkedIn" diff --git a/layouts/partials/experience-description.html b/layouts/partials/experience-description.html deleted file mode 100644 index bf13c62..0000000 --- a/layouts/partials/experience-description.html +++ /dev/null @@ -1,45 +0,0 @@ -
-
-

{{ i18n "experience_title" }}

-

{{ i18n "experience_description" }}

-
-
- - {{ if .Site.Data.homepage.experience.button2.icon }} - - {{ end }} - {{ if .Site.Data.homepage.experience.button3.icon }} - - {{ end }} -
-
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2215685..5c1bb10 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,10 +3,23 @@ -{{- if .Site.Params.analytics.google_tag_manager.enabled }} +{{- if .Site.Params.analytics.googleTagManager.enabled }} {{- end }} - +{{- if .Site.Params.analytics.googleAnalytics.enabled }} +{{- if .Site.Params.analytics.googleAnalytics.code}} + + + +{{- end }} +{{- end }} + {{ if not .Params.seo.title }} {{ i18n "head_title" }} {{ else }} @@ -32,14 +45,6 @@ {{- $cssResources = $cssResources | append $cssFile }} {{- end }} {{- end }} -{{- range .Site.Params.plugins.scss }} - {{- $scss := resources.Get .URL }} - {{- $style := $scss | css.Sass }} - {{- if hugo.IsProduction }} - {{- $style = $scss | css.Sass | resources.Minify | resources.Fingerprint }} - {{- end }} - -{{- end }} {{- $cssBundle := $cssResources | resources.Concat "css/bundle.css" }} @@ -52,16 +57,16 @@ href="{{ $css.RelPermalink }}" as="style" onload="this.onload=null;this.rel='stylesheet'" - {{ if hugo.IsProduction -}} + {{ if hugo.IsProduction -}} integrity="{{ $css.Data.Integrity }}" crossorigin="anonymous" {{- end }} />