Skip to content
Permalink
Browse files

Move to newest hugo version

  • Loading branch information...
SchumacherFM committed Oct 22, 2019
1 parent 62f05e0 commit fe9b26f39e99e13cc03749a1e8dd39005131f726
@@ -1,12 +1,5 @@
#!/bin/bash
HUGO=./hugo_snapshot_linux_amd64

if [[ "$(uname)" == "Darwin" ]]; then
HUGO=./hugo_snapshot_darwin_amd64
fi
# Read this:
# https://blog.carlmjohnson.net/post/2017/hugo-asset-pipeline/
#
rm -Rf public
mkdir public
$HUGO server -w -v --baseUrl="http://localhost" --cacheDir="./cache" --destination="./public/"
mkdir -p cache/cyrillschumacher
hugo server -w -v --baseUrl="http://localhost" --cacheDir="/Users/kiri/Sites/hugo/cyrillschumacher/cache" --destination="./public/"
@@ -1,10 +1,6 @@
#!/bin/bash

HUGO=./hugo_snapshot_linux_amd64

if [ "$(uname)" == "Darwin" ]; then
HUGO=./hugo_snapshot_darwin_amd64
fi
HUGO=hugo

rm -Rf public
mkdir public
@@ -20,12 +16,9 @@ static/assets/highlight/highlight.pack.js \
static/wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js \
static/assets/js/myblog.js > static/assets/js/all.js

# yuicompressor --line-break 120 -o static/assets/js/all.min.js static/assets/js/all.js

$HUGO -v --baseUrl="//cyrillschumacher.com/" --cacheDir="./cache" --destination="./public/"
$HUGO -v --baseUrl="//cyrillschumacher.com/" --cacheDir="/Users/kiri/Sites/hugo/cyrillschumacher/cache" --destination="./public/"
cp -f static/piwik public/
cp static/*.* public/
cp -R static/.well-known public/
ln -s ../piwik public/piwik
./syncFolders-push.sh
#git push
@@ -20,7 +20,7 @@ <h1><i class="fa fa-folder-open"></i>Category: <span>{{ .Title }}</span></h1>
<!--<p>Weiteres ...</p>-->
<!--{{end}}-->
<!--</div>-->
{{ template "indexes/postListGroup.html" . }}
{{ template "partials/postListGroup.html" . }}
</div>
</section>
{{ partial "sidebarLeftCategories.html" . }}
@@ -27,9 +27,9 @@
<h1 class="post-title">{{ .Title }}</h1>

<p class="post-byline">
by {{ .GetParam "author" }} · {{ .Date.Format "2 January 2006" }} · {{ .WordCount }} Words ·
by {{ .Param "author" }} · {{ .Date.Format "2 January 2006" }} · {{ .WordCount }} Words ·
~{{ .ReadingTime}}min reading time |
<a href="https://github.com/SchumacherFM/blog-cs/blob/master/content/{{ .Source.File.Path }}"
<a href="https://github.com/SchumacherFM/blog-cs/blob/master/content/{{ .File.Path }}"
target="_blank">Improve on <i class="fa fa-github"></i></a>
</p>

@@ -14,7 +14,7 @@ <h1><i class="fa fa-folder-open"></i>Posts with the tag: <span>{{ .Title }}</spa
</div>
<div class="pad group">

{{ template "indexes/postListGroup.html" . }}
{{ template "partials/postListGroup.html" . }}
</div>
</section>
{{ partial "sidebarLeftCategories.html" . }}
@@ -1,7 +1,7 @@
<div class="featured">
<article class="post type-post status-publish format-standard has-post-thumbnail hentry group">
<div class="post-inner post-hover">
{{ template "indexes/postMetaGroup.html" . }}
{{ template "partials/postMetaGroup.html" . }}
</div>
<!--/.post-inner-->
</article>
@@ -10,20 +10,20 @@
<div class="main-inner group">
<section class="content">
<div class="pad group">
{{ $paginate := (.Paginate (where .Data.Pages "Section" "!=" "page")) }}
{{ if eq .Paginator.PageNumber 1 }}
{{ range first 1 .Data.Pages }}
{{ template "featured.html" . }}
{{ range first 1 .Site.RegularPages }}
{{ template "featured.html" . }}
{{end}}
{{end}}
<div class="post-list group">
{{ $paginate := (.Paginate (where .Data.Pages "Section" "!=" "page")) }}
{{ range $index,$data := $paginate.Pages }}
{{if gt $index 0}}
{{ if mod $index 2 | eq 1 }}
<div class="post-row">
{{end}}

{{ template "indexes/categoryItem.html" $data }}
{{ template "partials/categoryItem.html" $data }}

{{ if mod $index 2 | eq 0 }}
</div>
@@ -1,6 +1,6 @@
<article class="post type-post status-publish format-standard has-post-thumbnail hentry group">
<div class="post-inner post-hover">
{{ template "indexes/postMetaGroup.html" . }}
{{ template "partials/postMetaGroup.html" . }}
</div>
<!--/.post-inner-->
</article>
@@ -1,6 +1,6 @@
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"/>
{{ end }}
{{ with .OutputFormats.Get "RSS" -}}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}"/>
{{- end }}

<link rel="stylesheet" id="human-style-css" href="wp-content/themes/hueman/style.css" type="text/css" media="all"/>
<link rel="stylesheet" id="human-style-css2" href="wp-content/themes/hueman-child/style.css" type="text/css" media="all"/>
@@ -14,7 +14,7 @@
</li>
{{ end }}
<li class="menu-item menu-item-type-post_type menu-item-text">
eBusiness | Magento Go JavaScript | Cyrill at Schumacher dot fm
eCommerce | Magento | Go Programming Language | Cyrill at Schumacher dot fm
</li>
</ul>
</div>
@@ -2,7 +2,7 @@
{{ range $index,$data := .Data.Pages }}
{{ if mod $index 2 | eq 0 }}
<div class="post-row">{{end}}
{{ template "indexes/categoryItem.html" $data }}
{{ template "partials/categoryItem.html" $data }}
{{ if mod $index 2 | eq 1 }}
</div>
{{end}}
File renamed without changes.
@@ -32,7 +32,7 @@

<div class="widget widget_recent_entries sidebarLeft"><h3>Last Posts</h3>
<ul>
{{range first .Site.Params.SidebarRecentLimit .Site.Pages}}
{{range first .Site.Params.SidebarRecentLimit .Site.RegularPages}}
<li><a href="{{ lower .Permalink}}">{{.Title}}</a></li>
{{end}}
</ul>
@@ -11,7 +11,7 @@

<div class="widget widget_recent_entries sidebarLeftCategories"><h3>Last posts</h3>
<ul>
{{range first .Site.Params.SidebarRecentLimit .Site.Pages}}
{{range first .Site.Params.SidebarRecentLimit .Site.RegularPages}}
<li><a href="{{ lower .Permalink}}">{{.Title}}</a></li>
{{end}}
</ul>
@@ -1,5 +1,5 @@
<li> POSTS:
<a href="{{ .Permalink }}">{{ .Title }} {{ if .GetParam "draft"}}DRAFT{{end}}</a>
<a href="{{ .Permalink }}">{{ .Title }} {{ if .Param "draft"}}DRAFT{{end}}</a>

<div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
</li>

0 comments on commit fe9b26f

Please sign in to comment.
You can’t perform that action at this time.