Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lubang/hugo-hello-programmer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlubang <lubang@lulab.net>2016-11-22 16:41:50 +0300
committerlubang <lubang@lulab.net>2016-11-22 16:41:50 +0300
commit0ee11cc622b529ed96cf268669c7d84eeb71ba3b (patch)
tree82a97bd87400b6971e0c7f025b0ac039502de0c1
parent5440c034716f4a38a3cf379c219f2b0e1e20aa14 (diff)
Configure disqus and add path function
-rw-r--r--README.md8
-rw-r--r--exampleSite/config.toml8
-rw-r--r--layouts/partials/header.html14
3 files changed, 13 insertions, 17 deletions
diff --git a/README.md b/README.md
index add9f27..c46de53 100644
--- a/README.md
+++ b/README.md
@@ -26,17 +26,15 @@ Modify your configuration:
theme = "hello-programmer"
- # Pagination
paginate = 2
+ disqusShortname = "XXXX"
+ googleAnalytics = "UA-XXXXXXXX-X"
+
[author]
name = "your-name"
email = "your-email"
- [Params]
- disqusShortname = "XXXX"
- googleAnalytics = "UA-XXXXXXXX-X"
-
Modify your theme image:
static/images/logo.svg
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 8941ccd..d73a5d9 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -4,13 +4,11 @@ languageCode = "ko-KR"
theme = "hello-programmer"
-# Pagination
paginate = 2
+disqusShortname = "XXXX"
+googleAnalytics = "UA-XXXXXXXX-X"
+
[author]
name = "your-name"
email = "your-email"
-
-[Params]
- disqusShortname = "XXXX"
- googleAnalytics = "UA-XXXXXXXX-X" \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 74849e9..5e865d2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -10,24 +10,24 @@
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />
{{ end }}
<link rel="stylesheet" href="{{ "/css/styles.css" | absURL }}">
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
- <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
+ <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+ <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
+ <script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<div class="navbar">
<ul>
- <li><a href="/">HOME</a></li>
- <li><a href="/categories">CATEGORIES</a></li>
- <li><a href="/project">PROJECTS</a></li>
+ <li><a href="{{ "/" | absURL }}">HOME</a></li>
+ <li><a href="{{ "/categories" | absURL }}">CATEGORIES</a></li>
+ <li><a href="{{ "/project" | absURL }}">PROJECTS</a></li>
</ul>
</div>
<div class="container">
<div class="title">
<div>
- <a href="/">
+ <a href="{{ "/" | absURL }}">
<img src="{{ "/images/logo.svg" | absURL }}" />
</a>
</div>