Merge pull request #256 from libp2p/update/rmv-blog-and-more

update: remove blog and more
This commit is contained in:
Danny Salman 2022-11-27 18:52:29 -05:00 committed by GitHub
commit 7af3daf180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 23 additions and 113 deletions

View File

@ -1,5 +1,4 @@
.contributors .content,
.blog .content,
.page .content,
.error404 .content,
.docs.list .content,

View File

@ -1,7 +1,5 @@
.home .card,
.contributors.list .card,
.blog.list .card,
.blog.single .card,
.categories.list .card,
.tags.list .card {
margin-top: 2rem;
@ -11,8 +9,6 @@
.home .card:hover,
.contributors.list .card:hover,
.blog.list .card:hover,
.blog.single .card:hover,
.categories.list .card:hover,
.tags.list .card:hover {
transform: scale(1.025);
@ -26,8 +22,6 @@
.home .card-body,
.contributors.list .card-body,
.blog.list .card-body,
.blog.single .card-body,
.categories.list .card-body,
.tags.list .card-body {
padding: 0 2rem 1rem;
@ -39,15 +33,6 @@
padding: 1rem;
}
.blog-header {
text-align: center;
margin-bottom: 2rem;
}
.blog-footer {
text-align: center;
}
.related-posts {
margin-top: 4rem;
}

View File

@ -61,10 +61,6 @@ rel = "sitemap"
category = "categories"
tag = "tags"
[permalinks]
blog = "/blog/:title/"
# docs = "/docs/1.0/:sections[1:]/:title/"
[minify.tdewolff.html]
keepWhitespace = false

View File

@ -5,17 +5,12 @@
[[main]]
name = "Guides"
url = "/guides/"
url = "/guides/getting-started/go/"
weight = 20
[[main]]
name = "Blog"
url = "/blog/"
weight = 30
[[main]]
name = "Reference"
weight = 40
weight = 30
identifier = "reference"
[[main]]
@ -41,7 +36,7 @@
[[main]]
name = "Community"
weight = 50
weight = 40
identifier = "community"
[[main]]

View File

@ -34,7 +34,7 @@ schemaImageHeight = 640
schemaTwitter = "https://twitter.com/libp2p"
schemaLinkedIn = "https://www.linkedin.com/company/protocollabs/"
schemaGitHub = "https://github.com/libp2p/docs"
schemaSection = "blog"
# schemaSection = "blog"
## Sitelinks Search Box
siteLinksSearchBox = false

View File

@ -1,6 +0,0 @@
---
title: "The libp2p blog: Coming soon!"
description: "The libp2p Blog."
draft: false
images: []
---

View File

@ -1,6 +1,5 @@
---
title: "Guides"
title: "Get Started"
description: "How-to guides, tutorials, and examples related to libp2p"
draft: false
images: []
weight: 1
---

View File

@ -1,6 +1,7 @@
---
title: "Run a go-libp2p node"
weight: 1
weight: 2
description: "Learn how to run a go-libp2p node and use the ping protocol"
aliases:
- "/tutorials/go"
- "/guides"

View File

@ -1,6 +1,7 @@
---
title: "Run a js-libp2p node"
weight: 2
weight: 3
description: "Learn how to run a js-libp2p node and use the ping protocol"
aliases:
- "/tutorials/javascript"
- "/guides"

View File

@ -1,6 +1,7 @@
---
title: "Run a rust-libp2p node"
weight: 3
weight: 4
description: "Learn how to run a rust-libp2p node and use the ping protocol"
aliases:
- "/tutorials/rust"
- "/guides"

View File

@ -16,7 +16,6 @@
<article>
<h2 class="h3"><a class="stretched-link text-body" href="{{ .RelPermalink }}">{{ .Params.title }}</a></h2>
<p>{{ .Params.excerpt | safeHTML }}</p>
{{ partial "main/blog-meta.html" . -}}
</article>
</div>
</div>

View File

@ -1,59 +0,0 @@
{{ define "main" }}
<article>
<div class="row justify-content-center">
<div class="col-md-12 col-lg-10">
<div class="blog-header">
<h1>{{ .Title }}</h1>
{{ partial "main/blog-meta.html" . }}
</div>
</div>
<div class="col-md-13">
<div>
{{- .Scratch.Set "fillImage" "1270x715 Center" -}}
{{ partial "content/figure.html" . }}
</div>
</div>
<div class="col-md-12 col-lg-9">
{{ .Content }}
{{ if .Params.tags -}}
<div class="mt-4">
{{ range $index, $tag := .Params.tags -}}
<a class="btn btn-light" href="{{ "/tags/" | absURL }}{{ . | urlize }}/" role="button">{{ . }}</a>
{{ end -}}
</div>
{{ end -}}
</div>
</div>
</article>
{{ $related := .Site.RegularPages.Related . | first 3 -}}
{{ with $related -}}
<div class="related-posts">
<div class="row justify-content-center">
<div class="col">
<h2 class="section-title">Related posts</h2>
</div>
</div>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-lg-5">
{{ range . -}}
<div class="col">
<div class="card">
{{- .Scratch.Set "fillImageCard" "1270x620 Center" -}}
{{ partial "content/card-image.html" . }}
<div class="card-body">
<article>
<h2 class="h3"><a class="stretched-link text-body" href="{{ .RelPermalink }}">{{ .Params.title }}</a></h2>
<p>{{ .Params.excerpt | safeHTML }}</p>
{{ partial "main/blog-meta.html" . -}}
</article>
</div>
</div>
</div>
{{ end -}}
</div>
</div>
{{ end -}}
{{ end }}

View File

@ -3,7 +3,7 @@
<meta property="og:title" content="{{ .Title }}">
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
{{ if $.Scratch.Get "paginator" -}}
{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "blog" ) -}}
{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "concepts" ) -}}
<meta property="og:url" content="{{ .Paginator.URL | absURL }}">
{{ else -}}
<meta property="og:url" content="{{ .Permalink }}">

View File

@ -135,7 +135,7 @@
}{{ end }}]
},
{{ if and (eq .Kind "page") (or (eq .Section "blog") (eq .Section "docs") (eq .Section "tutorial") (eq .Section "showcase")) -}}
{{ if and (eq .Kind "page") (or (eq .Section "concepts") (eq .Section "guides") (eq .Section "reference")) -}}
{
"@context": "https://schema.org",
"@graph": [

View File

@ -53,7 +53,6 @@
{{- $active := or ($current.IsMenuCurrent "main" .) ($current.HasMenuCurrent "main" .) -}}
{{- $active = or $active (eq .Name $current.Title) -}}
{{- $active = or $active (and (eq .Name ($section | humanize)) (eq $current.Section $section)) -}}
{{- $active = or $active (and (eq .Name "Blog") (eq $current.Section "blog" "contributors" "categories" "tags")) -}}
{{ if .HasChildren }}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle ps-0 py-1" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">

14
package-lock.json generated
View File

@ -21,7 +21,7 @@
"clipboard": "^2.0",
"eslint": "^8.19",
"exec-bin": "^1.0.0",
"flexsearch": "^0.7.21",
"flexsearch": "^0.7.31",
"highlight.js": "^11.5",
"hugo-installer": "^3.1",
"instant.page": "^5.1",
@ -3533,9 +3533,9 @@
"dev": true
},
"node_modules/flexsearch": {
"version": "0.7.21",
"resolved": "https://registry.npmjs.org/flexsearch/-/flexsearch-0.7.21.tgz",
"integrity": "sha512-W7cHV7Hrwjid6lWmy0IhsWDFQboWSng25U3VVywpHOTJnnAZNPScog67G+cVpeX9f7yDD21ih0WDrMMT+JoaYg==",
"version": "0.7.31",
"resolved": "https://registry.npmjs.org/flexsearch/-/flexsearch-0.7.31.tgz",
"integrity": "sha512-XGozTsMPYkm+6b5QL3Z9wQcJjNYxp0CYn3U1gO7dwD6PAqU1SVWZxI9CCg3z+ml3YfqdPnrBehaBrnH2AGKbNA==",
"dev": true
},
"node_modules/formdata-polyfill": {
@ -9512,9 +9512,9 @@
"dev": true
},
"flexsearch": {
"version": "0.7.21",
"resolved": "https://registry.npmjs.org/flexsearch/-/flexsearch-0.7.21.tgz",
"integrity": "sha512-W7cHV7Hrwjid6lWmy0IhsWDFQboWSng25U3VVywpHOTJnnAZNPScog67G+cVpeX9f7yDD21ih0WDrMMT+JoaYg==",
"version": "0.7.31",
"resolved": "https://registry.npmjs.org/flexsearch/-/flexsearch-0.7.31.tgz",
"integrity": "sha512-XGozTsMPYkm+6b5QL3Z9wQcJjNYxp0CYn3U1gO7dwD6PAqU1SVWZxI9CCg3z+ml3YfqdPnrBehaBrnH2AGKbNA==",
"dev": true
},
"formdata-polyfill": {

View File

@ -49,7 +49,7 @@
"clipboard": "^2.0",
"eslint": "^8.19",
"exec-bin": "^1.0.0",
"flexsearch": "^0.7.21",
"flexsearch": "^0.7.31",
"highlight.js": "^11.5",
"hugo-installer": "^3.1",
"instant.page": "^5.1",

View File

@ -6,7 +6,7 @@ description = "Hugo theme helping you build modern documentation websites that a
homepage = "https://github.com/h-enk/doks"
demosite = "https://doks.netlify.app"
tags = ["landing page", "documentation", "blog", "minimal", "modern", "customizable", "search", "dark mode", "bootstrap"]
tags = ["landing page", "documentation", "minimal", "modern", "customizable", "search", "dark mode", "bootstrap"]
features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts", "dark mode"]
[author]