korean
This commit is contained in:
parent
fa32bea04b
commit
af1d00a0b2
5 changed files with 13 additions and 18 deletions
|
@ -43,8 +43,7 @@
|
|||
figcaption {
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,10 +84,8 @@
|
|||
background: rgba(0,0,0,0.5);
|
||||
padding: 16px;
|
||||
border-radius: 2px;
|
||||
.font-size-sm {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
justify-content: center;
|
||||
.h1-en-home {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
</div>
|
||||
</a>
|
||||
<nav>
|
||||
<a href="{% url 'films' %}" class="animated-title"><span class="text">videos</a>
|
||||
<a href="{% url 'texts' %}" class="animated-title"><span class="text">cuts</a>
|
||||
<a href="{% url 'about' %}" class="animated-title"><span class="text">about</a>
|
||||
<a href="{% url 'films' %}" class="animated-title"><span class="text">videos 비디오</a>
|
||||
<a href="{% url 'texts' %}" class="animated-title"><span class="text">cuts 장면들</a>
|
||||
<a href="{% url 'about' %}" class="animated-title"><span class="text">about 소개</a>
|
||||
</nav>
|
||||
</div>
|
||||
<main>
|
||||
|
|
|
@ -39,12 +39,9 @@
|
|||
<div class="box">
|
||||
<h1 class="h1-en-home">njp.ma</h1>
|
||||
<div class="font-size-sm">
|
||||
<div class="h3"><a href="{% url 'films'%}" class="font-bold">Videos</a></div>
|
||||
|
||||
<div class="h3"><a href="{% url 'texts' %}" class="font-bold">Cuts</a></div>
|
||||
</div>
|
||||
<div class="font-size-sm">
|
||||
<div class="h3"><a href="{% url 'about' %}" class="font-bold">About</a></div>
|
||||
<div class="h3"><a href="{% url 'films'%}" class="font-bold">Videos 비디오</a></div>
|
||||
<div class="h3"><a href="{% url 'texts' %}" class="font-bold">Cuts 장면들</a></div>
|
||||
<div class="h3"><a href="{% url 'about' %}" class="font-bold">About 소개</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -58,12 +58,13 @@ class Command(BaseCommand):
|
|||
folders[item['folder']]['items'].append(item)
|
||||
|
||||
for item in folders.values():
|
||||
f, c = models.Film.objects.get_or_create(pandora_url=item['url'])
|
||||
slug = escape_slug(item['title'].split(' / ')[0])
|
||||
f, c = models.Film.objects.get_or_create(slug=slug)
|
||||
f.pandora_url = item['url']
|
||||
for key, value in item.items():
|
||||
if key != 'url':
|
||||
f.data[{
|
||||
}.get(key, key)] = value
|
||||
if c:
|
||||
f.public = True
|
||||
f.slug = escape_slug(item['title'])
|
||||
f.save()
|
||||
|
|
Loading…
Reference in a new issue