diff --git a/content/_index.md b/content/_index.md index 4879110..980e6db 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,4 +1,4 @@ --- -title: "Home" +title: 'Home' date: 2023-10-18T20:03:43+01:00 --- diff --git a/content/about.md b/content/about.md index 7a8cddd..79d1d03 100644 --- a/content/about.md +++ b/content/about.md @@ -1,6 +1,6 @@ --- -layout: "about" -title: "About" +layout: 'about' +title: 'About' date: 2023-10-18T20:03:43+01:00 --- @@ -14,4 +14,4 @@ Nunc molestie lorem velit, in efficitur risus dictum vel. Integer porta odio in Duis molestie venenatis rhoncus. Phasellus pulvinar odio vel nulla accumsan pretium eget at nunc. Sed convallis, orci at laoreet consequat, odio leo tincidunt sapien, eget ultricies tortor nisl at metus. Integer pretium odio in ipsum iaculis, sit amet pretium lacus vehicula. Etiam vel ex id nisl hendrerit consequat iaculis id metus. Donec scelerisque justo augue, sed accumsan velit elementum finibus. Cras in viverra ex, in faucibus diam. Sed volutpat lacus vel suscipit aliquet. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Praesent bibendum ligula lacinia consectetur interdum. -Fusce ultricies ex et volutpat elementum. Curabitur finibus iaculis erat, et venenatis lectus facilisis nec. Donec sollicitudin, sapien quis bibendum auctor, arcu nunc interdum enim, scelerisque aliquet enim neque eu neque. Fusce in turpis felis. Curabitur sapien mi, lobortis at hendrerit sit amet, maximus in nisi. Sed ac purus suscipit, laoreet lacus quis, congue leo. Cras imperdiet massa rutrum est dictum, quis convallis purus sollicitudin. Nulla eu nibh vel nisl accumsan ultrices. \ No newline at end of file +Fusce ultricies ex et volutpat elementum. Curabitur finibus iaculis erat, et venenatis lectus facilisis nec. Donec sollicitudin, sapien quis bibendum auctor, arcu nunc interdum enim, scelerisque aliquet enim neque eu neque. Fusce in turpis felis. Curabitur sapien mi, lobortis at hendrerit sit amet, maximus in nisi. Sed ac purus suscipit, laoreet lacus quis, congue leo. Cras imperdiet massa rutrum est dictum, quis convallis purus sollicitudin. Nulla eu nibh vel nisl accumsan ultrices. diff --git a/content/contact.md b/content/contact.md index bff2d4f..194e93d 100644 --- a/content/contact.md +++ b/content/contact.md @@ -1,9 +1,9 @@ --- -layout: "contact" -title: "Contact" +layout: 'contact' +title: 'Contact' date: 2023-10-18T20:03:43+01:00 --- ## Contact -Here you can contact me personally for any questions or opportunities. \ No newline at end of file +Here you can contact me personally for any questions or opportunities. diff --git a/content/projects/react-weather-app/index.md b/content/projects/react-weather-app/index.md index dbd305c..7cba253 100644 --- a/content/projects/react-weather-app/index.md +++ b/content/projects/react-weather-app/index.md @@ -18,4 +18,4 @@ This is a project that I made as a step in the interview process for my final ye ## Screenshots -{{< figure src="https://res.cloudinary.com/dun9hhyz1/image/upload/v1643548378/personal-website/portfolio/react-weather-app/screenshot_ueu2a4.png" >}} \ No newline at end of file +{{< figure src="react-weather-app-screenshot.png" >}} \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 6e503e7..7a2c60c 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,12 +1,10 @@ -languageCode = 'en-us' +languageCode = 'en' title = 'Hazem Krimi' paginate = 5 enableRobotsTXT = true [outputs] home = ['html', 'rss'] section = ['html', 'rss'] - taxonomy = ['html'] - term = ['html'] [sitemap] changeFreq = '' filename = 'sitemap.xml' diff --git a/layouts/_default/home.rss.xml b/layouts/_default/home.rss.xml new file mode 100644 index 0000000..71672dd --- /dev/null +++ b/layouts/_default/home.rss.xml @@ -0,0 +1,78 @@ +{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} +{{- $authorEmail := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .email }} + {{- $authorEmail = . }} + {{- end }} + {{- end }} +{{- else }} + {{- with site.Author.email }} + {{- $authorEmail = . }} + {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} + {{- end }} +{{- end }} + +{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} +{{- $authorName := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .name }} + {{- $authorName = . }} + {{- end }} + {{- else }} + {{- $authorName = . }} + {{- end }} +{{- else }} + {{- with site.Author.name }} + {{- $authorName = . }} + {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} + {{- end }} +{{- end }} + +{{- $projectsPages := where .Site.RegularPages "Section" "projects" }} +{{- $blogPages := where .Site.RegularPages "Section" "blog" }} + +{{- $limit := .Site.Config.Services.RSS.Limit }} +{{- if ge $limit 1 }} + {{- $projectsPages = $projectsPages | first $limit }} + {{- $blogPages = $blogPages | first $limit }} +{{- end }} + +{{- printf "" | safeHTML }} + + + Hazem Krimi's content + {{ .Permalink }} + Hazem Krimi's projects and blog + Hugo -- gohugo.io + {{ site.Language.LanguageCode }}{{ with $authorEmail }} + {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} + {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} + {{ . }}{{ end }}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end }} + {{- range $projectsPages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{ .Permalink }} + {{ .Params.description | html }} + + {{- end }} + {{- range $blogPages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{ .Permalink }} + {{ .Params.description | html }} + + {{- end }} + + \ No newline at end of file