GithubHelp home page GithubHelp logo

rhazdon / hugo-theme-hello-friend-ng Goto Github PK

View Code? Open in Web Editor NEW

This project forked from panr/hugo-theme-hello-friend

1.4K 17.0 747.0 9.75 MB

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!

Home Page: https://github.com/rhazdon/hugo-theme-hello-friend-ng/

License: Other

HTML 68.53% JavaScript 1.12% SCSS 30.35%

hugo-theme-hello-friend-ng's Introduction

Hello Friend NG

Hello Friend NG

General informations

This theme was highly inspired by the hello-friend and hermit. A lot of kudos for their great work.


Table of Contents


Features

  • Theming: dark/light mode, depending on your system preferences or the users choice
  • Great reading experience thanks to Inter font, made by Rasmus Andersson
  • Nice code highlighting thanks to PrismJS
  • An easy way to modify the theme with Hugo tooling
  • Fully responsive
  • Support for audio in posts (thanks to @talbotp)
  • Builtin (enableable/disableable) multilanguage menu
  • Support for social icons
  • Support for sharing buttons
  • Support for Commento
  • Support for Plausible (thanks to @Joffcom)
  • Support for utterances comment system

How to start

You can download the theme manually by going to https://github.com/rhazdon/hugo-theme-hello-friend-ng.git and pasting it to themes/hello-friend-ng in your root directory.

You can also clone it directly to your Hugo folder:

$ git clone https://github.com/rhazdon/hugo-theme-hello-friend-ng.git themes/hello-friend-ng

If you don't want to make any radical changes, it's the best option, because you can get new updates when they are available. To do so, include it as a git submodule:

$ git submodule add https://github.com/rhazdon/hugo-theme-hello-friend-ng.git themes/hello-friend-ng

How to configure

The theme doesn't require any advanced configuration. Just copy the following config file. To see all possible configurations, check the docs. Note: There are more options to configure. Take a look into the config.toml in exampleSite.

baseurl      = "localhost"
title        = "My Blog"
languageCode = "en-us"
theme        = "hello-friend-ng"
paginate     = 10

[params]
  dateform        = "Jan 2, 2006"
  dateformShort   = "Jan 2"
  dateformNum     = "2006-01-02"
  dateformNumTime = "2006-01-02 15:04"

  # Subtitle for home
  homeSubtitle = "A simple and beautiful blog"

  # Set disableReadOtherPosts to true in order to hide the links to other posts.
  disableReadOtherPosts = false

  # Enable sharing buttons, if you like
  enableSharingButtons = true
  
  # Show a global language switcher in the navigation bar
  enableGlobalLanguageMenu = true

  # Metadata mostly used in document's head
  description = "My new homepage or blog"
  keywords = "homepage, blog"
  images = [""]

[taxonomies]
    category = "blog"
    tag      = "tags"
    series   = "series"

[languages]
  [languages.en]
    title = "Hello Friend NG"
    keywords = ""
    copyright = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
    readOtherPosts = "Read other posts"

  [languages.en.params]
    subtitle  = "A simple theme for Hugo"

    [languages.en.params.logo]
      logoText = "hello friend ng"
      logoHomeLink = "/"
    # or
    #
    # path = "/img/your-example-logo.svg"
    # alt = "Your example logo alt text"

  # And you can even create generic menu
  [[menu.main]]
    identifier = "blog"
    name       = "Blog"
    url        = "/posts"

More things

Built-in shortcodes

Of course you are able to use all default shortcodes from hugo (https://gohugo.io/content-management/shortcodes/).

image

Properties:

  • src (required)
  • alt (optional)
  • position (optional, default: left, options: [left, center, right])
  • style

Example:

{{< image src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" >}}

Code highlighting

By default the theme is using PrismJS to color your code syntax. All you need to do is to wrap you code like this:

``` html
  // your code here
```

Favicon

Check the docs.

Audio Support

You wrote an article and recorded it? Or do you have a special music that you would like to put on a certain article? Then you can do this now without further ado.

In your article add to your front matters part:

audio: path/to/file.mp3

Social Icons:

A large variety of social icons are available and can be configured like this:

[[params.social]]
  name = "<site>"
  url = "<profile_URL>"

Take a look into this list of available icon options.

If you need another one, just open an issue or create a pull request with your wished icon. :)

Known issues

There is a bug in Hugo that sometimes causes the main page not to render correctly. The reason is an empty taxonomy part. Related issue tickets: !14 !59.

Either you comment it out completely or you write the following in

[taxonomies]
  tag      = "tags"
  category = "categories"

How to edit the theme

Just edit it. You don't need any node stuff. ;)

Sponsoring

If you like my work and if you think this project is worth to support it, just
Buy Me A Coffee

Licence

Copyright © 2019-2021 Djordje Atlialp

The theme is released under the MIT License. Check the original theme license for additional licensing information.

hugo-theme-hello-friend-ng's People

Contributors

andrealmeid avatar ay0o avatar chat-mots avatar dukebarman avatar duncanma avatar eekotenok1 avatar hpj1992 avatar joffcom avatar jpyamamoto avatar kdrag0n avatar klaidliadon avatar martinord avatar maymeow avatar pablods90 avatar panr avatar pranayadmn avatar reijnn avatar rhazdon avatar sblzland avatar scosti avatar signal-9 avatar softcat avatar stdevel avatar suksit avatar talbotp avatar tanxpyox avatar thegroundzero avatar trib0r3 avatar undergroundwires avatar vincenttam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hugo-theme-hello-friend-ng's Issues

Options to customize home/index page

Thanks the theme looks incredibly cool!

Could you please advise simple ways to customize home page with background images, some more content, etc?

Any doco could help, sorry for being a newbie with Hugo and starting with this theme.

Can't get posts to show

Hey, I'm new to hugo and love your theme but i've tried to use the exampleSite configuration and can't seem to get posts to show. I have hugo version = Hugo Static Site Generator v0.57.2/extended windows/amd64

RSS link needs an update

WARN 2019/05/19 15:48:27 Page's .RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like:
    {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}.

social icon: "codechef"

Hi everyone,
Does anyone know how to add social icons?
I would like to use Codechef icon for Competitive Programming profile, thanks in advance

Highlighting specific lines doesn't work (for me :))

When I do:

{{<highlight kotlin "linenos=table,hl_lines=5,linenostart=1" >}}
package patterns.state

class CoffeeMachine {
    var state: CoffeeMachineState
    val MAX_BEANS_QUANTITY = 100
    val MAX_WATER_QUANTITY = 100

it gets rendered as kotlin, but lines are not highlighted.
Thanks for great theme!

Theme selector only working on first load

Theme selector works until I refresh then I get the following error:

bundle.min.4c3fb12a087ceed4a52cb5d57068a9795c7069617a01ca70f788052ad66e1791779e6c72686e1dc0ca13dc03b0203204b6566bb0dd1ee80de2b7ff4d8fe53db2.js:formatted:6622 Uncaught TypeError: Cannot read property 'setAttribute' of null
    at bundle.min.4c3fb12a087ceed4a52cb5d57068a9795c7069617a01ca70f788052ad66e1791779e6c72686e1dc0ca13dc03b0203204b6566bb0dd1ee80de2b7ff4d8fe53db2.js:formatted:6622

Issue apears to be in the following code.

const getTheme = window.localStorage && window.localStorage.getItem("theme");
const themeToggle = document.querySelector(".theme-toggle");
const isDark = getTheme === "dark";
var metaThemeColor = document.querySelector("meta[name=theme-color]");
if (getTheme !== null) {
    document.body.classList.toggle("dark-theme", isDark);
    isDark ? metaThemeColor.setAttribute("content", "#252627") : metaThemeColor.setAttribute("content", "#fafafa");
}

hugo version 0.55.0

when i run this template in hugo 0.55.5 , it comes error like this:
error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version

when i change the hugo version to 0.55.0, this error is still have.

Unable to disable git info.

Even I after I set the following in my config.toml file -
enableGitInfo = false, I was unable to hide the commit info from the bottom of my posts, please help!

Same symptoms as #16

I had the same issue as #16, the suggested fix didn't work, then I pulled in the latest of the theme to reflect #18. I am still seeing the same issue.

Css not working when deployed using Netlify

Description

The build succeeds now but the site look unstyled: https://pablocrivella.netlify.com

# netlify.toml

[build]
publish = "public"
command = "hugo --gc --minify"

[context.production.environment]
HUGO_VERSION = "0.55.1"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

[context.split1]
command = "hugo --gc --minify --enableGitInfo"

[context.split1.environment]
HUGO_VERSION = "0.55.1"
HUGO_ENV = "production"

[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.55.1"

[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
HUGO_VERSION = "0.55.1"

[context.next.environment]
HUGO_ENABLEGITINFO = "true"

Error when building a fresh project on Netlify

As explained in this issue, there are currently issues when trying to deploy to Netlify a fresh Hugo project that uses this theme.
This is the test repo I set up for this issue: https://github.com/neslinesli93/hugo-theme-test.
I've set the build image options appropriately on Netlify, as explained here

Thanks for the help!

12:12:11 PM: Build ready to start
12:12:13 PM: build-image version: 324ec043422499a87b63cac1f1dabeefe6dca19d
12:12:13 PM: build-image tag: v3.0.2
12:12:13 PM: buildbot version: ef2e26260c41679f4cdeaebbf93370345c9fecf7
12:12:13 PM: Fetching cached dependencies
12:12:13 PM: Failed to fetch cache, continuing with build
12:12:13 PM: Starting to prepare the repo for build
12:12:13 PM: No cached dependencies found. Cloning fresh repo
12:12:13 PM: git clone https://github.com/neslinesli93/hugo-theme-test
12:12:14 PM: Preparing Git Reference refs/heads/master
12:12:15 PM: Found netlify.toml. Overriding site configuration
12:12:15 PM: Starting build script
12:12:15 PM: Installing dependencies
12:12:17 PM: v10.15.3 is already installed.
12:12:18 PM: Now using node v10.15.3 (npm v6.4.1)
12:12:18 PM: Attempting ruby version 2.6.2, read from environment
12:12:19 PM: Using ruby version 2.6.2
12:12:20 PM: Using PHP version 5.6
12:12:20 PM: Installing Hugo 0.54.0
12:12:21 PM: Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
12:12:21 PM: Started restoring cached go cache
12:12:21 PM: Finished restoring cached go cache
12:12:21 PM: unset GOOS;
12:12:21 PM: unset GOARCH;
12:12:21 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
12:12:21 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
12:12:21 PM: go version >&2;
12:12:21 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
12:12:21 PM: go version go1.12 linux/amd64
12:12:21 PM: Installing missing commands
12:12:21 PM: Verify run directory
12:12:21 PM: Executing user command: hugo --gc --minify
12:12:21 PM: Building sites …
12:12:22 PM: Total in 48 ms
12:12:22 PM: Error: failed to prune cache "assets": remove /opt/build/repo/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.content: no such file or directory
12:12:22 PM: Caching artifacts
12:12:22 PM: Started saving pip cache
12:12:22 PM: Finished saving pip cache
12:12:22 PM: Started saving emacs cask dependencies
12:12:22 PM: Finished saving emacs cask dependencies
12:12:22 PM: Started saving maven dependencies
12:12:22 PM: Finished saving maven dependencies
12:12:22 PM: Started saving boot dependencies
12:12:22 PM: Finished saving boot dependencies
12:12:22 PM: Started saving go dependencies
12:12:22 PM: Finished saving go dependencies
12:12:24 PM: Cached node version v10.15.3
12:12:24 PM: Error running command: Build script returned non-zero exit code: 255
12:12:24 PM: Failing build: Failed to build site
12:12:24 PM: failed during stage 'building site': Build script returned non-zero exit code: 255
12:12:24 PM: Finished processing build request in 11.169585084s
12:12:24 PM: Shutting down logging, 0 messages pending

Favicon not showing?

I added my favicons as instructed in the README, yet they don't seem to appear nor locally or after a deploy.
Screen Shot 2019-05-22 at 11 22 52 AM

Switch Dark/Light Error

when Get new Theme, Click Dark/Light swtich is error, chrome console show:bundle.min.9e52e68b082cf2a30a7fead88260edb8818fbd7f7831e39674917d4539ec75df41ba88eaddfbd916594ab4fb2a31913b46cf2d6094cf80381edb8c632512a8ca.js:1 Uncaught TypeError: Cannot read property 'setAttribute' of null
at bundle.min.9e52e68b082cf2a30a7fead88260edb8818fbd7f7831e39674917d4539ec75df41ba88eaddfbd916594ab4fb2a31913b46cf2d6094cf80381edb8c632512a8ca.js:1
(anonymous) @ bundle.min.9e52e68b082cf2a30a7fead88260edb8818fbd7f7831e39674917d4539ec75df41ba88eaddfbd916594ab4fb2a31913b46cf2d6094cf80381edb8c632512a8ca.js:1

The HomePage Title is missing

image

How i can repair this ? When i'm build in local is fine, but when i deploy on forestry,io the site build without HomePage Title in the center without social media too

Help needed: code blocks are centered when using asciidoc

When I use this wonderful theme with asciidoc documents, my code blocks are centered instead of being aligned to the left. Could you help me troubleshoot the issue?

I have tested with a different theme and it works there, so I am assuming there is some incompatibility found in this specific theme.

Here is an example of the issue:
asciidoc_layout

Index.html not compiling properly

When I run hugo to compile the site for use the Index.html file does not compile properly.

This section:

<main aria-role="main">
        <div>
            <h1><a href="/posts"> {{ .Site.Title }} </a></h1>

            {{- with .Site.Params.homeSubtitle }}
                <p>{{.}}</p>
            {{- end }}

            {{- with .Site.Params.social }}
                <div>
                    {{ partial "social-icons.html" . }}
                </div>
            {{- end }}
        </div>
    </main>

Turns into:

<main class="posts">
      <h1></h1>
  </main>

标题不显示

There is no problem with not displaying the title local view in the middle of my github deployed blog

"social icon" - docker hub

Hello,
Does anyone know how to add social icons for use?
I would like to use Docker icon for Docker hub profile, thanks in advance

MIT License Violation

You state your theme was heavily inspired, but that actually doesn't satisfy the terms of the MIT License, which requires you to add the copyright notice from the original theme author(s):

https://github.com/panr/hugo-theme-hello-friend/blob/master/LICENSE.md

If you combined two works with different licenses, you will need to satisfy both assuming they're compatible.

Sorry you weren't informed when you submitted your theme to Hugo. They don't seem to pay much attention to intellectual property laws.

You may find this a valuable read: https://writing.kemitchell.com/2016/09/21/MIT-License-Line-by-Line.html

Best of luck.

Error when building a new project on a ubuntu 16/04

Hello.
I have the official hugo package in apt:
hugo version
Hugo Static Site Generator v0.40.1 linux/amd64 BuildDate: 2018-04-25T17:16:11Z
After creating a new hugo site following the official guide I run hugo server -t hello-friend-ng as stated in the themes tutorial and I get the following error:

Building sites … ERROR 2019/04/03 13:38:47 Failed to add template "theme/partials/head.html" in path "/home/mark/Work/MARKOSBLOG/markos-weblog/themes/hello-friend-ng/layouts/partials/head.html": template: theme/partials/head.html:26: function "resources" not defined ERROR 2019/04/03 13:38:47 Failed to add template "theme/partials/javascript.html" in path "/home/mark/Work/MARKOSBLOG/markos-weblog/themes/hello-friend-ng/layouts/partials/javascript.html": template: theme/partials/javascript.html:1: function "resources" not defined ERROR 2019/04/03 13:38:47 theme/partials/head.html : template: theme/partials/head.html:26: function "resources" not defined ERROR 2019/04/03 13:38:47 theme/partials/javascript.html : template: theme/partials/javascript.html:1: function "resources" not defined ERROR 2019/04/03 13:38:47 Error while rendering "taxonomyTerm" in "": template: /home/mark/Work/MARKOSBLOG/markos-weblog/themes/hello-friend-ng/layouts/_default/list.html:4:11: executing "/home/mark/Work/MARKOSBLOG/markos-weblog/themes/hello-friend-ng/layouts/_default/list.html" at <partial "head.html" ...>: error calling partial: template: "theme/partials/head.html" is an incomplete or empty template ERROR 2019/04/03 13:38:47 Error while rendering "home" in "": template: /home/mark/Work/MARKOSBLOG/markos-weblog/themes/hello-friend-ng/layouts/index.html:4:11: executing "/home/mark/Work/MARKOSBLOG/markos-weblog/themes/hello-friend-ng/layouts/index.html" at <partial "head.html" ...>: error calling partial: template: "theme/partials/head.html" is an incomplete or empty template ERROR 2019/04/03 13:38:47 Error while rendering "404" in "": template: /home/mark/Work/MARKOSBLOG/markos-weblog/themes/hello-friend-ng/layouts/404.html:4:11: executing "/home/mark/Work/MARKOSBLOG/markos-weblog/themes/hello-friend-ng/layouts/404.html" at <partial "head.html" ...>: error calling partial: template: "theme/partials/head.html" is an incomplete or empty template Total in 30 ms Error: Error building site: logged 4 error(s)

I tested with the ananke theme but there were no errors, so I assume this would be related to hello-friend-ng.

Added Mastodon icon

Hello,

I tried to create a pull request but it kept doing it on the original one and not your fork. I missed soething somewhere probably 🤷‍♂️

I added a mastodo icon. Here what I've added to the svg.html :

{{- else if (eq .name "mastodon") -}}

Theme change button not working and menu button appeared

Hi!

I'm getting this thing where running the page locally gives no problems but after pushing it to github (I'm using github pages btw) the theme change button stops working and a new button appears with the menu icon but does nothing.

If it's of any help this is the repo where I'm hosting the page and the webpage itself where it's hosted.

IsHome sometimes fails to recognise the home page, and the page title is not rendered

I am using the theme for the page indicated below. The front page is often rendered with the header and foot only. Somehow the variable .IsHome is not consistently updated.

In some opportunities, I realize I had removed an empty line in the config file and that triggers the error. However, sometimes I only add a new post without touching the config file, and the error is also triggered. I have not been able to pin point the source of the error.

https://cdstc.gitlab.io/task-force-on-action-and-perception/

Looking for more documentation

Just want to start off with saying that I love this theme! I was starting to leverage it a bit more and came across the social params and thought about what else I don't know about. Should I be looking at the themes it was forked from or is there another area for documentation? This is my first try with hugo and so far it's been awesome.

Hide Footer

Hi, I really want to have a very clean view of my page, therefore I want to hide the complete footer. Am I allow to do that? or I have to hack some code?

Best,

Multilanguage support

Hello, friend! You made a beautiful theme! I want to use it, but I met several problems in my way.

  1. I would like to have two languages: English and Russian, but there is no russian flag in the interface, could add it? Or maybe there is a way to configure the theme to use language names instead of pictures?
  2. The second problem may not be referenced with your theme, but could not configure hugo to show the site in another default language, russian. I have read the manual https://gohugo.io/content-management/multilingual/#multilingual-themes-support, but this doesn't work for me. Could you show me an example of your theme with multilanguage support?

Hugo version is 0.57.2 and the config in .toml:

baseurl = "/"
languageCode = "en-us"
theme = "hello-friend-ng"

[params]
  dateform        = "Jan 2, 2006"
  dateformShort   = "Jan 2"
  dateformNum     = "2006-01-02"
  dateformNumTime = "2006-01-02 15:04 -0700"

  keywords = "key, words"
  images = [""]

  defaultContentLanguage = "ru"
  contentTypeName = "posts"

[languages]
  [languages.ru]
    weight = 1
    languageName = "Русский"
    title = "Блог"
    subtitle = ""
    keywords = ""
    copyright = ""
    menuMore = "Показать ещё"
    readMore = "Читать полностью"
    readOtherPosts = "Читать другие статейки"

    [languages.ru.params.logo]
      logoText = "logo text"

    [languages.ru.menu]
      [[languages.ru.menu.main]]
        identifier = "about"
        name = "О блоге"
        url = "/about"
      [[languages.ru.menu.main]]
        identifier = "showcase"
        name = "Лента"
        url = "/posts"

  [languages.en]
    weight = 0
    languageName = "English"
    title = "my blog"
    subtitle = ""
    keywords = ""
    copyright = ""
    menuMore = "Show more"
    readMore = "Read more"
    readOtherPosts = "Read other posts"

    [languages.en.params.logo]
      logoText = "logo"
      logoHomeLink = "/"

    [languages.en.menu]
      [[languages.en.menu.main]]
        identifier = "about"
        name = "About"
        url = "/about"
      [[languages.en.menu.main]]
        identifier = "showcase"
        name = "Posts"
        url = "/posts"

Plural / Singular handle for static menu names

Hi @rhazdon ,
Great template you have here.
I would like a bit of help concerning menu names.
Let's say i choose the following menu names :
image
What i expect is to have the same names in the pages content, the thing is either gohugo or the template adds a "s" or "es" for plural.
image

I can't find in the config.toml where i should edit this option.
I'm pretty much facing the same issue unless i use a name already in plural form.

Any help ?
Thanks

Unable to set home url directly to posts

Hi.

I'd like to configure the theme following: when somebody enters my website I'd like to display posts and not main page and the user has to click manually to posts.

How can I do it?

Dont render <h1> at index.html

Building sites … WARN 2019/04/10 10:38:16 Page's .RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like:
{{ with .OutputFormats.Get "RSS" }}{{ . RelPermalink }}{{ end }}.

How to get the subtitle on the landing page?

Hello,
and thank you for your fantastic work, first of all. I love this theme 🗡️

I would like to add a subtitle like in your example picture, where it says "
Djordje Atlialp
Computer Scientist
"
Where do I add the "Computer Scientist" part? I changed the subtitle in my config.toml but this does not change it.
Sorry for this stupid question but I am very new to hugo and I simply can't figure it out. Thank you very much!

Social icons

Hello,
Does anyone know how to add social icons for use?
I would like to use Kaggle icon.

For now, I think codepen, facebook, gitbook, github, gitlab, instagram, linkedin, slack, twitter, youtube, email, telegram, and stackoverflow work. Is that other social icons that work?

GitHub Alert: tar vulnerability

I am using the hello-friend-ng Hugo theme for a personal site and just got the following Alert from Github:


1 tar vulnerability found in …/hugo-theme-hello-friend-ng/package-lock.json 11 minutes ago
Remediation
Upgrade tar to version 4.4.2 or later. For example:

"dependencies": {
  "tar": ">=4.4.2"
}

or…

"devDependencies": {
  "tar": ">=4.4.2"
}

Always verify the validity and compatibility of suggestions with your codebase.

Details
CVE-2018-20834 More information
high severity
Vulnerable versions: < 4.4.2
Patched version: 4.4.2
A vulnerability was found in node-tar before version 4.4.2. An Arbitrary File Overwrite issue exists when extracting a tarball containing a hardlink to a file that already exists on the system, in conjunction with a later plain file with the same name as the hardlink. This plain file content replaces the existing file content.


Is this a system wide issue for this Hugo theme? Any advice on how to solve the situation? I have located the file in question themes/hugo-theme-hello-friend-ng/package-lock.json but am unsure if I can replace the whole tar dependency without breaking the theme:

    "tar": {
      "version": "2.2.1",
      "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz",
      "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=",
      "dev": true,
      "requires": {
        "block-stream": "*",
        "fstream": "^1.0.2",
        "inherits": "2"
      }

Way to justify posts

I was wondering how to justify the text of the posts. Shouldn't it be justified by default? In my opinion, it should already be justified, it looks better. Any help?

Every time I play something in the styles I destroy the page.

implement font-display

Hi,
it would be nice to use font-display for the fonts. This would speed up the website a bit.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.