Skip to content

Commit 3c007e6

Browse files
committed
Remove comments functionality from site
Fixes #341
1 parent 6872a73 commit 3c007e6

File tree

15 files changed

+7
-413
lines changed

15 files changed

+7
-413
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ For example:
105105
## Plugins used
106106

107107
* [`etc_cache`](https://github.com/etc-plugins/etc_cache)
108-
* [`rah_comment_spam`](https://github.com/gocom/rah_comment_spam)
109108
* [`smd_thumbnail`](https://github.com/bloke/smd_thumbnail)
110109

111110
## License

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "textpattern-com",
33
"description": "Official website of the Textpattern project.",
4-
"version": "1.7.2",
4+
"version": "1.8.0",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/textpattern/textpattern-com-website"

src/assets/sass/modules/_blog.scss

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,11 @@
3636
* <a>Releases</a>
3737
* <a>Hope for the future</a>
3838
* </span>
39-
* <span class="separator">|</span>
40-
* <span class="ui-icon ui-icon-comment">Comments:</span>
41-
* <a>
42-
* <span>3</span>
43-
* </a>
4439
* </footer>
4540
*/
4641

4742
.article-footer {
48-
margin: 2em 0 2.5em;
43+
margin: 2em 0;
4944
}
5045

5146
.article-footer,

src/assets/sass/modules/_comments.scss

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/assets/sass/modules/_icons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
//.ui-icon-mail-closed { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M1 3h14v10H1V3zm7 6c-.875 0-1.25-.5-1.25-.5L3.25 12h9.5l-3.5-3.5S8.875 9 8 9zm-6 3l4-4-4-4v8zm12 0V4l-4 4 4 4zM9.25 7.5l3.5-3.5h-9.5l3.5 3.5S7.562 8 8 8s1.25-.5 1.25-.5z'/%3E%3C/svg%3E"); }
149149
//.ui-icon-mail-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M15 3.5V13H1V3.5S6 0 8 0s7 3.5 7 3.5zM8 9c-.875 0-1.25-.5-1.25-.5L3.25 12h9.5l-3.5-3.5S8.875 9 8 9zM6 8L2 4v8l4-4zm4 0l4 4V4l-4 4zM8 1c-1 0-1.578.375-1.578.375L2 4h12L9.578 1.375S9 1 8 1z'/%3E%3C/svg%3E"); }
150150
//.ui-icon-suitcase { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M2 4h3v9H2zM6 4h4v9H6zM11 4h3v9h-3zM7 4c0-1.105-.105-2 1-2 1.104 0 1 .895 1 2h2a3 3 0 1 0-6 0h2z'/%3E%3C/svg%3E"); }
151-
.ui-icon-comment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M15 3H1v9h8l4 4v-4h2z'/%3E%3C/svg%3E"); }
151+
//.ui-icon-comment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M15 3H1v9h8l4 4v-4h2z'/%3E%3C/svg%3E"); }
152152
//.ui-icon-person { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='m11 13v2h2v-2c0-3-.5-4-5-4s-5 1-5 4v2h2v-2l1 1v1h4v-1zm-6-7v-2c0-3 3-3 3-3s3 0 3 3v2c0 3-3 3-3 3s-3 0-3-3zm2-2h-1v1h1zm3 0h-1v1h1z'/%3E%3C/svg%3E"); }
153153
//.ui-icon-print { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23333'%3E%3Cpath d='m14 10v3l-1 2h-10l-1-2v-3h1v-8h10v8zm-1 1h-2v1h2zm-1-8h-8v7h8z'/%3E%3Cpath d='m5 4h6v1h-6zm0 2h6v1h-6zm0 2h6v1h-6z'/%3E%3C/g%3E%3C/svg%3E"); }
154154
//.ui-icon-trash { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23333'%3E%3Cpath d='M13 2h-3a2 2 0 0 0-4 0H3C2 2 2 4 2 4h12s0-2-1-2zM8 1a1 1 0 0 1 1 1H7a1 1 0 0 1 1-1zM12 4v10h-1V4h-1v10H9V4H8v10H7V4H6v10H5V4H3v11h10V4z'/%3E%3C/g%3E%3C/svg%3E"); }

src/assets/sass/modules/_print.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ nav,
3838
audio,
3939
video,
4040
form,
41-
#comments-form,
42-
.comments h4 a:last-child,
4341
.complementary-content,
4442
.search-form,
4543
.site-footer,
@@ -281,11 +279,3 @@ td {
281279
padding: 4pt 8pt;
282280
border-bottom: 1pt solid black;
283281
}
284-
285-
/**
286-
* Avoid user comments breaking across multiple pages.
287-
*/
288-
289-
.comments {
290-
page-break-inside: avoid;
291-
}

src/assets/sass/style.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
@import "modules/misc";
145145
@import "modules/http-errors";
146146
@import "modules/blog";
147-
@import "modules/comments";
148147
@import "modules/cards";
149148
@import "modules/icons";
150149
}

src/mockups/blog-article.html

Lines changed: 1 addition & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"mainEntityOfPage": "https://textpattern.com/mockups/blog-article.html",
5454
"datePublished": "2016-01-21T10:43:39Z",
5555
"dateModified": "2016-01-22T14:32:01Z",
56-
"discussionUrl": "https://textpattern.com/mockups/blog-article.html#comments-head",
5756
"image": {
5857
"@type": "ImageObject",
5958
"url": "https://placehold.it/832x554",
@@ -71,30 +70,7 @@
7170
"@type": "ImageObject",
7271
"url": "https://textpattern.com/assets/img/branding/textpattern/textpattern.png"
7372
}
74-
},
75-
"interactionStatistic": {
76-
"@type": "InteractionCounter",
77-
"interactionType": "https://schema.org/CommentAction",
78-
"userInteractionCount": "3"
79-
},
80-
"comment": [
81-
{
82-
"@type": "Comment",
83-
"author": {
84-
"@type": "Person",
85-
"name": "Joe Q. Public"
86-
},
87-
"dateCreated": "2016-01-25T16:55:03Z"
88-
},
89-
{
90-
"@type": "Comment",
91-
"author": {
92-
"@type": "Person",
93-
"name": "Phil Wareham"
94-
},
95-
"dateCreated": "2016-01-26T11:20:01Z"
96-
}
97-
]
73+
}
9874
}
9975
]
10076
},
@@ -243,95 +219,8 @@ <h3>h3 subheading example</h3>
243219
<a rel="category tag" href="#" title="View articles in this category">Releases</a>
244220
<a rel="category tag" href="#" title="View articles in this category">Hope for the future</a>
245221
</span>
246-
<span class="separator" role="separator">|</span>
247-
<span class="ui-icon ui-icon-comment">Comments:</span>
248-
<a href="#comments-head" title="View article comments" itemprop="discussionUrl">
249-
<span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
250-
<meta itemprop="interactionType" content="https://schema.org/CommentAction">
251-
<span itemprop="userInteractionCount">3</span>
252-
</span>
253-
</a>
254222
</footer>
255223

256-
<aside class="ads-area" itemscope itemtype="https://schema.org/WPAdBlock">
257-
<h6>Advertisements</h6>
258-
<div class="ads">
259-
<a rel="external" href="#" itemprop="url">
260-
<img width="300" height="250" itemprop="image" alt="Ad Example 1" src="../assets/img/com/ad-300x250-placeholder.png">
261-
</a>
262-
</div>
263-
<div class="ads">
264-
<a rel="external" href="#" itemprop="url">
265-
<img width="300" height="250" itemprop="image" alt="Ad Example 2" src="../assets/img/com/ad-300x250-placeholder.png">
266-
</a>
267-
</div>
268-
</aside>
269-
270-
<section id="comments-head">
271-
<h3>Comments</h3>
272-
273-
<ol class="list--comments">
274-
<li>
275-
<article class="comments" itemscope itemtype="https://schema.org/Comment">
276-
<h4 class="comment-author" itemprop="author" itemscope itemtype="https://schema.org/Person">
277-
<span itemprop="name">Joe Q. Public</span>
278-
</h4>
279-
<p class="comment-date">
280-
<time datetime="2016-01-25T16:55:03Z" itemprop="dateCreated">25 Jan 2016 at 16:55</time>
281-
</p>
282-
<div itemprop="text">
283-
<p>Inermis indoctum vis in, has soleat complectitur te. Ut est stet civibus, mucius iriure ad duo. Sumo tantas et est, ea duo elitr utroque, ne mea dicant tincidunt scribentur. Sit dico accusata et. Sint inimicus cu nam, odio velit minim sit ut.</p>
284-
</div>
285-
</article>
286-
</li>
287-
<li>
288-
<article class="comments article-author" itemscope itemtype="https://schema.org/Comment">
289-
<h4 class="comment-author" itemprop="author" itemscope itemtype="https://schema.org/Person">
290-
<span itemprop="name">Phil Wareham</span>
291-
</h4>
292-
<p class="comment-date">
293-
<time datetime="2016-01-26T11:20:01Z" itemprop="dateCreated">26 Jan 2016 at 11:20</time>
294-
</p>
295-
<div itemprop="text">
296-
<p>Lorem ipsum dolor sit amet, quo epicuri volutpat no. Causae option accusamus in est.</p>
297-
</div>
298-
</article>
299-
</li>
300-
</ol>
301-
302-
<section id="comments-form">
303-
<h3>Leave a comment</h3>
304-
305-
<form id="txpCommentInputForm" method="post" action="#">
306-
<p>You must preview your comment before submitting it. Email addresses are used for verification only and are not displayed with your comment. Fields marked <abbr class="required" title="Required" aria-label="Required"></abbr> are required.</p>
307-
<ul class="comError">
308-
<li>Please enter your name.</li>
309-
<li>Please enter a valid email address.</li>
310-
<li>Please enter a comment.</li>
311-
</ul>
312-
<div class="layout-container">
313-
<div class="field layout-2col">
314-
<label for="name">Name <abbr class="required" title="Required" aria-label="Required"></abbr></label><br>
315-
<input class="comment_name_input comments_error" id="name" name="name" type="text" size="32" required>
316-
</div>
317-
<div class="field layout-2col">
318-
<label for="email">Email <abbr class="required" title="Required" aria-label="Required"></abbr></label><br>
319-
<input class="comment_email_input" id="email" name="email" type="email" size="32" required>
320-
</div>
321-
<div class="field layout-1col">
322-
<label for="message">Message <abbr class="required" title="Required" aria-label="Required"></abbr></label><br>
323-
<textarea class="txpCommentInputMessage" id="message" name="message" cols="64" rows="8" required></textarea>
324-
</div>
325-
<div class="field layout-1col">
326-
<input class="button" id="txpCommentPreview" name="preview" type="submit" value="Preview">
327-
<input class="button disabled" id="txpCommentSubmit" name="submit" type="submit" value="Submit" disabled>
328-
</div>
329-
</div>
330-
</form>
331-
</section>
332-
333-
</section>
334-
335224
</article>
336225

337226
<section class="layout-4col sidebar">

src/mockups/blog-landing.html

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,6 @@ <h1 itemprop="headline"><a itemprop="url mainEntityOfPage" title="Full article"
174174
<a rel="category tag" href="#" title="View articles in this category">Releases</a>
175175
<a rel="category tag" href="#" title="View articles in this category">Hope for the future</a>
176176
</span>
177-
<span class="separator" role="separator">|</span>
178-
<span class="ui-icon ui-icon-comment">Comments:</span>
179-
<a href="#comments-head" title="View article comments" itemprop="discussionUrl">
180-
<span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
181-
<meta itemprop="interactionType" content="https://schema.org/CommentAction">
182-
<span itemprop="userInteractionCount">3</span>
183-
</span>
184-
</a>
185177
</footer>
186178

187179
</article>
@@ -223,14 +215,6 @@ <h1 itemprop="headline"><a itemprop="url mainEntityOfPage" title="Full article"
223215
<a rel="category tag" href="#" title="View articles in this category">Hope for the future</a>
224216
<a rel="category tag" href="#" title="View articles in this category">Reciprocal affection</a>
225217
</span>
226-
<span class="separator" role="separator">|</span>
227-
<span class="ui-icon ui-icon-comment">Comments:</span>
228-
<a href="#comments-head" title="View article comments" itemprop="discussionUrl">
229-
<span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
230-
<meta itemprop="interactionType" content="https://schema.org/CommentAction">
231-
<span itemprop="userInteractionCount">26</span>
232-
</span>
233-
</a>
234218
</footer>
235219

236220
</article>
@@ -271,14 +255,6 @@ <h1 itemprop="headline"><a itemprop="url mainEntityOfPage" title="Full article"
271255
<span itemprop="keywords">
272256
<a rel="category tag" href="#" title="View articles in this category">Reciprocal affection</a>
273257
</span>
274-
<span class="separator" role="separator">|</span>
275-
<span class="ui-icon ui-icon-comment">Comments:</span>
276-
<a href="#comments-head" title="View article comments" itemprop="discussionUrl">
277-
<span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
278-
<meta itemprop="interactionType" content="https://schema.org/CommentAction">
279-
<span itemprop="userInteractionCount">0</span>
280-
</span>
281-
</a>
282258
</footer>
283259

284260
</article>

0 commit comments

Comments
 (0)