Giter VIP home page Giter VIP logo

gethugothemes / liva-hugo Goto Github PK

View Code? Open in Web Editor NEW
274.0 6.0 236.0 2.05 MB

Liva is a personal blog template powered by Hugo.

Home Page: https://gethugothemes.com/products/liva/?utm_source=liva_github&utm_medium=referral&utm_campaign=github_theme_about

License: MIT License

JavaScript 11.62% HTML 57.37% SCSS 31.01%
blog-theme hugo-theme personal-blog hugo static-site-generator jamstack hugo-site hugo-blog hugo-blog-theme mit-license

liva-hugo's Introduction

Liva Hugo

Liva is a modern and fully customizable minimal blog theme that will help you create any kind of website whether that's personal, travel, news, photography, tech, food, or other niches.

license code size contributors follow on Twitter

Liva Blog template by themefisher

🔑Key Features

  • 📄 7+ Pre-Designed Pages
  • 📊 Google Analytics support
  • 🎨 CSS and JS bundle with Hugo Pipe
  • 🅱️ Bootstrap Based
  • ⚙️ Netlify settings predefined
  • ✉️ Contact form support
  • 🔍 Search by fuse.js
  • 🔄 GDPR consent enabled
  • 🚀 Google Page Speed optimized
  • 🌐 Open Graph meta tag
  • 🐦 Twitter Card meta tag

📄6+ Pre-Designed Pages

  • ℹ️ About Page
  • 📄 Post Page
  • 📝 Post Single Page
  • 🗂️ Categories Page
  • 📄 Categories Single Page
  • 📞 Contact Page

🔧Local development

# clone the repository
git clone [email protected]:gethugothemes/liva-hugo.git

# cd in the project directory
$ cd liva-hugo/exampleSite/

# Start local dev server
$ hugo server --themesDir ../..

Or Check out Full Documentation.

⚙️Deployment and hosting

Deploy to Netlify

Follow the steps.

🐞Reporting Issues

We use GitHub Issues as the official bug tracker for the liva Template. Please Search existing issues. Someone may have already reported the same problem. If your problem or idea has not been addressed yet, feel free to open a new issue.

📱Submit Your Website To Our Showcase

Are you using Liva Hugo theme? Submit it to our showcase.

Our showcase aims to demonstrate to the world what amazing websites people like you have created utilizing our Hugo themes and to show that Hugo has tremendous capabilities as a Static Site Generator.

Submit your Liva Hugo powered website.

📄License

Copyright © Designed by Themefisher & Developed by Gethugothemes

Code License: Released under the MIT license.

Image license: The images are only for demonstration purposes. They have their licenses. We don't have permission to share those images.

🙏Special Thanks

👨‍💻Hire Us

Besides developing unique, blazing-fast Hugo themes, we also provide customized services. We specialize in creating affordable, high-quality static websites based on Hugo.

If you need to customize the theme or complete website development from scratch, you can hire us. Check Our Services

💎Premium Themes By Us

Mega-Bundle-HUGO Parsa Logbook
Get 55+ Premium Hugo Themes Bundle Parsa Logbook

liva-hugo's People

Contributors

faarhadhossen avatar frank3k avatar insutanto avatar kucw avatar mehedi-sharif avatar remtaine avatar shampaakter avatar somratpro avatar ssojonn avatar tffarhad avatar tflijon avatar tfsomrat avatar tfsumon avatar victormln 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

liva-hugo's Issues

Refactor scripts in footer.html partial

The current cookie banner code has some issues such that the code formatters flag it as incorrect code. It is because it doesn't follow the correct coding guidelines.

The cookie banner script lies in layouts/partials/footer.html

The line which assigns the cookie expiry date is as:

 expires: {{ site.Params.cookies.expire_days }}

This assignment causes the code formatters to go berserk.

The correct assignment would be:

expires: Number('{{ .Site.Params.cookies.expire_days }}')

Same goes for the script in the same file where the index URL is assigned as:

var indexURL = {{ "index.json" | absURL }}

The correct way would be:

var indexURL = '{{ "index.json" | absURL }}'

Two viewport meta tags in head.html

In head.html there are two viewport meta tags. Is this on purpose or is it a copy/past mistake?

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

Error building site

Hi,

I can't deploy web site with this theme. Hugo version is 0.69. I tested with 0.68.3 and get same error.

Any suggestions?

root@srv01:~/cdn# hugo -d /home/admin/web/.../public_html/
Total in 120 ms
Error: Error building site: TOCSS: failed to transform "scss/style.scss" (text/x-scss): resource "scss/scss/style.scss_b95b077eb505d5c0aff8055eaced30ad" not found in file cache

Best regards

How to add related content?

I am trying to add related content in single.html by following this: https://gohugo.io/content-management/related/.

I am getting the following error:

ERROR 2020/07/12 02:39:28 Failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:43:11: executing "main" at <partial "related">: error calling partial: "C:\Users\hb75729\src\the-blissful-aura\layouts\partials\related.html:3:50": execute of template failed: template: partials/related.html:3:50: executing "partials/related.html" at <first (.Site.Params.relatedPostsNumber | default 5)>: error calling first: both limit and seq must be provided

Google Analytics Part removed - resulted in irreversible error

Hi there,

I worked with your theme a bit to customize it. I really like your style.
After removing the google-analytics part from the head.html the site stopped working completely and putting the code back in I couldn't resolve the problem.
Hence I started from the beginning all over again and after deleting the same part the same problem occured again. What's the matter with Google Analytics in your theme? Am I not allowed to remove it for my own use of the site without it?
Or do you maybe have any other explanation or fix for that?

Thanks in advance.

Post pages do not load- blank page

I deployed with AWS Amplify. Localhost works fine but deployed version opens blank page when clicking posts.
I checked Firefox console and got a lot of 404 messages with following
https://master.d31..3zj7ey1hm.amplifyapp.com/blog/post-1/plugins/bootstrap/bootstrap.min.css/
GET https://master.d31..3zj7ey1hm.amplifyapp.com/blog/post-1/images/featured-post/post-1.jpg/
GET https://master.d31..3zj7ey1hm.amplifyapp.com/blog/post-1/plugins/jQuery/jquery.min.js/

It seems like site loads with /blog/post-1/...

Any suggestions

Thanks,
D

Storing data from website

Hi!

Liva-hugo demonstration has some input fields. Such as a contact form or a newsletter subscription. Where would this data be stored?

Can I set my Mysql Database?

I will run it from R.

Thanks

Luis

How to control the size of images in markdown

when i try this:
<img src="../../images/post/天气可视化.jpg" width="500px" />
it doesn't work.
only to use like this(but the image displayed is too big.)
![](/images/post/天气可视化.jpg)

Uncaught ReferenceError: $ is not defined at script.min.js:1?

I am new to Hugo and was trying to use this theme while following their quick start guide.

I installed hugo-extended using choco command on windows. After that, I followed instructions on this page that is I went to the themes folder and git cloned this project.

After that, I ran hugo new posts/my-first-post.md. And then I ran hugo server -D and then I see this error

image

Also this is my config.toml if it makes any difference.

baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "liva-hugo"

Custom CSS

Hi, I'm trying to override some of the styles of the site to customise it. What's the best way to do this in the liva theme?

I've tried editing the variables in the SCSS file _variables.scss but my changes don't seem to be picked up.

Thanks

Hugo Rendering Message "panic: runtime error: invalid memory address or nil pointer dereference"

First of, yesterday "hugo server" was working for my new website that I build based on your liva template (awesome work BTW).

But I was running hugo from a download sub directory and after cleaning my download I had to get a new hugo for my WIN 10 OS.
Therefor I fetched myself a brand new hugo win 64 ext. (since the used liva template needs the extended hugo version for CSS). And also install git brand new to my PC.

And I changed taxonomy entries in my blog-posts. Since I found an issue (gohugoio/hugo#7061) around taxonomy in the Hugo Community, I thought that be worth mentioning.

Who can help reading the error messages (see below) to get my website rendering again? Many Thanks.

Executing:
“hugo server”

This is the result (I switched “.” to “(dot” so that it is not counted as a link):

Building sites … panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0xfdedb9]

goroutine 83 [running]:
github(dot)com/gohugoio/hugo/hugolib.(*shortcodeHandler).extractShortcode(0xc0000d1800, 0x1, 0x0, 0xc000723ae0, 0x1, 0x1, 0x1aea8e0)
/root/project/hugo/hugolib/shortcode.go:505 +0x889
github(dot)com/gohugoio/hugo/hugolib.(*pageState).mapContent(0xc000731bf0, 0xc00073e780, 0xc000891400, 0xc00073f940, 0x23f4880)
/root/project/hugo/hugolib/page.go:783 +0xb87
github(dot)com/gohugoio/hugo/hugolib.(*pageMap).newPageFromContentNode(0xc00005b8e0, 0xc000ad2840, 0xc00073e780, 0x0, 0x0, 0x0, 0x0)
/root/project/hugo/hugolib/content_map_page.go:164 +0x62c
github(dot)com/gohugoio/hugo/hugolib.(*pageMap).assemblePages.func1(0xc0007a8ed0, 0x2a, 0x1bb6880, 0xc000ad2840, 0xc00088bd00)
/root/project/hugo/hugolib/content_map_page.go:358 +0x157
github(dot)com/armon/go-radix.recursiveWalk(0xc000ad28a0, 0xc00088be10, 0xc07f00)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:519 +0xf7
github(dot)com/armon/go-radix.recursiveWalk(0xc000ad2870, 0xc00088be10, 0xfb7a69)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:525 +0x85
github(dot)com/armon/go-radix.recursiveWalk(0xc0009c2090, 0xc00088be10, 0x0)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:525 +0x85
github(dot)com/armon/go-radix.recursiveWalk(0xc00097d920, 0xc00088be10, 0x0)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:525 +0x85
github(dot)com/armon/go-radix.(*Tree).Walk(…)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:447
github(dot)com/gohugoio/hugo/hugolib.(*pageMap).assemblePages(0xc00005b8e0, 0x0, 0x0)
/root/project/hugo/hugolib/content_map_page.go:331 +0xf3
github(dot)com/gohugoio/hugo/hugolib.(*pageMaps).AssemblePages.func1(0xc00005b8e0, 0xc0004db2a0, 0xc00008bf00)
/root/project/hugo/hugolib/content_map_page.go:721 +0x6f
github(dot)com/gohugoio/hugo/hugolib.(*pageMaps).withMaps.func1(0xc0004db2a0, 0xc00008bf68)
/root/project/hugo/hugolib/content_map_page.go:788 +0x35
github(dot)com/gohugoio/hugo/common/para.(*errGroupRunner).Run.func1(0xc0004db298, 0x0)
/root/project/hugo/common/para/para.go:52 +0x36
golang(dot)org/x/sync/errgroup.(*Group).Go.func1(0xc0007308d0, 0xc00073e0a0)
/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x60
created by golang.org/x/sync/errgroup.(*Group).Go
/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x6d
panic: runtime error: index out of range [0] with length 0

goroutine 48 [running]:
github(dot)com/gohugoio/hugo/hugolib.(*pageState).shiftToOutputFormat(0xc000731bf0, 0x401, 0x0, 0x0, 0x0)
/root/project/hugo/hugolib/page.go:916 +0x35e
github(dot)com/gohugoio/hugo/hugolib.(*pageState).initOutputFormat(…)
/root/project/hugo/hugolib/page.go:474
github(dot)com/gohugoio/hugo/hugolib.(*Site).preparePagesForRender.func1(0xc000731bf0, 0x3209ff00)
/root/project/hugo/hugolib/hugo_sites.go:754 +0x50
github(dot)com/gohugoio/hugo/hugolib.(*pageMap).withEveryBundlePage.func1(0xc0007a8ed0, 0x2a, 0xc000ad2840, 0x2030000)
/root/project/hugo/hugolib/content_map_page.go:696 +0x3e
github(dot)com/gohugoio/hugo/hugolib.contentTrees.Walk.func1(0xc0007a8ed0, 0x2a, 0x1bb6880, 0xc000ad2840, 0x41a100)
/root/project/hugo/hugolib/content_map.go:851 +0x5b
github(dot)com/armon/go-radix.recursiveWalk(0xc000ad28a0, 0xc0007219c0, 0x0)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:519 +0xf7
github(dot)com/armon/go-radix.recursiveWalk(0xc000ad2870, 0xc0007219c0, 0xa)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:525 +0x85
github(dot)com/armon/go-radix.recursiveWalk(0xc0009c2090, 0xc0007219c0, 0x23966ce)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:525 +0x85
github(dot)com/armon/go-radix.recursiveWalk(0xc00097d920, 0xc0007219c0, 0xc8)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:525 +0x85
github(dot)com/armon/go-radix.(*Tree).Walk(…)
/go/pkg/mod/github.com/armon/[email protected]/radix.go:447
github(dot)com/gohugoio/hugo/hugolib.contentTrees.Walk(0xc0005a23a0, 0x4, 0x4, 0xc000721a00)
/root/project/hugo/hugolib/content_map.go:849 +0x6e
github(dot)com/gohugoio/hugo/hugolib.(*pageMap).withEveryBundlePage(0xc00005b8e0, 0xc000721a40)
/root/project/hugo/hugolib/content_map_page.go:694 +0x74
github(dot)com/gohugoio/hugo/hugolib.(*Site).preparePagesForRender(0xc00012ab40, 0xc0009c8701, 0x0, 0x3, 0xc000422700)
/root/project/hugo/hugolib/hugo_sites.go:753 +0x8b
github(dot)com/gohugoio/hugo/hugolib.(*HugoSites).render(0xc0005286e0, 0xc0000d12c0, 0x3132f38, 0x1)
/root/project/hugo/hugolib/hugo_sites_build.go:314 +0x1d3
github(dot)com/gohugoio/hugo/hugolib.(*HugoSites).Build.func4()
/root/project/hugo/hugolib/hugo_sites_build.go:149 +0x43
runtime/trace.WithRegion(0x24076c0, 0xc0004db080, 0x1e6a542, 0x6, 0xc000721e60)
/usr/local/go/src/runtime/trace/annotation.go:137 +0x105
github(dot)com/gohugoio/hugo/hugolib.(*HugoSites).Build(0xc0005286e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, …)
/root/project/hugo/hugolib/hugo_sites_build.go:151 +0x7bc
github(dot)com/gohugoio/hugo/commands.(*commandeer).buildSites(…)
/root/project/hugo/commands/hugo.go:703
github(dot)com/gohugoio/hugo/commands.(*commandeer).fullBuild.func3(0xc0005e6058, 0x0)
/root/project/hugo/commands/hugo.go:315 +0x9d
golang(dot)org/x/sync/errgroup.(*Group).Go.func1(0xc0004db050, 0xc00059d790)
/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x60
created by golang(dot)org/x/sync/errgroup.(*Group).Go
/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x6d

Slowness creeping up

Hello

I started using this template a few months back and the performance is slowly getting worse over time.

Would you have any leads that would be worth looking into?

The website is lesfrerotsavelo.com.

Thank you,

Impossible to set content author

I'm trying to set name of author in frontmatters but it seems that author is only fetched from site params {{ .Site.Params.Author }}

is there any way to override this in content pages?

Difficulties seeing Posts due to Date - LIVA Hugo Template

I currently working on relaunching our website for our private podcast using Hugo with you LIVA template.

my trouble is: posts are not showing up if I change the date in the front matter to to current dates. My suggestion is that somewhere in a config or list file the website thinks that 2020 dates are in the future and therefor not to be displayed.

Where do I find this config?

Thanks in Advance
Chris

code blocks turn black

The code blocks are turning black in the frontend as shown below.

The following image is for a bash code block in markdown given as:

> sudo apt-get install mysql-server
> sudo service mysql start

livo issue

Need to clarify instructions - errors on install

I tried testing this theme out but ran into a ton of issues. Part of this is due to some lack of detail on the instructions but also just general issues.

  1. Your installation instructions seem to leave out a number of important details. First, that you need to modify the Hugo config.toml to include theme="liva-hugo.
  2. There appears to be a need to add a Google maps property to the site but no detail on what is required is shared.
  3. I get a bunch of errors when the site loads and even removing the Google maps script loading didn't clear the errors. There were images that didn't load and a missing jQuery as far as I can tell. (Note: the second error below relates to #2 above as without setting this property, it tries to load the home page as a script).
(index):117 GET http://localhost:1313/images/ad.png 404 (Not Found)
(index):1 Uncaught SyntaxError: Unexpected token '<'
script.min.js:1 Uncaught ReferenceError: jQuery is not defined
    at script.min.js:1

How to add home button on nav?

Due to the code changes, the home button is missing from the top-right corner nav. How can we put it back? It's really useful for our team members to get back to home page while viewing posts. Thanks!

How to config my Homepage's Post?

We all know live-hugo have four page: Home, About, Blog, Contact. My post can show on Blog but can't show on Home. Only the liva-hugo's dafault post can show on Home. How to config can my post show on Home?

Slick settings

Hi!

  1. The slick's plugin is awful on mobile. It should be more clear and not block the slide down.
  2. Slick-dots is very thin.

Is there any chance that you will open access to the slick settings?

Post images flow out of the content

Images added to the post by below markdown flow out of the content. Ideally, the images should remain within the content similar to the cover image.

![photo](photo.jpeg)

image

Black mode

Kindly add a black theme button. Please.

How to enable several features?

Hello!

Liva is a great theme! :)

I am using this theme with a Blogdown site, if that is important for anything.

I have been able to use the theme without problem, but several features do not seem to work out of the box:

  • The search box leads to a "This site can’t be reached" error page
  • The Contact page email box does not send email
  • The Newsletter feature does not link up with anything

How can I set up these functionalities?

Thank you very much!

Error on local

Hi,

I am getting:

Error: module "bookworm-light" not found; either add it as a Hugo Module or store it in "XXXXX".: module does not exist

I am quite new to GoHugo. Does this repo mean that I can have the liva template as it is on the official page for free (just without those perks)?

The current state I arrive to is this:
Screenshot 2021-10-15 at 02 14 48

type="post" not working.

I created a new menu option in config.toml as follows

[[menu.main]]
  name = "Projects"
  URL = "projects"
  weight = 3

After this I created _index.md file hugo new projects/_index.md.

I have the following code in the file

---
title: "Projects"
date: 2020-05-13T02:37:23+05:30
draft: false
type: "post"
---

But this not work. It does not display the text in the page. But when I change to type='about it works. Am I setting the type wrong?

Search returns 404

I am running a blog with Liva and the search results page returns 404.

URL: https://visualping.io/blog/
Search result: https://visualping.io/blog/search?s=monitor

My config.toml:

######################## default configuration ####################
baseURL = "https://visualping.io/blog"
languageCode = "en-us"
title = "Visualping blog"
theme = "liva"
summaryLength = "20"
paginate = 6
disqusShortname = ""
relativeURL = "true"
DefaultContentLanguage = "en"


[outputs]
  home = ["HTML", "AMP", "RSS", "JSON"]

############################# Plugins ##############################
[params.plugins]

  # CSS Plugins
  [[params.plugins.css]]
  URL = "plugins/bootstrap/bootstrap.min.css"
  [[params.plugins.css]]
  URL = "plugins/slick/slick.css"
  [[params.plugins.css]]
  URL = "plugins/themify-icons/themify-icons.css"
  [[params.plugins.css]]
  URL = "plugins/venobox/venobox.css"

  # JS Plugins
  [[params.plugins.js]]
  URL = "plugins/jQuery/jquery.min.js"
  [[params.plugins.js]]
  URL = "plugins/bootstrap/bootstrap.min.js"
  [[params.plugins.js]]
  URL = "plugins/slick/slick.min.js"
  [[params.plugins.js]]
  URL = "plugins/venobox/venobox.min.js"
  [[params.plugins.js]]
  URL = "plugins/search/fuse.min.js"
  [[params.plugins.js]]
  URL = "plugins/search/mark.js"
  [[params.plugins.js]]
  URL = "plugins/search/search.js"


############################## navigation ###############################
[menu]

  # main menu
  [[menu.main]]
  name = "Home"
  URL = "https://visualping.io"
  weight = 1

  [[menu.main]]
  name = "Blog"
  URL = "/"
  weight = 2
...

#################### default parameters ################################
[params]
logo = "images/[email protected]"
logoDark = "images/logo-dark.png"
clock = "images/icon-clock.png"
home = "Home"
# Meta data
...

  # Preloader
  [params.preloader]
  enable = true
  preloader = "" # use .png , .svg or .gif format

  # search
  [params.search]
  enable = true



############################# social site ########################
[[params.social]]
title = "twitter"
icon = "ti-twitter-alt" # themify icon : https://themify.me/themify-icons
link = "https://twitter.com/intent/tweet?url="
...

################################ languages #############################

[languages]
  [languages.en]
    languageName = "English"
    contentDir = "content/en"
    title = "The Visualping Blog"
    weight = 1
    ...

Example search results (403 from S3 because the target file do not exist). It returns a 404 when running locally.

https://visualping.io/blog/search?s=monitor

Thank you very much for your help

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.