diff --git a/new-site/config.toml b/new-site/config.toml index de5450f7..460d8934 100644 --- a/new-site/config.toml +++ b/new-site/config.toml @@ -5,10 +5,11 @@ theme = 'lugo' pluralizelisttitles = false [params] -showrss = true -nextprev = true -taglist = true -datesinlist = true + description = "A blog about the things I'm interested in - Japanese and posting obscure problems I've solved. Will post my takes on 神ゲー vinnies" + showrss = true + nextprev = true + taglist = true + datesinlist = true [markup] [markup.goldmark] diff --git a/new-site/content/_index.md b/new-site/content/_index.md index d0e23f6b..e54c38e4 100644 --- a/new-site/content/_index.md +++ b/new-site/content/_index.md @@ -1,4 +1,5 @@ --- +description: "A blog about the things I'm interested in - Japanese and posting obscure problems I've solved." --- {{% center %}} # VODORASLO diff --git a/new-site/content/blog/meta-description-in-hugo.md b/new-site/content/blog/meta-description-in-hugo.md new file mode 100644 index 00000000..d52c21c5 --- /dev/null +++ b/new-site/content/blog/meta-description-in-hugo.md @@ -0,0 +1,53 @@ +--- +title: "Meta Description in Hugo" +date: 2023-01-04T22:52:24+02:00 +draft: false +description: "This step by step guide will show you how to add meta description in your own Hugo site." +tags: ['blog'] +--- + +# Adding meta description in Hugo + +I assume you are using Luke Smith's theme - Lugo, if you are not, you'd have to find these files yourself (e.g. search using vscode). + +## Setting a global meta description + + +1. Locate your config.toml or config.yaml file +2. Add the following line inside it + +For config.toml +```toml +[params] + description = "The global meta description of your website" +``` + +For config.yaml +```yaml +params: + description: The global meta description of your website +``` + +It won't work just yet because you have update the ```baseof.html``` file. + +## Updating the baseof.html file + +1. Locate baseof.html +2. Add or change the meta description line with the following +```html + +``` + +And now if you start your Hugo server locally with ```hugo serve --noHTTPCache``` and you right click on your page -> View Page Source -> Search for the meta description tag. It should match what you left in the config file. + +## Replacing the global description with a custom one + +1. Have a markdown file ready +2. In the preamble, add +```yaml +--- +description: "Your custom description for this page" +--- +``` + +Following these steps would guarantee that you have a meta description for everypage with the ability for creating a custom one whenever you need it! \ No newline at end of file diff --git a/new-site/content/blog/yoinked-css.md b/new-site/content/blog/yoinked-css.md index aa9546e5..6e72766e 100644 --- a/new-site/content/blog/yoinked-css.md +++ b/new-site/content/blog/yoinked-css.md @@ -3,6 +3,7 @@ title: "Yoinked some Css and updated the site" date: 2022-12-27T14:24:24+02:00 draft: false tags: ['updates'] +description: "A tale as old as time - stealing css" --- yoinked lukes css and updated the site, its basically his colors for the headers and my cyan anchor links.. very pretty much wow \ No newline at end of file diff --git a/new-site/public/blog/index.html b/new-site/public/blog/index.html index d131982c..f06a8574 100644 --- a/new-site/public/blog/index.html +++ b/new-site/public/blog/index.html @@ -6,7 +6,7 @@ - + @@ -17,6 +17,7 @@