miscellaneous improvements
This commit is contained in:
parent
65526cbf20
commit
347acbe70e
8 changed files with 22 additions and 60 deletions
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
---
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
baseurl = "http://example.org/"
|
||||
languageCode = "en-us"
|
||||
title = "Hugo Cards"
|
||||
theme = "hugo-cards"
|
||||
themesDir = "../.."
|
||||
paginate = 6
|
||||
|
||||
[params]
|
||||
builtBy = "bool"
|
||||
defaultImage = "gopher.jpg"
|
||||
|
||||
facebook = ""
|
||||
quora = ""
|
||||
twitter = "http://twitter.com/bul_ikana"
|
||||
github = "http://github.com/bul-ikana"
|
||||
email = ""
|
||||
|
||||
fbLikeBox = ""
|
||||
fbAppId = ""
|
||||
fbPageUrl = ""
|
||||
fbPageTitle = ""
|
||||
|
||||
analytics = ""
|
||||
disqus = ""
|
||||
|
||||
[params.copyright]
|
||||
name = "bool"
|
||||
link = "https://bool.netlify.com"
|
||||
|
|
@ -1,40 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ if .Site.Params.favicon }}
|
||||
{{ if .Site.Params.favicon -}}
|
||||
<link rel="icon" href="{{ .Site.BaseURL }}img/{{ .Site.Params.favicon }}">
|
||||
{{ end }}
|
||||
|
||||
<title>{{ .Title}}{{if .IsPage}} - {{ .Site.Title }}{{ end }}</title>
|
||||
|
||||
{{ $main := resources.Get "sass/main.scss" | toCSS | minify }}
|
||||
{{- end }}
|
||||
{{ $title := or (i18n .Title) .Title -}}
|
||||
<title>{{ $title }}{{ if ne $title .Site.Title }} - {{ .Site.Title }}{{ end }}</title>
|
||||
{{ hugo.Generator }}
|
||||
{{ $main := resources.Get "sass/main.scss" | toCSS | minify -}}
|
||||
<link rel="stylesheet" href="{{ $main.Permalink }}">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
|
||||
{{ block "config" . }} {{ end }}
|
||||
|
||||
{{ block "config" . }}{{ end }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<div class="container">
|
||||
<div class="wrapper">
|
||||
{{ block "main" . }} {{ end }}
|
||||
</div>
|
||||
{{ partial "header.html" . }}
|
||||
<div class="container">
|
||||
<div class="wrapper">
|
||||
{{ block "main" . }} {{ end }}
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>-->
|
||||
<script src="{{ .Site.BaseURL }}js/jquery.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
|
||||
{{ block "appjs" . }} {{ end }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
|
||||
<div class="row">
|
||||
{{ $section := or .Section "posts" }}
|
||||
{{ $section := or .Section .Site.Params.homeSection "posts" }}
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Section" $section) }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ partial "card.html" . }}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<header class="post-header card-header">
|
||||
<h2 class="post-title" itemprop="name headline">{{ .Title }}</h2>
|
||||
{{ if .Date -}}
|
||||
<p class="post-meta">
|
||||
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'
|
||||
itemprop="datePublished">{{ .Date.Format (i18n "dateFormat") }}</time>
|
||||
|
@ -13,8 +14,9 @@
|
|||
<span itemprop="author" itemscope
|
||||
itemtype="http://schema.org/Person">
|
||||
<span itemprop="name">{{ . }}</span></span>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
</header>
|
||||
|
||||
<div class="post-content card-body" itemprop="articleBody">
|
||||
|
|
|
@ -16,8 +16,10 @@
|
|||
|
||||
<div class="card-body">
|
||||
<span class="card-title h4">{{ .Title | truncate 25 }}</span>
|
||||
{{ if .Date -}}
|
||||
<span class="post-meta pull-right">
|
||||
<small>{{ .Date.Format (i18n "dateFormat") }}</small></span>
|
||||
{{- end }}
|
||||
<p class="card-text">{{ .Summary | plainify | truncate 100 }}</p>
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -42,7 +42,9 @@
|
|||
<li>
|
||||
<a href="{{ .Permalink }}"
|
||||
class="text-decoration-none">{{ .Title }}</a>
|
||||
{{ if .Date -}}
|
||||
<small> {{ .Date.Format (i18n "dateFormat") }}</small>
|
||||
{{- end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="card mt-3">
|
||||
<div class="card-body bg-light">
|
||||
<h2 class="card-text"> {{ .Title }}</h2>
|
||||
<h2 class="card-text"> {{i18n .Title }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue