Skip to content

Commit

Permalink
Merge pull request #110 from zetxek/108-idea-add-support-for-og-metadata
Browse files Browse the repository at this point in the history
Add support for opengraph (OG) metadata
  • Loading branch information
zetxek authored Dec 22, 2024
2 parents 98425e6 + 15deda5 commit 61a5a3b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
5 changes: 5 additions & 0 deletions exampleSite/content/blog/sample-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ title = 'Sample blog content 3'
date = 2024-06-24T14:38:33+02:00
draft = false
type = 'blog'

[images]
featured_image = '/img/blog/feature-sample-3.png'
+++

Sample blog content. Like a lorem ipsum but saying something more interesting.

![Example image](/img/blog/feature-sample-3.png)

Welcome to the world of "Content Ipsum," the fresh alternative to the classic lorem ipsum. It's the perfect blend for designers and writers who crave a dash of creativity and meaning in their placeholder text. Imagine a text that not only fills the space but also sparks the imagination, a text that weaves tales of innovation, inspiration, and the endless possibilities that creativity brings.

In the realm of "Content Ipsum," every paragraph is a journey through the wonders of the human mind, a celebration of the achievements that have shaped our world, and a look into the future that awaits us. From the depths of the ocean to the farthest reaches of the universe, "Content Ipsum" takes you on an adventure that captivates and informs.
Expand Down
39 changes: 21 additions & 18 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@ baseURL = "https://www.adrianmoreno.info"
languageCode = "en"
theme = "adritian-free-hugo-theme"

[params]

title = 'Adritian - a high performance hugo theme by Adrián Moreno'
description = 'This hugo theme (Adritian) is based on Bootstrap and has features that make it suitable for a personal site, a portfolio or other kind of Single Page Applications.'
images = ['/img/og-img.png']
sections = ["showcase", "about", "education", "experience", "client-and-work", "testimonial", "contact", "newsletter"]

homepageExperienceCount = 6

# 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

[build]
[build.buildStats]
disableClasses = false
Expand Down Expand Up @@ -174,21 +194,4 @@ theme = "adritian-free-hugo-theme"

# SCSS Plugins
[[params.plugins.scss]]
URL = "scss/adritian.scss"

[params]

sections = ["showcase", "about", "education", "experience", "client-and-work", "testimonial", "contact", "newsletter"]

homepageExperienceCount = 6

# 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
URL = "scss/adritian.scss"
Binary file added exampleSite/static/img/blog/feature-sample-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@
{{- end }}
<script src='{{ "js/library/lozad.min.js" | absURL }}'></script>

{{ template "_internal/opengraph.html" . }}

0 comments on commit 61a5a3b

Please sign in to comment.