Skip to content

Commit

Permalink
upgrade theme to v1.4.13 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcorto authored Jan 5, 2025
1 parent aae0298 commit 0980edc
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 85 deletions.
4 changes: 2 additions & 2 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
date: '2024-12-17T00:00:00+01:00' # date in which the content is created - defaults to "today"
---
date: '2025-01-06T00:00:00+01:00' # date in which the content is created - defaults to "today"
---
5 changes: 4 additions & 1 deletion data/homepage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -81,4 +84,4 @@ contact:

# newsletter
newsletter:
enable: false
enable: false
51 changes: 30 additions & 21 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -116,6 +144,7 @@ enableRobotsTXT = true

# Plugins
[params.plugins]

# CSS Plugins
[[params.plugins.css]]
URL = "css/custom.css"
Expand All @@ -134,6 +163,7 @@ enableRobotsTXT = true
[[params.plugins.scss]]
URL = "scss/adritian.scss"


# theme/color style
[params.colorTheme]

Expand All @@ -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
2 changes: 1 addition & 1 deletion i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
45 changes: 0 additions & 45 deletions layouts/partials/experience-description.html

This file was deleted.

33 changes: 19 additions & 14 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<meta name="theme-color" content="#478079"/>

{{- if .Site.Params.analytics.google_tag_manager.enabled }}
{{- if .Site.Params.analytics.googleTagManager.enabled }}
<link rel="preconnect" href="https://www.googletagmanager.com">
{{- end }}
<!-- endinject -->
{{- if .Site.Params.analytics.googleAnalytics.enabled }}
{{- if .Site.Params.analytics.googleAnalytics.code}}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.analytics.googleAnalytics.code }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ .Site.Params.analytics.googleAnalytics.code}} ');
</script>
{{- end }}
{{- end }}

{{ if not .Params.seo.title }}
<title>{{ i18n "head_title" }}</title>
{{ else }}
Expand All @@ -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 }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous"/>
{{- end }}

{{- $cssBundle := $cssResources | resources.Concat "css/bundle.css" }}

Expand All @@ -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 }}
/>
<noscript>
<link
<link
rel="stylesheet"
href="{{ $css.RelPermalink }}"
{{ if hugo.IsProduction -}}
{{ if hugo.IsProduction -}}
integrity="{{ $css.Data.Integrity }}"
crossorigin="anonymous"
{{- end }}
Expand Down Expand Up @@ -90,7 +95,7 @@

{{- if .Site.Params.analytics.google_tag_manager.enabled }}
<!-- Google tag (gtag.js), google analytics -->
<script defer src="https://www.googletagmanager.com/gtag/js?id=UA-465407-4"></script>
<script defer src="https://www.googletagmanager.com/gtag/js?id={{.Site.Params.analytics.google_tag_manager.code}}"></script>
{{- $analytics := resources.Get "js/gtag.js" | resources.Minify }}
<script defer src="{{ $analytics.Permalink }}"></script>
{{- else }}
Expand Down

0 comments on commit 0980edc

Please sign in to comment.