Implement hidden article
Signed-off-by: Minecon724 <git@m724.eu>
This commit is contained in:
parent
114caf198c
commit
21d8a5de48
4 changed files with 33 additions and 3 deletions
|
@ -22,4 +22,6 @@ customText This article is cool because it has small text
|
|||
|
||||
<p>Morbi orci ex, dignissim a congue accumsan, malesuada faucibus urna. Aenean porttitor tempus purus, et consectetur lorem maximus ac. Ut eget consectetur metus. Praesent sollicitudin convallis urna non finibus. Fusce magna est, accumsan eu est id, dignissim mollis ipsum. Cras id turpis eu massa sodales scelerisque ac ut enim. Fusce suscipit dui id malesuada venenatis. Phasellus eleifend erat at arcu malesuada, sed porttitor risus viverra. Duis blandit dui tortor, id tincidunt tellus iaculis at. Aenean sed purus ut dolor finibus tempus in in leo. Duis vitae elit id velit laoreet varius eu accumsan dui. Maecenas ac sollicitudin mi. Phasellus tristique justo sed est sagittis eleifend in nec ex.</p>
|
||||
|
||||
<p>Nulla in pretium tortor. Donec faucibus dapibus urna, vitae vestibulum velit ultricies nec. Mauris ultricies porta purus nec convallis. Aenean varius mi tortor, id mollis nisl scelerisque quis. Donec facilisis nisl vel tristique porttitor. Sed elit turpis, sodales ac neque nec, placerat imperdiet erat. Vestibulum feugiat volutpat convallis. Praesent eu nunc eu justo consectetur bibendum ac eu nisi. Donec velit sem, mattis non scelerisque non, luctus ac felis. Praesent vel orci ligula. Aenean sit amet justo nisl. Suspendisse non turpis magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nulla urna odio, varius sed neque nec, tincidunt tincidunt lacus.</p>
|
||||
<p>Nulla in pretium tortor. Donec faucibus dapibus urna, vitae vestibulum velit ultricies nec. Mauris ultricies porta purus nec convallis. Aenean varius mi tortor, id mollis nisl scelerisque quis. Donec facilisis nisl vel tristique porttitor. Sed elit turpis, sodales ac neque nec, placerat imperdiet erat. Vestibulum feugiat volutpat convallis. Praesent eu nunc eu justo consectetur bibendum ac eu nisi. Donec velit sem, mattis non scelerisque non, luctus ac felis. Praesent vel orci ligula. Aenean sit amet justo nisl. Suspendisse non turpis magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nulla urna odio, varius sed neque nec, tincidunt tincidunt lacus.</p>
|
||||
|
||||
<p><a href="{{ url_for('/article/invisible-article.html') }}">Do not click here</a></p>
|
24
articles/invisible-article.html
Normal file
24
articles/invisible-article.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
title You can't see me
|
||||
summary Really you can't, because this post is...
|
||||
hidden
|
||||
|
||||
|
||||
<div style="color: black;">
|
||||
<p>Random facts</p>
|
||||
<ul>
|
||||
<li>You clicked a link telling you <strong>NOT</strong> to click</li>
|
||||
<li>It was telling you <strong>NOT</strong> to click</li>
|
||||
<li>Why did you click? You were <strong>NOT</strong> supposed to</li>
|
||||
<li>Fine...</li>
|
||||
<li>
|
||||
I'll forgive you <em>this time.</em>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>Random facts</p>
|
||||
<ul>
|
||||
<li>Index page won't lead you here</li>
|
||||
<li>Nor will RSS feed</li>
|
||||
<li>However, links <a href="{{ url_for('/article/invisible-article.html') }}">like this one</a> can</li>
|
||||
</ul>
|
4
site.yml
4
site.yml
|
@ -1,8 +1,8 @@
|
|||
name: my blog
|
||||
baseUrl: https://example.com/blog
|
||||
|
||||
# Whether to apply Pebble templating to posts. Disabled by default, not recommended.
|
||||
# templateArticles: true
|
||||
# Whether to apply Pebble templating to posts. Disabled by default
|
||||
templateArticles: true
|
||||
|
||||
coolProperty: 1231
|
||||
coolerProperty:
|
||||
|
|
|
@ -11,4 +11,8 @@ article > header {
|
|||
padding: 5px 20px;
|
||||
background: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
a {
|
||||
color: aqua;
|
||||
}
|
Loading…
Add table
Reference in a new issue