Debian Codegraph @

htdoc/meta.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2 <html>
3 <head>
4 <title>
5 ht://Dig: Recognized META information in HTML documents
6 </title>
7 </head>
8 <body bgcolor="#eef7ff">
9 <h1>
10 Recognized META information in HTML documents
11 </h1>
12 <p>
13 ht://Dig Copyright &copy; 1995-2004 <a href="THANKS.html">The ht://Dig Group</a><br>
14 Please see the file <a href="COPYING">COPYING</a> for
15 license information.
16 </p>
17 <hr size="4" noshade>
18 <h2>
19 Introduction
20 </h2>
21 <p>
22 As the <a href="index.html">ht://Dig</a> system will index
23 all HTML pages on a system, individual authors of pages may
24 want to control some of the aspects of the indexing
25 operation. To this end, ht://Dig will recognize some special
26 &lt;META&gt; tag attributes. The following things can be
27 controlled in this manner:
28 </p>
29 <ul>
30 <li>
31 Do not index the document
32 </li>
33 <li>
34 Notify a user that the document has expired
35 </li>
36 <li>
37 Set keywords for the document
38 </li>
39 </ul>
40 <hr>
41 <h2>
42 General &lt;META&gt; tag use
43 </h2>
44 <p>
45 In HTML, any number of &lt;META&gt; tags can be used between
46 the &lt;HEAD&gt; and &lt;/HEAD&gt; tags of a document. There
47 are three possible attributes in this tag, two of which are
48 recognized by ht://Dig:
49 </p>
50 <dl>
51 <dt>
52 NAME
53 </dt>
54 <dd>
55 Used to name a specific property.
56 </dd>
57 <dt>
58 CONTENT
59 </dt>
60 <dd>
61 Used to supply the value for a named property.
62 </dd>
63 </dl>
64 <p>
65 A document could start with something like the following:
66 </p>
67 <blockquote>
68 &lt;HTML&gt;<br>
69 &lt;HEAD&gt;<br>
70 &lt;META NAME="htdig-keywords" CONTENT="phone telephone
71 online electronic directory"&gt;<br>
72 &lt;META NAME="htdig-email"
73 CONTENT="[email protected]"&gt;<br>
74 &lt;TITLE&gt;Some document title&lt;/TITLE&gt;<br>
75 &lt;/HEAD&gt;<br>
76 &lt;BODY&gt;
77 <blockquote>
78 <em>Body of document</em>
79 </blockquote>
80 &lt;/BODY&gt;<br>
81 &lt;/HTML&gt;
82 </blockquote>
83 <hr>
84 <h2>
85 Recognized properties
86 </h2>
87 <p>
88 The following properties are recognized by ht://Dig:
89 </p>
90 <ul>
91 <li>
92 htdig-keywords
93 </li>
94 <li>
95 htdig-noindex
96 </li>
97 <li>
98 htdig-email
99 </li>
100 <li>
101 htdig-notification-date
102 </li>
103 <li>
104 htdig-email-subject
105 </li>
106 <li>
107 robots
108 </li>
109 <li>
110 keywords
111 </li>
112 <li>
113 description
114 </li>
115 <li>
116 author
117 </li>
118 </ul>
119 <p>
120 Detailed information about the <em>htdig-email</em>, <em>
121 htdig-notification-date</em>, and <em>
122 htdig-email-subject</em> properties can be found in the
123 <a href="notification.html">Email notification service</a>
124 document.
125 </p>
126 <p>
127 Descriptions of the properties and their values:
128 </p>
129 <dl>
130 <dt>
131 <strong>htdig-keywords</strong>
132 </dt>
133 <dd>
134 The value of this property should be a blank separated list
135 of keywords which will get a very high weight when
136 searching. This can be used to get around some problems
137 with common synonyms for words in the document. For
138 example, if a document is a telephone directory, possible
139 keywords could be "telephone phone directory book list".
140 Now, regardless of what text is actually in the document,
141 it can be found if these keywords are used in the search.
142 The weight that words in the content string will have in
143 search results is controlled by the
144 <a href="attrs.html#keywords_factor">
145 keywords_factor</a> attribute in your configuration.
146 </dd>
147 <dt>
148 <strong>htdig-noindex</strong>
149 </dt>
150 <dd>
151 This property has no value associated with it. If it is
152 used, the document will NOT be included in any searches.
153 Example uses of this could be:
154 <ul>
155 <li>
156 A document which is dynamic. ie: the contents change
157 continually.
158 </li>
159 <li>
160 Temporary document, not officially available, yet.
161 </li>
162 <li>
163 A document you just don't want to be found.
164 </li>
165 </ul>
166 </dd>
167 <dt>
168 <strong>htdig-email</strong>
169 </dt>
170 <dd>
171 The value is the email address a notification message
172 should be sent to. Multiple email addresses can be given by
173 separating them by commas. If no email address is given, no
174 notification will be sent.<br>
175 (Please check the <a href="notification.html">Email
176 notification service</a> documentation for more details on
177 this.)
178 </dd>
179 <dt>
180 <strong>htdig-notification-date</strong>
181 </dt>
182 <dd>
183 The value is the date on or after which the notification
184 should be sent. The format is simply <em>month / day /
185 year</em>, or if the <a href="attrs.html#iso_8601">iso_8601</a>
186 attribute is set, <em>year - month - day</em>.
187 Make sure that the year has the century with it
188 as well. This means that you should use <em>1995</em>
189 instead of <em>95</em>.<br>
190 If no date is given, no notification will be sent. (Please
191 check the <a href="notification.html">Email notification
192 service</a> documentation for more details on this.)
193 </dd>
194 <dt>
195 <strong>htdig-email-subject</strong>
196 </dt>
197 <dd>
198 The value specifies the subject the notification message.
199 This is an optional property. (Please check the
200 <a href="notification.html">Email notification service</a>
201 documentation for more details on this.)
202 </dd>
203 <dt>
204 <a name="robots"><strong>robots</strong></a>
205 </dt>
206 <dd>
207 The value specifies restrictions on robots (including ht://Dig)
208 for the current page. These restrictions can be "noindex" to
209 prevent indexing the document but allowing the robot to follow
210 links from the page, "nofollow" to allow indexing but preventing
211 links from being followed, or "none" to prevent
212 both. Additionally, ht://Dig supports the values "index" and
213 "follow" and "all" which obviously are the opposite of the other
214 values and are the default behavior. For more information on
215 META robots tags, check out the
216 <a href="http://www.robotstxt.org/wc/meta-user.html">
217 HTMLAuthor's Guide to the Robots META tag</a>.
218 </dd>
219 <dt>
220 <strong>keywords</strong>
221 </dt>
222 <dd>
223 The value of this property should be a blank separated list
224 of keywords, just as for the htdig-keywords property.
225 They are treated as equivalent by htdig. The reason for
226 two different properties is that the keywords property
227 is used by other search engines as well, while the
228 htdig-keywords property can be used for words you want
229 indexed only by htdig. You can get htdig to treat other
230 property names as equivalent to htdig-keywords, or disable
231 the htdig-keywords or keywords properties, by changing the
232 <a href="attrs.html#keywords_meta_tag_names">
233 keywords_meta_tag_names</a> attribute in your configuration.
234 </dd>
235 <dt>
236 <strong>description</strong>
237 </dt>
238 <dd>
239 The value allows you to specify an alternate excerpt
240 (description) of a page. If the config-file attribute
241 <a href="attrs.html#use_meta_description">
242 use_meta_description</a> is used, then any documents with
243 descriptions will use them instead of the automatically
244 generated excerpts.
245 The weight that words in the content string will have in
246 search results is controlled by the
247 <a href="attrs.html#meta_description_factor">
248 meta_description_factor</a> attribute in your configuration.
249 </dd>
250 <dt>
251 <strong>author</strong>
252 </dt>
253 <dd>
254 The value specifies the name, email address and/or affiliation
255 of the creator or authoriser of a page.
256 The weight that words in the content string will have in
257 search results is controlled by the
258 <a href="attrs.html#author_factor">author_factor</a>
259 attribute in your configuration.
260 A search for "author:<em>name</em>" will
261 look only in these fields for the word <em>name</em>.
262 </dd>
263 </dl>
264 <hr size="4" noshade>
265
266 Last modified: $Date: 2004/05/28 13:15:19 $
267
268 </body>
269 </html>