Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "apps/size-diff"]
path = apps/size_diff
url = https://github.com/snowsune/size-diff
37 changes: 34 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ content categories and i try to be as **modular** as possible. Here's how things
### 📁 `apps/`
Houses all feature-specific Django apps:

- `blog/` — Blog landing page and future dynamic markdown-powered post system. (WIP!)
- `characters/` — Static character profiles stored as `.md` files and rendered with markdown. (WIP also!)
- `comics/` — Placeholder for comic content.
- `blog/` — Blog subapp! Templates and DB Stuff for blog in here
- `characters/` — Static character profiles stored as `.md` files and rendered with markdown. (WIP/maybe removal >.<!)
- `comics/` — COMCIS! My own personal webcomic system! its pretty barebones. TODO: Implement independant comments/etc (rn it hooks the blogpost system for comments)

Each app contains its own:
- `templates/` — App-specific templates.
Expand Down Expand Up @@ -64,6 +64,37 @@ services:
...
```

# Basic development Guide!

## Setup ENVs

Start by making up a `.env` file! The minumum defines are here

```
DEBUG=True
SECRET_KEY="fortestingonly"
DATABASE_URL="sqlite:///db.sqlite3"
MEDIA_ROOT=.local/media
SITE_URL=https://dev.snowsune.net/
```

## Setup dependencies and run!

I use `pipenv` to make the management easy but you could use any chroot/venv you like really!

```
# Install
pipenv install -r requirements.txt

# Run inital migrations
pipenv run python manage.py migrate

# Run devserver!
pipenv run python manage.py runserver
```

Thats it! You're running a dev server at http://127.0.0.1:8000/ with a sqlite
database!

# Crontab TODO

Expand Down
84 changes: 0 additions & 84 deletions apps/blog/templates/blog/landing.html

This file was deleted.

3 changes: 1 addition & 2 deletions apps/blog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
app_name = "blog"

urlpatterns = [
path("", views.blog_landing, name="blog_landing"),
path("posts/", views.BlogListView.as_view(), name="blog_list"),
path("", views.BlogListView.as_view(), name="blog_list"),
path("post/<slug:slug>/", views.BlogDetailView.as_view(), name="post_detail"),
path("create/", views.BlogCreateView.as_view(), name="post_create"),
path("edit/<slug:slug>/", views.BlogUpdateView.as_view(), name="post_edit"),
Expand Down
16 changes: 0 additions & 16 deletions apps/blog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,19 +420,3 @@ def item_updateddate(self, item):

def item_categories(self, item):
return [tag.name for tag in item.tags.all()]


def blog_landing(request):
"""Landing page for the blog"""
latest_posts = (
BlogPost.objects.filter(status="published")
.select_related("author")
.prefetch_related("tags")[:6]
)
popular_tags = Tag.objects.all()[:10]

context = {
"latest_posts": latest_posts,
"popular_tags": popular_tags,
}
return render(request, "blog/landing.html", context)
1 change: 1 addition & 0 deletions apps/size_diff
Submodule size_diff added at a73fdf
1 change: 1 addition & 0 deletions snowsune/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"apps.commorganizer", # Commission Organizer app
"apps.notifications", # Centralized notification system
"apps.thank_yous", # Thank yous management app
"apps.size_diff", # Size Diff app
]

MIDDLEWARE = [
Expand Down
8 changes: 4 additions & 4 deletions snowsune/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ <h1>Welcome to Snowsune.net!</h1>
</header>

<section class="intro-section">
<p>Hey there! I'm Vixi, and while I might not be the best at web design, I'm passionate about creating things
and sharing with the furry community!</p>
<p>Hey there! I'm Vixi, I'm a fox not super amazing at web design but very passionate about making things for my
friends and the furry community!</p>

<p>This site is constantly evolving with new features, but I always want to be trying to make and provide new useful
things! (And receive feedback on those things that don't work out)~</p>
<p>This site is constantly evolving with new features, but I always want to be trying to make and provide new
useful things! (And receive feedback on those things that don't work out)~</p>

<p><strong>You can always contact me by joining my <a href="{{ discord_invite }}" class="discord-link">Discord
community</a> or emailing me at <a href="mailto:vixi@snowsune.net">vixi@snowsune.net</a>!</strong></p>
Expand Down
6 changes: 3 additions & 3 deletions snowsune/templates/tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h3>BixiBooru</h3>
<h3>Size Diff Calculator</h3>
<p>Calculate size differences with species-based scaling! A tool I'm particularly proud of for
character size comparisons.</p>
<a href="https://size-diff.snowsune.net/" class="tool-button external">Size yourself~</a>
<a href="{% url 'size_diff:index' %}" class="tool-button">Size yourself~</a>
</div>
</div>

Expand Down Expand Up @@ -130,8 +130,8 @@ <h3>Games</h3>
<h3>Development Tools</h3>
<ul class="sidebar-links">
<li><a href="{% url 'commorganizer' %}">Commission Organizer</a></li>
<li><a href="https://booru.kitsunehosting.net/">BixiBooru</a></li>
<li><a href="https://size-diff.snowsune.net/">Size-Diff Calculator</a></li>
<li><a href="https://booru.kitsunehosting.net/">BixiBoorus</a></li>
<li><a href="{% url 'size_diff:index' %}">Size-Diff Calculator</a></li>
</ul>
</div>

Expand Down
2 changes: 1 addition & 1 deletion snowsune/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_characters_page_loads(self):

def test_blog_page_loads(self):
"""Test that the blog page loads successfully."""
response = self.client.get(reverse("blog:blog_landing"))
response = self.client.get(reverse("blog:blog_list"))
self.assertEqual(response.status_code, 200)

def test_comics_page_loads(self):
Expand Down
1 change: 1 addition & 0 deletions snowsune/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
path("commorganizer/", include("apps.commorganizer.urls")),
path("characters/", include("apps.characters.urls")),
path("users/", include("apps.users.urls")),
path("size-diff/", include("apps.size_diff.urls")),
# SEO
path(
"sitemap.xml",
Expand Down
12 changes: 6 additions & 6 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<meta name="description"
content="{% block meta_description %}Welcome to Snowsune.net! Vixi's website for projects, tools, comics, and more!{% endblock %}" />
<meta name="keywords"
content="{% block meta_keywords %}Snowsune, Vixi, Vixi Argorrok, Rhettan, projects, blog, tools, comics, furry, art, webcomic, discord, server, hangout, community, furry art, digital art, character art, commission, commission organizer, thank you tracker, furry community, online tools, web development, creative projects{% endblock %}" />
content="{% block meta_keywords %}Snowsune, Vixi, Vixi Argorrok, Rhettan, Alice Prairie, projects, blog, tools, comics, furry, art, webcomic, discord, server, hangout, community, furry art, digital art, character art, commission, commission organizer, furry community, online tools, web development, creative projects{% endblock %}" />
<meta name="author" content="Vixi" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="{% block canonical_url %}https://snowsune.net{% endblock %}" />
Expand All @@ -54,7 +54,7 @@
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt"
content="{% block og_image_alt %}Snowsune.net - Vixi's creative website{% endblock %}" />
content="{% block og_image_alt %}Snowsune.net - Vixi's personal website{% endblock %}" />

<!-- Twitter Card (not because I like twitter, only for compat in apps that accept the summary_large) -->
<meta name="twitter:card" content="summary_large_image" />
Expand All @@ -64,7 +64,7 @@
<meta name="twitter:image"
content="{% block twitter_image %}{% static 'placeholders/placeholder_wide.png' %}{% endblock %}" />
<meta name="twitter:image:alt"
content="{% block twitter_image_alt %}Snowsune.net - Vixi's creative website{% endblock %}" />
content="{% block twitter_image_alt %}Snowsune.net - Vixi's personal website{% endblock %}" />
<meta name="twitter:site" content="@snowsune" />
<meta name="twitter:creator" content="@vixi" />

Expand Down Expand Up @@ -128,13 +128,13 @@
<div class="nav-links">
<a href="{% url 'home' %}">Home</a>
<a href="{% url 'tools' %}">Apps/Tools</a>
<a href="{% url 'blog:blog_landing' %}">Blog</a>
<a href="{% url 'blog:blog_list' %}">Blog</a>
<a href="{% url 'comics:comic_home' %}">Comics</a>
</div>
<div class="nav-mobile-links" id="nav-mobile-links">
<a href="{% url 'home' %}">Home</a>
<a href="{% url 'tools' %}">Apps/Tools</a>
<a href="{% url 'blog:blog_landing' %}">Blog</a>
<a href="{% url 'blog:blog_list' %}">Blog</a>
<a href="{% url 'comics:comic_home' %}">Comics</a>
</div>
</nav>
Expand Down Expand Up @@ -169,7 +169,7 @@ <h2>Global Links</h2>
<li><a href="{% url 'home' %}">About</a></li>
<!-- TODO: Change me to a proper about page later -->
<li><a href="{% url 'tools' %}">Tools</a></li>
<li><a href="{% url 'blog:blog_landing' %}">Blog</a></li>
<li><a href="{% url 'blog:blog_list' %}">Blog</a></li>
</ul>
{% block sidebar %} {% endblock %}

Expand Down
Loading