Remove test button
- Author
- Maarten Vangeneugden
- Date
- April 9, 2018, 8:15 p.m.
- Hash
- 92aabadd409a496b50a23d3920ffa653025a3903
- Parent
- 23869176c2a18091614769c0b2e8b3832265ee71
- Modified file
- templates/blog/index.html
templates/blog/index.html ¶
0 additions and 1 deletion.
View changes Hide changes
1 |
1 |
{% load i18n %} |
2 |
2 |
{% load static %} |
3 |
3 |
|
4 |
4 |
{% block stylesheets %} |
5 |
5 |
{{ block.super }} |
6 |
6 |
{#<link href="{% static "blog/stylesheet.css" %}" rel="stylesheet" media="screen, projection" />#} |
7 |
7 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css"> |
8 |
8 |
|
9 |
9 |
<!-- Compiled and minified JavaScript --> |
10 |
10 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/js/materialize.min.js"></script> |
11 |
11 |
{% endblock %} |
12 |
12 |
|
13 |
13 |
{% block title %}{% trans "Maarten's blog" %}{% endblock title %} |
14 |
14 |
|
15 |
15 |
{% block description %}{% blocktrans %}The always coherently put together, yet |
16 |
16 |
fuzzy blog of whatever sprouts in my mind.{% endblocktrans %} |
17 |
17 |
{% endblock description %} |
18 |
18 |
|
19 |
19 |
{% block main %} |
20 |
20 |
{% with color="brown" accent_color="yellow" %} |
21 |
21 |
<div class="section {{ color }} z-depth-3"> |
22 |
22 |
<div class="container"> |
23 |
23 |
<div class="white-text"> |
24 |
24 |
<h3>{% trans "Blog" %}</h3> |
25 |
25 |
<p> |
26 |
26 |
{% blocktrans %}Welcome to my blog. Here, I write |
27 |
27 |
about things that interest me. Politics, coding, |
28 |
28 |
studying, life, or anything else I fancy rambling |
29 |
29 |
about. If you're in luck, I may've written it in a |
30 |
30 |
language that you understand better than English. |
31 |
31 |
{% endblocktrans %} |
32 |
32 |
</p> |
33 |
33 |
</div> |
34 |
34 |
</div> |
35 |
35 |
</div> |
36 |
36 |
|
37 |
37 |
<div class="fixed-action-btn"> |
38 |
38 |
<a href="{% url 'blog-feed' %}" id="feed-fab" class="btn-floating waves-effect waves-light btn-large orange accent-4"> |
39 |
39 |
<i class="large material-icons">rss_feed</i> |
40 |
40 |
</a> |
41 |
41 |
</div> |
42 |
42 |
|
43 |
43 |
|
44 |
44 |
<div class="container row"> |
45 |
45 |
<div class="col s12 m6"> |
46 |
46 |
<h1 id="weekly" class="{{ color }}-text">Weekly</h1> |
47 |
47 |
{% include "blog/weekly.html" %} |
48 |
48 |
</div> |
49 |
49 |
<div class="container col s12 m6"> |
50 |
50 |
{% for title, date, blog_text, link in posts %} |
51 |
51 |
<h1 class="{{ color}}-text">{{ title }}</h2> |
52 |
52 |
<span class="grey-text">{{ date|date:"DATE_FORMAT" }}</span> |
53 |
53 |
<p class="hide-on-small-only">{{ blog_text|safe|truncatewords_html:100 }}</p> |
54 |
54 |
<a class="btn black-text waves-effect {{accent_color}} accent-4" href="{{link}}"> |
55 |
55 |
📚 {% trans "Read on"%} |
56 |
56 |
</a> |
57 |
57 |
<hr /> |
58 |
58 |
{% endfor %} |
59 |
59 |
</div> |
60 |
60 |
</div> |
61 |
61 |
|
62 |
62 |
{% if introduce_feed %} |
63 |
63 |
<div class="orange accent-4 tap-target" data-target="feed-fab"> |
64 |
64 |
<div class="white-text tap-target-content"> |
65 |
65 |
<h5>{% trans "Never miss an update again." %}</h5> |
66 |
66 |
<p>{% blocktrans %}Getting info on updates to blog posts, major website changes, and other important |
67 |
67 |
news items is now easy and convenient with RSS. |
68 |
68 |
{% endblocktrans %}</p> |
69 |
69 |
</div> |
70 |
70 |
</div> |
71 |
71 |
<script> |
72 |
72 |
var elem = document.querySelector('.tap-target'); |
73 |
73 |
console.log(elem); |
74 |
74 |
var instance = M.TapTarget.init(elem, null); |
75 |
75 |
console.log(instance); |
76 |
76 |
instance.open(); |
77 |
77 |
</script> |
78 |
78 |
{% endif %} |
79 |
79 |
<a class="waves-effect waves-light btn" onclick="$('.tap-target').tapTarget('open')">Open tap target</a> |
80 |
- | |
81 |
80 |
{% endwith %} |
82 |
81 |
{% endblock main %} |
83 |
82 |