added readmore option & edited readme
This commit is contained in:
parent
0596832043
commit
de668f2349
19
README.md
19
README.md
@ -9,6 +9,7 @@ Noteworthy is a minimalist Hugo theme for writers and bloggers.
|
|||||||
|
|
||||||
* Fully responsive
|
* Fully responsive
|
||||||
* Google Analytics and Disqus integration
|
* Google Analytics and Disqus integration
|
||||||
|
* Ko-fi donation button
|
||||||
* Syntax highlighting
|
* Syntax highlighting
|
||||||
* Mathematical notations with KaTex
|
* Mathematical notations with KaTex
|
||||||
* About, Tags, and Archives pages
|
* About, Tags, and Archives pages
|
||||||
@ -38,7 +39,7 @@ my-new-post
|
|||||||
- image2.png
|
- image2.png
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, you can add an image within your Markdown file by using the shortcode like thist:
|
Then, you can add an image within your Markdown file by using the shortcode like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
{{< resize-image src="image1.jpg" alt="My first image" >}}
|
{{< resize-image src="image1.jpg" alt="My first image" >}}
|
||||||
@ -50,6 +51,10 @@ Add captions like this:
|
|||||||
{{< resize-image src="image2.png" alt="My second image" caption="My caption" >}}
|
{{< resize-image src="image2.png" alt="My second image" caption="My caption" >}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Read more link for posts
|
||||||
|
|
||||||
|
Set `showReadMore = false` to `true` in the config file to have a "read more" link show up when posts are truncated.
|
||||||
|
|
||||||
## Social media accounts
|
## Social media accounts
|
||||||
|
|
||||||
In the `params` section of the `config.toml` file, you can add links to your social media accounts. Simply remove the ones that you don't want to include, and their icons will disappear from the site.
|
In the `params` section of the `config.toml` file, you can add links to your social media accounts. Simply remove the ones that you don't want to include, and their icons will disappear from the site.
|
||||||
@ -64,6 +69,7 @@ tumblr = "#"
|
|||||||
reddit = "#"
|
reddit = "#"
|
||||||
pinterest = "#"
|
pinterest = "#"
|
||||||
youtube = "#"
|
youtube = "#"
|
||||||
|
vimeo = "#"
|
||||||
weibo = "#"
|
weibo = "#"
|
||||||
vk = "#"
|
vk = "#"
|
||||||
linkedin = "#"
|
linkedin = "#"
|
||||||
@ -79,11 +85,19 @@ behance = "#"
|
|||||||
deviantart = "#"
|
deviantart = "#"
|
||||||
flickr = "#"
|
flickr = "#"
|
||||||
|
|
||||||
|
# Audio & Music
|
||||||
|
soundcloud = "#"
|
||||||
|
|
||||||
# Programming
|
# Programming
|
||||||
github = "#"
|
github = "#"
|
||||||
stackoverflow = "#"
|
stackoverflow = "#"
|
||||||
gitlab = "#"
|
gitlab = "#"
|
||||||
codepen = "#"
|
codepen = "#"
|
||||||
|
|
||||||
|
# Academic
|
||||||
|
googlescholar = "#"
|
||||||
|
impactstory = "#"
|
||||||
|
orcid = "#"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -104,8 +118,7 @@ googleAnalytics = ""
|
|||||||
If you'd like to enable a Ko-fi button on your posts, enable it in the config file and add your identifier.
|
If you'd like to enable a Ko-fi button on your posts, enable it in the config file and add your identifier.
|
||||||
|
|
||||||
```
|
```
|
||||||
# Set enableKofi to true to enable the Ko-fi support button. Add your Ko-fi
|
# Set enableKofi to true to enable the Ko-fi support button. Add your Ko-fi ID to link to your account.
|
||||||
ID to link to your account.
|
|
||||||
enableKofi = true
|
enableKofi = true
|
||||||
kofi = ""
|
kofi = ""
|
||||||
```
|
```
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// TOP NAV
|
// TOP NAV
|
||||||
nav {
|
nav {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
overflow-y: scroll;
|
overflow: auto;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 36px;
|
left: 36px;
|
||||||
|
@ -27,6 +27,8 @@ disqusShortname = ""
|
|||||||
# Blog description at the top of the homepage. Supports markdown.
|
# Blog description at the top of the homepage. Supports markdown.
|
||||||
description = "Noteworthy is a minimalist Hugo theme, perfect for writers and bloggers."
|
description = "Noteworthy is a minimalist Hugo theme, perfect for writers and bloggers."
|
||||||
|
|
||||||
|
showReadMore = false
|
||||||
|
|
||||||
# Set enableKofi to true to enable the Ko-fi support button. Add your Ko-fi ID to link to your account.
|
# Set enableKofi to true to enable the Ko-fi support button. Add your Ko-fi ID to link to your account.
|
||||||
enableKofi = false
|
enableKofi = false
|
||||||
kofi = ""
|
kofi = ""
|
||||||
@ -57,6 +59,9 @@ disqusShortname = ""
|
|||||||
deviantart = "#"
|
deviantart = "#"
|
||||||
flickr = "#"
|
flickr = "#"
|
||||||
|
|
||||||
|
# Audio & Music
|
||||||
|
soundcloud = "#"
|
||||||
|
|
||||||
# Programming
|
# Programming
|
||||||
github = "#"
|
github = "#"
|
||||||
stackoverflow = "#"
|
stackoverflow = "#"
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>{{ .Summary }}</p>
|
||||||
{{ .Summary }}
|
{{ if (and (.Site.Params.showReadMore) (.Truncated)) }}
|
||||||
</p>
|
<p><a href="{{ .RelPermalink }}">Read more...</a></p>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="post-footer">
|
<div class="post-footer">
|
||||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
|
@ -14,7 +14,12 @@
|
|||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div><p>{{ .Summary }}</p></div>
|
<div>
|
||||||
|
<p>{{ .Summary }}</p>
|
||||||
|
{{ if (and (.Site.Params.showReadMore) (.Truncated)) }}
|
||||||
|
<p><a href="{{ .RelPermalink }}">Read more...</a></p>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
<div class="post-footer">
|
<div class="post-footer">
|
||||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user