mirror of
https://github.com/NohamR/oled-nnw.git
synced 2026-05-25 04:17:19 +00:00
Rename Elegant theme to Oled and update references
The Elegant.nnwtheme files have been renamed to Oled.nnwtheme, including stylesheet, Info.plist, and template.html. References in .stylelintrc.json were updated to ignore the new stylesheet location. Documentation and build scripts were updated to reflect the new theme name.
This commit is contained in:
16
Oled.nnwtheme/Info.plist
Normal file
16
Oled.nnwtheme/Info.plist
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>ThemeIdentifier</key>
|
||||
<string>com.noham.themes.oled</string>
|
||||
<key>Name</key>
|
||||
<string>Oled</string>
|
||||
<key>CreatorHomePage</key>
|
||||
<string>https://noh.am/</string>
|
||||
<key>CreatorName</key>
|
||||
<string>Noham</string>
|
||||
<key>Version</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
</plist>
|
||||
1
Oled.nnwtheme/stylesheet.css
Normal file
1
Oled.nnwtheme/stylesheet.css
Normal file
File diff suppressed because one or more lines are too long
93
Oled.nnwtheme/template.html
Normal file
93
Oled.nnwtheme/template.html
Normal file
@@ -0,0 +1,93 @@
|
||||
<!-- Template Variables
|
||||
|
||||
title: The title of the article
|
||||
preferred_link: The best link to associate with the article for linking out.
|
||||
|
||||
external_link_label: A localized label for the external link.
|
||||
external_link_stripped: The external link minus the scheme. Useful for displaying the external link.
|
||||
external_link: The external link of the article if there is one provided by the author.
|
||||
|
||||
feed_link_title: The name of the feed associated with this article.
|
||||
feed_link: The URL of the feed associated with this article.
|
||||
byline: HTML that combines all the authors and links to them if available.
|
||||
avatar_src: The image source URL for the feed icon / avatar.
|
||||
dateline_style: Either "articleDateline" or "articleDatelineTitle" depending on if the title was populated or not.
|
||||
|
||||
datetime_long: Long version of a combined publish date and time.
|
||||
datetime_medium: Medium length version of a combined publish date and time.
|
||||
datetime_short: Short version of a combined publish date and time.
|
||||
|
||||
date_long: Long version of the publish date.
|
||||
date_medium: Medium version of the publish date.
|
||||
date_short: Long version of the publish date.
|
||||
|
||||
time_long: Long version of the publish time.
|
||||
time_medium: Medium version of the publish time.
|
||||
time_short: Long version of the publish time.
|
||||
|
||||
text_size_class: The size class that the user has selected in Preferences for article text.
|
||||
body: The body of the article.
|
||||
|
||||
-->
|
||||
<div id="oled-reader">
|
||||
<!-- Header -->
|
||||
<header>
|
||||
<img
|
||||
src="[[avatar_src]]"
|
||||
alt="feed img"
|
||||
/>
|
||||
<div class="feed-title">
|
||||
<a
|
||||
href="[[feed_link]]"
|
||||
title="Open feed"
|
||||
>
|
||||
[[feed_link_title]]
|
||||
</a>
|
||||
</div>
|
||||
<div class="date">
|
||||
[[date_long]]
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Article -->
|
||||
<article class="prose prose-neutral dark:prose-invert">
|
||||
<h1>
|
||||
<a
|
||||
href="[[preferred_link]]"
|
||||
title="Open original post"
|
||||
>
|
||||
[[title]]
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<p class="meta">
|
||||
<a
|
||||
href="[[feed_link]]"
|
||||
title="Feed link"
|
||||
>
|
||||
<span class="i-carbon-rss"></span>
|
||||
Feed
|
||||
</a>
|
||||
<a
|
||||
href="[[preferred_link]]"
|
||||
title="Original post link"
|
||||
>
|
||||
<span class="i-carbon-link"></span>
|
||||
Post
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<div class="content">
|
||||
[[body]]
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer>
|
||||
<a href="[[feed_link]]">
|
||||
[[byline]]
|
||||
</a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript"></script>
|
||||
Reference in New Issue
Block a user