-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
153 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
"azuretools", | ||
"cssless", | ||
"devcontainer", | ||
"htmx", | ||
"HTMX", | ||
"hykin", | ||
"hypercorn", | ||
"Instapundit", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hello World |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
flex: 1 0 auto; | ||
} | ||
</style> | ||
<script defer src="https://unpkg.com/[email protected]"></script> | ||
<script defer src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | ||
<script defer src="{{ url_for('static', filename='js/script.js') }}"></script> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='css/index.css') }}"> | ||
|
@@ -81,29 +82,8 @@ | |
<div class="row"> | ||
{% for column in columns %} | ||
<div class="column"> | ||
{% for feed in column %} | ||
<div class="box {{ feed.type }}-box"> | ||
<div class="box-header {{ feed.type }}-header"> | ||
<a href="{{ feed.link }}" target="_blank">{{ feed.name }}</a></div> | ||
<div class="box-content {{ feed.type }}-content"> | ||
<ul> | ||
{% for article in feed.articles[:feed.get('article_limit', 10)] %} | ||
<li> | ||
<a href="{{ article.link }}" class="{{ feed.type }}-link"> | ||
{% if article.title %} | ||
{{ article.title }} | ||
{% else %} | ||
No Title | ||
{% endif %} | ||
</a> | ||
{% if feed.summary_enabled and article.summary %} | ||
<div class="summary {{ feed.type }}">{{ article.summary }}</div> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% for widget in column %} | ||
{% include "widget.html" ignore missing with context %} | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!doctype html> | ||
<html class="no-js" lang=""> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title></title> | ||
<meta name="description" content=""> | ||
|
||
<meta property="og:title" content=""> | ||
<meta property="og:type" content=""> | ||
<meta property="og:url" content=""> | ||
<meta property="og:image" content=""> | ||
<meta property="og:image:alt" content=""> | ||
|
||
<meta name="theme-color" content="#fafafa"> | ||
<script defer src="https://unpkg.com/[email protected]"></script> | ||
<style> | ||
.htmx-settling img { | ||
opacity: 0; | ||
} | ||
img { | ||
transition: opacity 300ms ease-in; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
<!-- Add your site or application content here --> | ||
<p>Hello world! This is HTML5 Boilerplate.</p> | ||
<button hx-post="/clicked" hx-swap="outerHTML"> | ||
Click Me | ||
</button> | ||
|
||
<div hx-get="/clicked" hx-trigger="load"> | ||
<img alt="Result loading..." class="htmx-indicator" width="150" src="/static/img/bars.svg"/> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<div class="box {{ widget.type }}-box" | ||
{% if not widget.articles %} | ||
hx-get="/widget/{{ widget.name }}" hx-trigger="load" hx-swap="outerHTML" | ||
{% endif %} | ||
> | ||
<div class="box-header {{ widget.type }}-header"> | ||
<a href="{{ widget.link }}" target="_blank">{{ widget.name }}</a></div> | ||
<div class="box-content {{ widget.type }}-content"> | ||
<ul> | ||
{% for article in widget.articles[:widget.get('article_limit', 10)] %} | ||
<li> | ||
<a href="{{ article.link }}" class="{{ widget.type }}-link"> | ||
{% if article.title %} | ||
{{ article.title }} | ||
{% else %} | ||
No Title | ||
{% endif %} | ||
</a> | ||
{% if widget.summary_enabled and article.summary %} | ||
<div class="summary {{ widget.type }}">{{ article.summary }}</div> | ||
{% endif %} | ||
</li> | ||
{% else %} | ||
<li>Loading...</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters