j_diaz
January 6, 2016, 3:35am
1
Hi
I just installed Hugo via the 2 min intro video in simple DigitalOcean box behind HAProxy and cannot get the CSS and JS files to be served to my browser. However, the blog post html file does get served.
I feel like a I missed something fairly obvious.
Here is the network image of my console
For some reason my browser is attempting to find the files in “localhost”.
Can anyone help me out with this problem?
Thanks,
Show us your template. The error shows you have two slashes after the base url, so there’s that.
j_diaz
January 6, 2016, 3:58am
3
Template used is the same as in “quickstart video”. https://github.com/SenjinDarashiva/hugo-uno
welcome.md ’s content:
+++
date = "2016-01-05T21:55:57-05:00"
title = “welcome”
+++
Welcome!
Scriptfuzz is proud to be up and runnig with hugo. This is the first post in what will be in what will be a technical articles.
See:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title> {{ .Title }} · {{ .Site.Title }} </title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}/css/uno.min.css" />
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}/css/lightGallery.css" />
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.ico">
<!-- RSS -->
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<!-- Script -->
<script src="{{ .Site.BaseURL }}/js/jquery.min.js"></script>
<script src="{{ .Site.BaseURL }}/js/main.min.js">
</script>
</head>
Try taking out the {{ .Site.BaseURL }}
s.