{"id":13551633,"url":"https://github.com/panr/hugo-theme-hello-friend","last_synced_at":"2025-10-01T07:30:25.918Z","repository":{"id":33262345,"uuid":"141738551","full_name":"panr/hugo-theme-hello-friend","owner":"panr","description":"Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!","archived":true,"fork":false,"pushed_at":"2023-06-10T16:05:56.000Z","size":10779,"stargazers_count":1062,"open_issues_count":30,"forks_count":1232,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-09-28T09:22:06.902Z","etag":null,"topics":["blog","hugo","hugo-theme","markdown","nodejs","personal-site","postcss","responsive","webpack"],"latest_commit_sha":null,"homepage":"https://github.com/panr/hugo-theme-hello-friend/","language":"SCSS","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/panr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-07-20T17:13:14.000Z","updated_at":"2024-09-26T00:07:46.000Z","dependencies_parsed_at":"2024-01-08T07:58:07.699Z","dependency_job_id":"5b20fe8e-5c76-402e-99a5-4db05e8cd858","html_url":"https://github.com/panr/hugo-theme-hello-friend","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panr%2Fhugo-theme-hello-friend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panr%2Fhugo-theme-hello-friend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panr%2Fhugo-theme-hello-friend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panr%2Fhugo-theme-hello-friend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panr","download_url":"https://codeload.github.com/panr/hugo-theme-hello-friend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234837151,"owners_count":18894548,"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":["blog","hugo","hugo-theme","markdown","nodejs","personal-site","postcss","responsive","webpack"],"created_at":"2024-08-01T12:01:51.501Z","updated_at":"2025-10-01T07:30:25.476Z","avatar_url":"https://github.com/panr.png","language":"SCSS","funding_links":[],"categories":["HTML","SCSS","nodejs"],"sub_categories":[],"readme":"# Hello Friend\n\n## The theme is no longer maintained, but can still be used\n\nEven if the repository is archived you can still use the theme, fork it, download it, expand it, etc. Remember that each Hugo theme is a module that can be modified to match your needs. The theme is fully \"open\" and it depends only on the internal engines implemented in Hugo.\n\nThe theme brings many useful features thanks to [all people that contributed to it](https://github.com/panr/hugo-theme-hello-friend/graphs/contributors) (I want to thank you all!). At the time of archiving the theme has reached 14th place on the [official Hugo Themes list](https://themes.gohugo.io/). This is huge! Thanks to you!\n\n----\n\n![Hello Friend](https://github.com/panr/hugo-theme-hello-friend/blob/master/images/screenshot.png?raw=true)\n\n### DEMO - https://hugo-hello-friend.now.sh/ \u003ca id=\"demo\" /\u003e\n\n---\n\n- [Hello Friend](#hello-friend)\n  - [DEMO - https://hugo-hello-friend.now.sh/](#demo)\n  - [Features](#features)\n      - [Built-in shortcodes](#built-in-shortcodes)\n      - [Code highlighting](#code-highlighting)\n      - [Improved RSS Feed](#improved-rss-feed)\n  - [How to start](#how-to-start)\n  - [How to run your site](#how-to-run-your-site)\n  - [How to configure](#how-to-configure)\n  - [How to add a cover image to your posts](#how-to-add-a-cover-image-to-your-posts)\n  - [How to display the Last Modified Date in your posts](#how-to-display-the-last-modified-date-in-your-posts)\n  - [How to hide \"Read more\" button](#how-to-hide-read-more-button)\n  - [Add-ons](#add-ons)\n  - [How to edit the theme](#how-to-edit)\n  - [Found a bug?](#bug)\n  - [New cool idea or feature](#feature)\n  - [`Hello Friend` theme user?](#hello-friend-theme-user)\n  - [License](#license)\n\n## Features\n\n- **dark/light mode**, depending on your preferences (the theme of your operating system is default, but you can change it)\n- great reading experience thanks to [**Inter font**](https://rsms.me/inter/), made by [Rasmus Andersson](https://rsms.me/about/)\n- nice code highlighting thanks to [**PrismJS**](https://prismjs.com)\n- fully responsive\n\n#### Built-in shortcodes\n\n- **`image`** (prop required: **`src`**; props optional: **`alt`**, **`position`** (**left** is default | center | right), **`style`**)\n  - eg: `{{\u003c image src=\"/img/hello.png\" alt=\"Hello Friend\" position=\"center\" style=\"border-radius: 8px;\" \u003e}}`\n- **`figure`** (same as `image`, plus few optional props: **`caption`**, **`captionPosition`** (left | **center** is default | right), **`captionStyle`**\n  - eg: `{{\u003c figure src=\"/img/hello.png\" alt=\"Hello Friend\" position=\"center\" style=\"border-radius: 8px;\" caption=\"Hello Friend!\" captionPosition=\"right\" captionStyle=\"color: red;\" \u003e}}`\n- **`imgproc`** Hugo shortcode for image processing, plus additional **`position`** param [ left | center | right ] (optional).\n  - eg: `{{\u003c imgproc \"img/hello.png\" Resize \"250x\" center /\u003e}}`\n  - More detailed info on processing commands at [https://gohugo.io/content-management/image-processing/](https://gohugo.io/content-management/image-processing/)\n- **`code`** (prop required: **`language`**; props optional: **`title`**, **`id`**, **`expand`** (default \"△\"), **`collapse`** (default \"▽\"), **`isCollapsed`**)\n  - eg:\n  ```go\n  {{\u003c code language=\"css\" title=\"Really cool snippet\" id=\"1\" expand=\"Show\" collapse=\"Hide\" isCollapsed=\"true\" \u003e}}\n  pre {\n    background: #1a1a1d;\n    padding: 20px;\n    border-radius: 8px;\n    font-size: 1rem;\n    overflow: auto;\n\n    @media ($phone) {\n      white-space: pre-wrap;\n      word-wrap: break-word;\n    }\n\n    code {\n      background: none !important;\n      color: #ccc;\n      padding: 0;\n      font-size: inherit;\n    }\n  }\n  {{\u003c /code \u003e}}\n  ```\n\n#### Code highlighting\n\nBy default the theme is using PrismJS to color your code syntax. All you need to do is to wrap you code like this:\n\n\u003cpre\u003e\n```html\n  // your code here\n```\n\u003c/pre\u003e\n\n**Supported languages**: bash/shell, css, clike, javascript, apacheconf, actionscript, applescript, c, csharp, cpp, coffeescript, ruby, csp, css-extras, diff, django, docker, elixir, elm, markup-templating, erlang, fsharp, flow, git, go, graphql, less, handlebars, haskell, http, java, json, kotlin, latex, markdown, makefile, objectivec, ocaml, perl, php, php-extras, r, sql, processing, scss, python, jsx, typescript, toml, reason, textile, rust, sass, stylus, scheme, pug, swift, yaml, haml, twig, tsx, vim, visual-basic, wasm.\n\n#### Improved RSS Feed\n\nSome enhancements have been made to Hugo's [internal RSS](https://github.com/gohugoio/hugo/blob/25a6b33693992e8c6d9c35bc1e781ce3e2bca4be/tpl/tplimpl/embedded/templates/_default/rss.xml) generation code.\n\n**A page's cover image now appears at the top of its feed display**. This image is set manually using [the cover params](#how-to-add-a-cover-image-to-your-posts). If unset, the RSS generator searches for the first image file in the page bundle whose name includes 'featured', 'cover', or 'thumbnail'.\n\n**You can optionally display the full page content in your RSS feed** (default is Description or Summary data from Front Matter). Set `rssFullText = true` in your `config.toml` file to enable this option.\n\n**You can choose a site image to be displayed when searching for your RSS feed.** Set `rssImage = \"image/url/here\"` in your `config.toml` file to enable this option.\n\n## How to start\n\nYou can download the theme manually by going to [https://github.com/panr/hugo-theme-hello-friend.git](https://github.com/panr/hugo-theme-hello-friend.git) and pasting it to `themes/hello-friend` in your root directory.\n\nYou can also choose **one of the 3 possibilities** to install the theme:\n\n1. as Hugo Module\n2. as a standalone local directory\n3. as a git submodule\n\n⚠️ **The theme needs at least Hugo **Extended** v0.90.x**.\n\n### Install theme as Hugo Module\n\n```bash\n# If this is the first time you're using Hugo Modules\n# in your project. You have to initiate your own module before\n# you fetch the theme module.\n#\n# hugo mod init [your website/module name]\nhugo mod get github.com/panr/hugo-theme-hello-friend\n```\n\nand in your config file add:\n\n```toml\n[module]\n  # this is needed when you fetch the theme as a submodule to your repo.\n  # replacements = \"github.com/panr/hugo-theme-hello-friend -\u003e themes/hello-friend\"\n[[module.imports]]\n  path = 'github.com/panr/hugo-theme-hello-friend'\n```\n\nKeep in mind that the theme by default won't show up in the `themes` directory. This means that you are using the theme as it was on the repository at the moment you fetched it. Your local `go.sum` file keeps all the references. Read more about Hugo Modules in the [official documentation](https://gohugo.io/hugo-modules/).\n\n⚠️ If you encounter any issues with:\n\n```bash\nError: module \"hello-friend\" not found; either add it as a Hugo Module or store it in \"[...your custom path]/themes\".: module does not exist\n```\n\nthen please try to remove `theme = \"hello-friend\"` from your config file.\n\n### Install theme locally\n\n```bash\ngit clone https://github.com/panr/hugo-theme-hello-friend.git themes/hello-friend\n```\n\nThis will clone the repository directly to the `themes/hello-friend` directory.\n\n### Install theme as a submodule\n\n```bash\ngit submodule add -f https://github.com/panr/hugo-theme-hello-friend.git themes/hello-friend\n```\n\nThis will install the repository as a sumbodule in the `themes/hello-friend` directory.\n\n## How to run your site\n\nFrom your Hugo root directory run:\n\n```\nhugo server -t hello-friend\n```\n\nand go to `localhost:1313` in your browser. From now on all the changes you make will go live, so you don't need to refresh your browser every single time.\n\n## How to configure\n\nThe theme doesn't require any advanced configuration. Just copy:\n\n```toml\nbaseurl = \"/\"\nlanguageCode = \"en-us\"\n# Add it only if you keep the theme in the `themes` directory.\n# Remove it if you use the theme as a remote Hugo Module.\ntheme = \"hello-friend\"\npaginate = 5\n\n[params]\n  # dir name of your blog content (default is `content/posts`).\n  # the list of set content will show up on your index page (baseurl).\n  contentTypeName = \"posts\"\n\n  # OS theme is default when not provided, but you can force it to \"light\" or \"dark\"\n  defaultTheme = \"dark\"\n\n  # if you set this to 0, only submenu trigger will be visible\n  showMenuItems = 2\n\n  # Show reading time in minutes for posts\n  showReadingTime = false\n\n  # Show table of contents at the top of your posts (defaults to false)\n  # Alternatively, add this param to post front matter for specific posts\n  # toc = true\n\n  # Show full page content in RSS feed items\n  #(default is Description or Summary metadata in the front matter)\n  # rssFullText = true\n\n[languages]\n  [languages.en]\n    title = \"Hello Friend\"\n    subtitle = \"A simple theme for Hugo\"\n    keywords = \"\"\n    copyright = \"\"\n    menuMore = \"Show more\"\n    writtenBy = \"Written by\"\n    readMore = \"Read more\"\n    readOtherPosts = \"Read other posts\"\n    newerPosts = \"Newer posts\"\n    olderPosts = \"Older posts\"\n    minuteReadingTime = \"min read\"\n    dateFormatSingle = \"2006-01-02\"\n    dateFormatList = \"2006-01-02\"\n    # leave empty to disable, enter display text to enable\n    # lastModDisplay = \"\"\n\n    [languages.en.params.logo]\n      logoText = \"hello friend\"\n      logoHomeLink = \"/\"\n    # or\n    #\n    # path = \"/img/your-example-logo.svg\"\n    # alt = \"Your example logo alt text\"\n\n    [languages.en.menu]\n      [[languages.en.menu.main]]\n        identifier = \"about\"\n        name = \"About\"\n        url = \"/about\"\n      [[languages.en.menu.main]]\n        identifier = \"showcase\"\n        name = \"Showcase\"\n        url = \"/showcase\"\n```\n\nto `config.toml` file in your Hugo root directory and change params fields. In case you need, here's [a YAML version](https://gist.github.com/panr/8f9b363e358aaa33f6d353c77feee959).\n\n**NOTE:** Please keep in mind that currently main menu doesn't support nesting.\n\n## How to add a cover image to your posts\n\nAdding a cover image to your post is simple and there are two options when you edit your `index.md` file in `content/posts/blog-entry-xy/index.md`:\n\n* Use `cover = \"/path/to/absolute/img.jpg\"` to link an absolute image\n  * Resulting in `https://www.yourpage.com/path/to/absolute/img.jpg`\n* Use `cover = \"img.jpg\"` and `useRelativeCover = true` to link the image relative to the blog post folder\n  * Resulting in `https://www.yourpage.com/posts/blog-entry-xy/img.jpg`\n* Use `coverAlt = \"description of image\"` to add custom alt text to the cover image (defaults to post or page title as alt text)\n* Use `coverCaption = \"Image Credit to [Barry Bluejeans](https://unsplash.com/)\"` to add a caption for the cover image.\n\n## How to display the Last Modified Date in your posts\n\nAdd `lastModDisplay = \"[your display text]\"` to `config.toml` to enable last modified date on your posts. Note - an empty string value `\"\"` does not display anything.\n\nExample: `lastModDisplay = \"Modified:\"` --\u003e \"Modified: Jan 01, 0001\"\n\n:octocat: Hugo's `enableGitInfo` option is a nice complement to this feature.\n\n## How to hide \"Read more\" button\n\nIn a post's front matter you have to add `hideReadMore` param set to `true`. This will result in that the post won't have \"Read more\" button in the list view.\n\n## Add-ons\n\n- **Archive** — Theme has built-in `archive` page for main content (see `contentTypeName` variable in config). If you need archive on your blog just copy https://github.com/panr/hugo-theme-hello-friend/blob/master/exampleSite/content/archive.md to your `content` dir. If you need multilangual archives, duplicate `content/archive.md` and add `.Lang` variable, eg: `content/archive.pl.md` (remember to change `url` in duplicated file).\n- **Comments** — for adding comments to your blog posts please take a look at `layouts/partials/comments.html` https://github.com/panr/hugo-theme-terminal/blob/master/layouts/partials/comments.html.\n- **Prepended `\u003chead\u003e`** — if you need to add something inside `\u003chead\u003e` element, and before any of the theme's `\u003cscript\u003e` and `\u003clink\u003e` tags are declared, please take a look at `layouts/partial/prepended_head.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/prepended_head.html\n- **Extended `\u003chead\u003e`** — if you need to add something inside `\u003chead\u003e` element, after all of all of the theme's `\u003cscript\u003e` and `\u003clink\u003e` tags are declared, please take a look at `layouts/partial/extended_head.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/extended_head.html\n- **Extended `\u003cfooter\u003e`** — if you need to add something before end of `\u003cbody\u003e` element, please take a look at `layouts/partial/extended_footer.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/extended_footer.html\n\n## How to edit the theme \u003ca id=\"how-to-edit\" /\u003e\n\nIf you are using as a remote Hugo Module (you don't have the theme files in the `theme/hello-friend`) and you have to override only some of the styles, you can do this easily by adding `static/style.css` in your root directory and point things you want to change.\n\nIf you have the theme files in the theme directory, then you can directly edit anything in the theme, you just have to go to `themes/hello-friend` and modify the files. No compilation step needed.\n\n## Found a bug? \u003ca id=\"bug\" /\u003e\n\nIf you spot any bugs, please use [Issue Tracker](https://github.com/panr/hugo-theme-hello-friend/issues) or create a new [Pull Request](https://github.com/panr/hugo-theme-hello-friend/pulls) to fix the issue.\n\n## New cool idea or feature? \u003ca id=\"feature\" /\u003e\n\nThe theme is in constant development since 2019 and has got many cool features that helped many of you and made the theme better. But there were also many features that I wasn't sure about because I want to keep the theme as simple as possible.\n\nSo, let's say you have an idea of how to extend the theme. That's cool and you're welcome to do that, just follow these steps:\n\n- fork the theme\n- implement the feature\n- write an instruction how to use the feature\n- give a working example of the implementation for other users\n- add info about your work to `COMMUNITY-FEATURES.md`\n- make a PR with edited `COMMUNITY-FEATURES.md`\n\nThis will help keeping the theme close to its roots, and also allow anyone who wishes to improve it and match their needs, to do whatever they want.\n\nSounds OK? Cool, let's rock! 🤘\n\n## `Hello Friend` theme user?\n\nI'd be happy to know more about you and what you are doing. If you want to share it, please make a contribution and [add your site to the list](https://github.com/panr/hugo-theme-hello-friend/blob/master/USERS.md)! 🤗\n\n## License\n\nCopyright © 2019-2022 Radosław Kozieł ([@panr](https://twitter.com/panr))\n\nThe theme is released under the MIT License. Check the [original theme license](https://github.com/panr/hugo-theme-hello-friend/blob/master/LICENSE.md) for additional licensing information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanr%2Fhugo-theme-hello-friend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanr%2Fhugo-theme-hello-friend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanr%2Fhugo-theme-hello-friend/lists"}