saadjsct / npqhugo Goto Github PK
View Code? Open in Web Editor NEWnpq-hugo is a customizable and responsive dark blog theme with integrated contact form and code syntax highlighting
License: GNU General Public License v3.0
npq-hugo is a customizable and responsive dark blog theme with integrated contact form and code syntax highlighting
License: GNU General Public License v3.0
I was experimenting with page bundles (keeping content & images together), but it was not showing any content.
I have updated the list template to this:
{{ define "main" }}
{{ if .Content }}
{{ .Content }}
{{ else }}
<div class="section">
<dev class="section-title">{{.Section}}</dev>
{{ range $index, $element := .Paginator.Pages }}
<div class="list-item">
<a class="entry-title" href="{{ .URL }}">{{ .Title }}</a>
{{$page := .}}
{{with .Description}}
<p>{{.}}</p>
{{end}}
<div class="meta">
{{with .Date}}
<i class="far fa-calendar-alt"></i> {{.Format "Jan 2 2006"}}
{{end}}
<br>
{{with .Params.tags}}
<i class="fas fa-tags"></i>
Tags: {{ delimit . ", " }}
{{end}}
</div>
</div>
{{end}}
</div>
{{ partial "pagination.html" $ }}
{{end}}
{{end}}
This allows me to organize content like this:
/blog
/2020
/04
/my-title
/_index.md
/myimage.png
Hi, this theme is so cool, but, i think, on microblog a way to pin the post on top.
Have 3 posts under contents/posts/. Example:
contents/posts
\__ foo/index.md
\__ bar/index.md
\__ baz/index.md
In one of the index.md, I have:
---
title: "bar"
pinned: true
date: 2020-08-16T17:40:35+05:30
draft: true
---
This does not make the bar post float to the top. Isn't that the expected behavior?
Hi @saadnpq, thanks for making this theme, I've just looking at getting started with a personal site in Hugo and it perfectly fits my requirements.
At the moment I don't want to have my contact information (phone/email) in the footer, I've tried to remove these from my config.toml
but it looks to have been overridden by the defaults in the config.toml
in the theme.
As I'm just using your repo as a git submodule, I was wondering if there is a change that could be made to the default/example config that would allow for this use case?
Thanks,
Scott.
How to limit the number of shown microblogs? And maybe use next page and previous page to show all
If you reduce the width of your browser half of what it normally is, the sidebar will overlap the content. If you click the toggle button for the sidebar which executes the javascript and then toggle the sidebar back on, the content positioning responds appropriately so the sidebar does not overlap anything.
It would be great if it could respond to the side bar at all times, is this possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.