Commit 1cd18bcb authored by Sylvain Kerkour's avatar Sylvain Kerkour

start layout

parent a260a31a
Pipeline #107006684 passed with stages
in 52 seconds
......@@ -55,3 +55,4 @@ node_modules/
# Project
public/
/themes/
baseURL = "https://bloom42.gitlab.io/blog"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "ananke"
descriotion = "My description"
# theme = "vienna"
[markup.goldmark.renderer]
unsafe= true
+++
title = "About"
date = 2019-02-05T01:42:42+02:00
+++
<h1>About</h1>
---
title: "Bloom: a free and open source Google"
date: 2019-06-05T01:42:42+02:00
draft: true
tags: ["rust", "rustlang", "opensource", "google", "free software"]
---
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
+++
title = "Subscribe"
date = 2019-02-05T01:42:42+02:00
+++
<h1>Subscribe</h1>
{{ define "main" -}}
<h1>404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding it again.</p>
{{- end }}
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
<body>
{{ partial "nav.html" . }}
<!-- Page Header -->
{{ block "header" .}}
<header class="intro-header" style="background-image: url('{{ .Site.Params.header_image | relURL }}')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 ">
<div class="site-heading">
<!-- <h1>{{ .Site.Title}} </h1> -->
<!--<hr class="small">-->
<span class="subheading">{{ .Site.Params.slogan }}</span>
</div>
</div>
</div>
</div>
</header>
{{ end }}
<div class="container">
<div class="row d-flex justify-content-center">
<div class="
col-xl-8
col-lg-8
col-md-10
col-sm-12
col-xs-12">
{{ block "main" . }} {{ end }}
</div>
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>
{{ define "main" -}}
{{ if eq .Type "post"}}
{{ partial "post.html" . }}
{{ else }}
{{ partial "page.html" . }}
{{ end }}
{{ end }}
{{ define "main" }}
{{ $paginator := .Paginate (where (where .Site.Pages "Type" "post") "IsPage" true) }}
{{ partial "posts.html" . }}
{{ end }}
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="{{ "imgs/favicon.svg" | relURL }}"/>
{{ if .IsHome -}}
<title>{{ .Site.Title }}</title>
{{- else -}}
<title>{{ .Title }} - {{ .Site.Title }}</title>
{{- end }}
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
<!-- css -->
<link rel="stylesheet" href="{{ "css/bootstrap.min.css" | relURL }}">
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
<!-- js -->
<script src="{{ "js/jquery-3.4.1.slim.min.js" | relURL }}"></script>
<script src="{{ "js/popper.min.js" | relURL }}"></script>
<script src="{{ "js/bootstrap.min.js" | relURL }}"></script>
<script src="{{ "js/index.js" | relURL }}"></script>
</head>
<nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-dark" id="navbar">
<a class="navbar-brand" href="{{ "/" | relURL }}">Blog</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse align-items-center" id="navbarToggler">
<ul class="navbar-nav ml-auto align-items-center">
<li class="nav-item">
<a class="nav-link" href="{{ "about" | relURL }}">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ "subscribe" | relURL }}">Subscribe</a>
</li>
</ul>
</div>
</nav>
<div class="text-center mb-5 mt-5">
<h1>{{ .Title }}</h1>
</div>
<div class="text-justify">
{{ .Content }}
</div>
<!-- Pagination -->
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
<ul class="pager d-flex justify-content-center">
{{ if $pag.HasPrev }}
<li class="previous">
<a href="{{ $pag.Prev.URL }}">&larr; Newer Posts</a>
</li>
{{ end }}
{{ if $pag.HasNext }}
<li class="next">
<a href="{{ $pag.Next.URL }}">Older Posts &rarr;</a>
</li>
{{ end }}
</ul>
{{ end }}
<div class="text-center mb-5 mt-5">
<h1>{{ .Title }}</h1>
<p class="post-meta">
<time datetime={{ .Date.Format "2006-01-02T15:04:05Z0700" }} class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
</p>
</div>
<div class="text-justify">
{{ .Content }}
</div>
<!-- post list -->
{{ range $index, $element := $.Paginator.Pages }}
<div class="post-preview">
<a href="{{ .Permalink }}">
<h2 class="post-title">
{{ .Title }}
</h2>
{{with .Params.subtitle }}
<h3 class="post-subtitle">
{{ . }}
</h3>
{{ end }}
<div class="post-preview-content">
{{ with .Description }}
{{ . }}
{{ else }}
{{ .Summary}}
{{ end }}
</div>
</a>
<!-- <p class="post-meta">
Posted by {{ with .Params.author }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }} {{ .Date.Format "Monday, January 2, 2006" }}
<!-- Don't show "Last Modified on" if update happened on the same day.
{{ if (and (not .Lastmod.IsZero) (not (eq (dateFormat "2006-01-02" .Lastmod) (dateFormat "2006-01-02" .Date)))) }}
<br>Last Modified on {{ dateFormat "Monday, January 2, 2006" .Params.LastMod }}
{{ end }}
</p> -->
</div>
<hr>
{{ end }}
<div class="mt-3">
{{ partial "post_list.html" . }}
{{ partial "pagination.html" . }}
</div>
This source diff could not be displayed because it is too large. You can view the blob instead.
body {
margin: 0;
font-family: 'Times New Roman', serif;
font-size: 20px;
line-height: 1.5;
color: #333;
/* background-color: #f6f6ef; */
}
@media (max-width: 600px) {
body {
font-size: 18px;
}
}
h1, h2, h3, h4, h5, h6 {
font-family: arial, sans-serif;
/* font-weight: 800; */
word-break: break-word;
color: #000;
font-weight: normal;
}
.navbar a {
font-family: arial, sans-serif;;
}
.navbar-dark .navbar-nav .nav-link {
color: yellow;
}
.navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {
color: yellow;
}
img, video {
border: 1px solid #dedede;
max-width: 100%;
height: auto;
}
a:hover {
text-decoration: none;
}
.post-meta {
margin: 0;
text-align: center;
color: #8a8a8a;
font-size: 18px;
}
<?xml version="1.0" encoding="UTF-8"?>
<svg width="128px" height="128px" viewBox="0 0 128 128" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 59.1 (86144) - https://sketch.com -->
<title>Artboard</title>
<desc>Created with Sketch.</desc>
<g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="favicon" transform="translate(4.000000, 10.000000)">
<path d="M96.0477704,25.4129822 C98.0600381,15.2161099 96.9347215,7.47738178 92.1783546,4.4020666 C90.5928981,3.37696151 88.6920896,2.92838067 86.5528194,3.00924144 C75.0007621,3.44588954 56.3610695,19.2822509 41.131831,42.6306719 C23.0823631,70.3028745 16.6680709,98.0359054 26.8149926,104.596574 C31.6315899,107.710832 39.3067973,105.503193 47.9777204,99.3512539" id="Path" stroke="#988086" stroke-width="6" stroke-linecap="round"></path>
<path d="M105.863257,70 C114.440488,66.7059271 119.714658,62.1971689 119.988786,57.0189024 C120.622754,45.0431167 94.2970217,33.9559517 61.1622172,32.2368069 C58.0558301,32.0756374 55.0012571,31.9908326 52.0134043,32.000787 C23.1308259,32.0970142 0.585727927,39.9408202 0.011194303,50.793876 C-0.262392274,55.9619814 4.49367977,60.9733063 12.6466883,65.1320884" id="Path" stroke="#988086" stroke-width="6" stroke-linecap="round"></path>
<path d="M51.3193348,7.11937118 C45.4598908,2.29159083 39.9644576,-0.300954927 35.5492645,0.0278849526 C34.3737242,0.115438239 33.2865325,0.403127736 32.2762311,0.914320742 C21.4996872,6.36704646 24.9423814,34.5677944 39.9827371,63.8808096 C55.0230928,93.1938276 75.9510621,112.532509 86.7276059,107.07978 C97.0912439,101.835976 94.2940595,75.5578836 80.6873714,47.4817475" id="Path" stroke="#988086" stroke-width="6" stroke-linecap="round"></path>
<path d="M69,56 C69,60.418278 65.418278,64 61,64 C56.581722,64 53,60.418278 53,56 C53,51.581722 56.581722,48 61,48 C65.418278,48 69,51.581722 69,56 Z" id="Path" fill="#988086" fill-rule="nonzero"></path>
</g>
</g>
</svg>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment