{"id":19379041,"url":"https://github.com/fivethree-team/vscode-hugo-snippets","last_synced_at":"2025-04-23T19:32:42.874Z","repository":{"id":44663265,"uuid":"183825303","full_name":"fivethree-team/vscode-hugo-snippets","owner":"fivethree-team","description":"🧩 Hugo Snippets for VS Code","archived":false,"fork":false,"pushed_at":"2022-02-01T11:14:58.000Z","size":23,"stargazers_count":9,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T19:21:27.442Z","etag":null,"topics":["gohugo","html","hugo","markdown","md","snippets","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=fivethree.vscode-hugo-snippets","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fivethree-team.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-27T21:58:23.000Z","updated_at":"2023-04-10T11:56:22.000Z","dependencies_parsed_at":"2022-09-25T00:00:46.307Z","dependency_job_id":null,"html_url":"https://github.com/fivethree-team/vscode-hugo-snippets","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivethree-team%2Fvscode-hugo-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivethree-team%2Fvscode-hugo-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivethree-team%2Fvscode-hugo-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivethree-team%2Fvscode-hugo-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fivethree-team","download_url":"https://codeload.github.com/fivethree-team/vscode-hugo-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250499923,"owners_count":21440715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gohugo","html","hugo","markdown","md","snippets","vscode","vscode-extension"],"created_at":"2024-11-10T09:08:20.222Z","updated_at":"2025-04-23T19:32:42.535Z","avatar_url":"https://github.com/fivethree-team.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hugo Snippets\n\n[![Visual Studio Marketplace](https://vsmarketplacebadge.apphb.com/version/fivethree.vscode-hugo-snippets.svg?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=fivethree.vscode-hugo-snippets)\n[![Visual Studio Marketplace](https://vsmarketplacebadge.apphb.com/installs/fivethree.vscode-hugo-snippets.svg?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=fivethree.vscode-hugo-snippets)\n\nVisual Studio Code Extension that adds Hugo snippets to your favorite IDE.\n\nAll code snippets are based on and follow the official hugo documentation.\n\nAvailable for [VSCodium](https://vscodium.com/) at [Hugo Snippets](https://open-vsx.org/extension/fivethree/vscode-hugo-snippets).\n\n## Using Snippets in VS Code\n\nType part of a snippet, press enter, and the snippet unfolds.\n\n## Trigger Markdown\n\nTo trigger the snippets in Markdown you can use `^Space` [Snippets for Markdown](https://code.visualstudio.com/docs/languages/markdown#_snippets-for-markdown).\n\n### Snippet Prefix\n\n| Prefix | Description   |\n| ------ | ------------- |\n| `h-`   | Hugo Snippets |\n\n\u003c!-- Auto Generated Below --\u003e\n\n# Table of Content\n\n- [Markdown](#markdown)\n- [Function](#function)\n- [Templates](#templates)\n- [Variables](#variables)\n\n## Markdown\n\n| Prefix            | Description                 |\n| ----------------- | --------------------------- |\n| h-figure          | Figure Shortcode            |\n| h-gist            | Gist Shortcode              |\n| h-highlight       | Highlight Shortcode         |\n| h-instagram       | Instagram Shortcode         |\n| h-shortcode       | Shortcode Template          |\n| h-shortcode-param | Shortcode Template w/ param |\n| h-ref             | Ref Shortcode               |\n| h-tweet           | Tweet Shortcode             |\n| h-vimeo           | Vimeo Shortcode             |\n| h-youtube         | Youtube Shortcode           |\n\n## Function\n\n| Prefix      | Description                                                                                          |\n| ----------- | ---------------------------------------------------------------------------------------------------- |\n| h-absURL    | `absURL` creates an absolute URL based on the configured baseURL                                     |\n| h-add       | `add`ing numbers                                                                                     |\n| h-anchorize | `anchorize` sanitizes a string the same way as Blackfriday does for markdown headers                 |\n| h-lt        | `lt` comparing numbers                                                                               |\n| h-relURL    | `relURL` prepends the relative URL according to a page’s position in the project directory structure |\n| h-title     | `title` Converts all characters in the provided string to title case                                 |\n\n## Templates\n\n| Prefix                           | Description                                                                                                 |\n| -------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| h-block                          | `block` allows you to define the outer shell of your pages’                                                 |\n| h-block-default                  | `block` may include default content                                                                         |\n| h-define                         | `define` page variable                                                                                      |\n| h-if                             | `if` conditional                                                                                            |\n| h-if-else                        | `if-else` conditional                                                                                       |\n| h-partial                        | Partial Template                                                                                            |\n| h-partial-path                   | Partial Template w/ path                                                                                    |\n| h-range-pages                    | `range`s through pages w/ default order                                                                     |\n| h-range-pages-by-weight          | `range`s through pages by weight, content with lower weight will come first                                 |\n| h-range-pages-by-date            | `range`s through pages by date, orders content according to the 'date' field in front matter                |\n| h-range-pages-by-publish-date    | `range`s through pages by publish date, orders content according to the 'publishdate' field in front matter |\n| h-range-pages-by-expiration-date | `range`s through pages by publish date, orders content according to the 'expirydate' field in front matter  |\n| h-range-pages-by-lastmod-date    | `range`s through pages by lastmod date, orders content according to the 'lastmod' field in front matter     |\n| h-range-pages-by-length          | `range`s through pages by lastmod date, the shortest content will be listed first                           |\n| h-range-pages-by-title           | `range`s through pages by lastmod date, orders according to the 'title' field set in front matter           |\n| h-range-pages-reverse            | `range`s through pages in reversed order, reversing order can be applied to any range method                |\n| h-with                           | `with` skips the block if the variable is absent, or if it evaluates to “false”                             |\n| h-with-else                      | `with-else`                                                                                                 |\n\n## Variables\n\n| Prefix              | Description                                              |\n| ------------------- | -------------------------------------------------------- |\n| h-description       | Description page variable                                |\n| h-lastmod           | Date the content was last modified                       |\n| h-params            | Params variable                                          |\n| h-publish-date      | Date on which the content was or will be published       |\n| h-reading-time      | Estimated time, in minutes, it takes to read the content |\n| h-summary           | Summary page variable                                    |\n| h-table-of-contents | TableOfContents page variable                            |\n| h-title             | Title page variable                                      |\n| h-word-count        | Number of words in the content                           |\n\n**[⬆ back to top](#table-of-content)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivethree-team%2Fvscode-hugo-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffivethree-team%2Fvscode-hugo-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivethree-team%2Fvscode-hugo-snippets/lists"}